2024-01-24 21:53:26 +00:00
|
|
|
const MszUiharu = function(apiUrl) {
|
|
|
|
const maxBatchSize = 4;
|
|
|
|
const lookupOneUrl = apiUrl + '/metadata';
|
|
|
|
|
|
|
|
return {
|
|
|
|
lookupOne: async targetUrl => {
|
|
|
|
if(typeof targetUrl !== 'string')
|
|
|
|
throw 'targetUrl must be a string';
|
|
|
|
|
2025-02-02 21:27:31 +00:00
|
|
|
return $xhr.post(lookupOneUrl, { type: 'json' }, targetUrl);
|
2024-01-24 21:53:26 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|