@vue-skuilder/db 0.1.36 → 0.1.38
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/impl/common/BaseUserDB.ts +10 -2
package/dist/index.js
CHANGED
|
@@ -7786,7 +7786,7 @@ Currently logged-in as ${this._username}.`
|
|
|
7786
7786
|
_rev: existingDoc._rev
|
|
7787
7787
|
});
|
|
7788
7788
|
} catch (e) {
|
|
7789
|
-
if (e
|
|
7789
|
+
if (e?.name === "not_found") {
|
|
7790
7790
|
await this.remoteDB.put(doc);
|
|
7791
7791
|
} else {
|
|
7792
7792
|
throw e;
|
|
@@ -7813,7 +7813,7 @@ Currently logged-in as ${this._username}.`
|
|
|
7813
7813
|
_rev: existingDoc._rev
|
|
7814
7814
|
});
|
|
7815
7815
|
} catch (e) {
|
|
7816
|
-
if (e
|
|
7816
|
+
if (e?.name === "conflict" && retries > 0) {
|
|
7817
7817
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
7818
7818
|
return this.applyDesignDoc(doc, retries - 1);
|
|
7819
7819
|
}
|