@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.
@@ -6836,7 +6836,7 @@ Currently logged-in as ${this._username}.`
6836
6836
  _rev: existingDoc._rev
6837
6837
  });
6838
6838
  } catch (e) {
6839
- if (e instanceof Error && e.name === "not_found") {
6839
+ if (e?.name === "not_found") {
6840
6840
  await this.remoteDB.put(doc);
6841
6841
  } else {
6842
6842
  throw e;
@@ -6863,7 +6863,7 @@ Currently logged-in as ${this._username}.`
6863
6863
  _rev: existingDoc._rev
6864
6864
  });
6865
6865
  } catch (e) {
6866
- if (e instanceof Error && e.name === "conflict" && retries > 0) {
6866
+ if (e?.name === "conflict" && retries > 0) {
6867
6867
  await new Promise((resolve) => setTimeout(resolve, 1e3));
6868
6868
  return this.applyDesignDoc(doc, retries - 1);
6869
6869
  }