@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.
@@ -5618,7 +5618,7 @@ Currently logged-in as ${this._username}.`
5618
5618
  _rev: existingDoc._rev
5619
5619
  });
5620
5620
  } catch (e) {
5621
- if (e instanceof Error && e.name === "not_found") {
5621
+ if (e?.name === "not_found") {
5622
5622
  await this.remoteDB.put(doc);
5623
5623
  } else {
5624
5624
  throw e;
@@ -5645,7 +5645,7 @@ Currently logged-in as ${this._username}.`
5645
5645
  _rev: existingDoc._rev
5646
5646
  });
5647
5647
  } catch (e) {
5648
- if (e instanceof Error && e.name === "conflict" && retries > 0) {
5648
+ if (e?.name === "conflict" && retries > 0) {
5649
5649
  await new Promise((resolve) => setTimeout(resolve, 1e3));
5650
5650
  return this.applyDesignDoc(doc, retries - 1);
5651
5651
  }