js-bao-wss-client 1.2.2 → 1.2.3

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.
@@ -7356,7 +7356,9 @@
7356
7356
  const run = async () => {
7357
7357
  try {
7358
7358
  const result = await this.commitOfflineCreate(documentId, { onExists: "fail" }, ctx);
7359
- if (result.created === true)
7359
+ if (result.created || result.linked)
7360
+ return;
7361
+ if (result.reason === "not_pending" || result.reason === "exists")
7360
7362
  return;
7361
7363
  throw new Error(result.reason || "commit_failed");
7362
7364
  }