@overmap-ai/core 1.0.16-fix-misc-issues.5 → 1.0.16-fix-misc-issues.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/overmap-core.js
CHANGED
|
@@ -3331,6 +3331,7 @@ async function performRequest(action, client) {
|
|
|
3331
3331
|
throw new Error("Request was marked for deletion");
|
|
3332
3332
|
}
|
|
3333
3333
|
await checkToken();
|
|
3334
|
+
console.debug("Done checking tokens");
|
|
3334
3335
|
const defaultSettings = {
|
|
3335
3336
|
queryParams: "",
|
|
3336
3337
|
isAuthNeeded: true
|
|
@@ -3344,10 +3345,12 @@ async function performRequest(action, client) {
|
|
|
3344
3345
|
let url = requestDetails.url;
|
|
3345
3346
|
const file = attachmentHash ? await client.files.fetchCache(attachmentHash) : void 0;
|
|
3346
3347
|
const accessToken = selectAccessToken(state);
|
|
3348
|
+
console.debug("A");
|
|
3347
3349
|
if (attachmentHash && !file) {
|
|
3348
3350
|
debugLog("Cannot upload uncached attachment:", attachmentHash);
|
|
3349
3351
|
throw new Error(`Cannot upload file ${attachmentHash} because it's not cached.`);
|
|
3350
3352
|
}
|
|
3353
|
+
console.debug("B");
|
|
3351
3354
|
if ((!isExternalUrl || false) && !url.startsWith("http")) {
|
|
3352
3355
|
debugLog("Prepending base URL to relative URL:", url);
|
|
3353
3356
|
if (!url.startsWith("/") && !url.startsWith("blob:")) {
|
|
@@ -3355,6 +3358,7 @@ async function performRequest(action, client) {
|
|
|
3355
3358
|
}
|
|
3356
3359
|
url = client.API_URL + url;
|
|
3357
3360
|
}
|
|
3361
|
+
console.debug("C");
|
|
3358
3362
|
const addPayload = (req) => {
|
|
3359
3363
|
if (attachmentHash) {
|
|
3360
3364
|
const s3url = requestDetails.s3url;
|
|
@@ -3403,6 +3407,7 @@ async function performRequest(action, client) {
|
|
|
3403
3407
|
if (headers) {
|
|
3404
3408
|
requestToSend = requestToSend.set(headers);
|
|
3405
3409
|
}
|
|
3410
|
+
console.debug("D");
|
|
3406
3411
|
try {
|
|
3407
3412
|
debugLog("Sending request:", requestDetails, "with params:", queryParams);
|
|
3408
3413
|
return await requestToSend.query(queryParams);
|