@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/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 instanceof Error && e.name === "not_found") {
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 instanceof Error && e.name === "conflict" && retries > 0) {
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
  }