@overmap-ai/core 1.0.16-fix-misc-issues.9 → 1.0.16-fix-misc-issues.10
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 +14 -18
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +14 -18
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/store/store.d.ts +1 -0
- package/package.json +1 -1
package/dist/overmap-core.js
CHANGED
|
@@ -3603,28 +3603,23 @@ class BaseApiService {
|
|
|
3603
3603
|
...requestDetailsWithBaseUrl,
|
|
3604
3604
|
uuid: requestDetails.uuid ?? v4()
|
|
3605
3605
|
};
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
BASE_URL: this.client.API_URL
|
|
3616
|
-
}
|
|
3606
|
+
const fullOfflineAction = {
|
|
3607
|
+
payload: requestWithUuid,
|
|
3608
|
+
type: "",
|
|
3609
|
+
meta: {
|
|
3610
|
+
offline: {
|
|
3611
|
+
effect: {
|
|
3612
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3613
|
+
request: requestWithUuid,
|
|
3614
|
+
BASE_URL: this.client.API_URL
|
|
3617
3615
|
}
|
|
3618
3616
|
}
|
|
3619
|
-
},
|
|
3620
|
-
this.client
|
|
3621
|
-
).then((result) => {
|
|
3622
|
-
if (result instanceof APIError) {
|
|
3623
|
-
promise.reject(result);
|
|
3624
|
-
} else {
|
|
3625
|
-
promise.resolve(result.body);
|
|
3626
3617
|
}
|
|
3618
|
+
};
|
|
3619
|
+
performRequest(fullOfflineAction, this.client).then((result) => {
|
|
3620
|
+
promise.resolve(result.body);
|
|
3627
3621
|
}).catch((error) => {
|
|
3622
|
+
discard(error, fullOfflineAction);
|
|
3628
3623
|
promise.reject(error);
|
|
3629
3624
|
});
|
|
3630
3625
|
} else {
|
|
@@ -5846,6 +5841,7 @@ export {
|
|
|
5846
5841
|
deleteUserFormSubmission,
|
|
5847
5842
|
deleteUserFormSubmissions,
|
|
5848
5843
|
dequeue,
|
|
5844
|
+
discard,
|
|
5849
5845
|
downloadInMemoryFile,
|
|
5850
5846
|
emailRegex,
|
|
5851
5847
|
enqueue,
|