@vue-skuilder/db 0.1.36 → 0.1.39
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/core/index.js +2 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +2 -2
- package/dist/core/index.mjs.map +1 -1
- package/dist/impl/couch/index.js +2 -2
- package/dist/impl/couch/index.js.map +1 -1
- package/dist/impl/couch/index.mjs +2 -2
- package/dist/impl/couch/index.mjs.map +1 -1
- package/dist/impl/static/index.js +2 -2
- package/dist/impl/static/index.js.map +1 -1
- package/dist/impl/static/index.mjs +2 -2
- package/dist/impl/static/index.mjs.map +1 -1
- package/dist/index.d.cts +13 -7
- package/dist/index.d.ts +13 -7
- package/dist/index.js +47 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +47 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/impl/common/BaseUserDB.ts +10 -2
- package/src/study/SessionController.ts +92 -64
package/dist/core/index.js
CHANGED
|
@@ -6856,7 +6856,7 @@ Currently logged-in as ${this._username}.`
|
|
|
6856
6856
|
_rev: existingDoc._rev
|
|
6857
6857
|
});
|
|
6858
6858
|
} catch (e) {
|
|
6859
|
-
if (e
|
|
6859
|
+
if (e?.name === "not_found") {
|
|
6860
6860
|
await this.remoteDB.put(doc);
|
|
6861
6861
|
} else {
|
|
6862
6862
|
throw e;
|
|
@@ -6883,7 +6883,7 @@ Currently logged-in as ${this._username}.`
|
|
|
6883
6883
|
_rev: existingDoc._rev
|
|
6884
6884
|
});
|
|
6885
6885
|
} catch (e) {
|
|
6886
|
-
if (e
|
|
6886
|
+
if (e?.name === "conflict" && retries > 0) {
|
|
6887
6887
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
6888
6888
|
return this.applyDesignDoc(doc, retries - 1);
|
|
6889
6889
|
}
|