@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.
@@ -7463,7 +7463,7 @@ Currently logged-in as ${this._username}.`
7463
7463
  _rev: existingDoc._rev
7464
7464
  });
7465
7465
  } catch (e) {
7466
- if (e instanceof Error && e.name === "not_found") {
7466
+ if (e?.name === "not_found") {
7467
7467
  await this.remoteDB.put(doc);
7468
7468
  } else {
7469
7469
  throw e;
@@ -7490,7 +7490,7 @@ Currently logged-in as ${this._username}.`
7490
7490
  _rev: existingDoc._rev
7491
7491
  });
7492
7492
  } catch (e) {
7493
- if (e instanceof Error && e.name === "conflict" && retries > 0) {
7493
+ if (e?.name === "conflict" && retries > 0) {
7494
7494
  await new Promise((resolve) => setTimeout(resolve, 1e3));
7495
7495
  return this.applyDesignDoc(doc, retries - 1);
7496
7496
  }