@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.
@@ -6856,7 +6856,7 @@ Currently logged-in as ${this._username}.`
6856
6856
  _rev: existingDoc._rev
6857
6857
  });
6858
6858
  } catch (e) {
6859
- if (e instanceof Error && e.name === "not_found") {
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 instanceof Error && e.name === "conflict" && retries > 0) {
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
  }