@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
|
@@ -5618,7 +5618,7 @@ Currently logged-in as ${this._username}.`
|
|
|
5618
5618
|
_rev: existingDoc._rev
|
|
5619
5619
|
});
|
|
5620
5620
|
} catch (e) {
|
|
5621
|
-
if (e
|
|
5621
|
+
if (e?.name === "not_found") {
|
|
5622
5622
|
await this.remoteDB.put(doc);
|
|
5623
5623
|
} else {
|
|
5624
5624
|
throw e;
|
|
@@ -5645,7 +5645,7 @@ Currently logged-in as ${this._username}.`
|
|
|
5645
5645
|
_rev: existingDoc._rev
|
|
5646
5646
|
});
|
|
5647
5647
|
} catch (e) {
|
|
5648
|
-
if (e
|
|
5648
|
+
if (e?.name === "conflict" && retries > 0) {
|
|
5649
5649
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
5650
5650
|
return this.applyDesignDoc(doc, retries - 1);
|
|
5651
5651
|
}
|