@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.
@@ -5595,7 +5595,7 @@ Currently logged-in as ${this._username}.`
5595
5595
  _rev: existingDoc._rev
5596
5596
  });
5597
5597
  } catch (e) {
5598
- if (e instanceof Error && e.name === "not_found") {
5598
+ if (e?.name === "not_found") {
5599
5599
  await this.remoteDB.put(doc);
5600
5600
  } else {
5601
5601
  throw e;
@@ -5622,7 +5622,7 @@ Currently logged-in as ${this._username}.`
5622
5622
  _rev: existingDoc._rev
5623
5623
  });
5624
5624
  } catch (e) {
5625
- if (e instanceof Error && e.name === "conflict" && retries > 0) {
5625
+ if (e?.name === "conflict" && retries > 0) {
5626
5626
  await new Promise((resolve) => setTimeout(resolve, 1e3));
5627
5627
  return this.applyDesignDoc(doc, retries - 1);
5628
5628
  }