@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.
@@ -7483,7 +7483,7 @@ Currently logged-in as ${this._username}.`
7483
7483
  _rev: existingDoc._rev
7484
7484
  });
7485
7485
  } catch (e) {
7486
- if (e instanceof Error && e.name === "not_found") {
7486
+ if (e?.name === "not_found") {
7487
7487
  await this.remoteDB.put(doc);
7488
7488
  } else {
7489
7489
  throw e;
@@ -7510,7 +7510,7 @@ Currently logged-in as ${this._username}.`
7510
7510
  _rev: existingDoc._rev
7511
7511
  });
7512
7512
  } catch (e) {
7513
- if (e instanceof Error && e.name === "conflict" && retries > 0) {
7513
+ if (e?.name === "conflict" && retries > 0) {
7514
7514
  await new Promise((resolve) => setTimeout(resolve, 1e3));
7515
7515
  return this.applyDesignDoc(doc, retries - 1);
7516
7516
  }