@ones-editor/editor 1.1.10-beta.6 → 1.1.10-beta.7

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.
package/dist/index.js CHANGED
@@ -34356,6 +34356,7 @@ ${codeText}
34356
34356
  Connection.apply(this.connection, [this.ws]);
34357
34357
  }
34358
34358
  async handleAuthError() {
34359
+ var _a, _b;
34359
34360
  if (this.reauthFunc) {
34360
34361
  if (this.retryCount >= 5 || !this.enabled) {
34361
34362
  logger$2p.warn("retry auth times exceed 5, broadcast auth error");
@@ -34364,6 +34365,7 @@ ${codeText}
34364
34365
  if (!this.enabled) {
34365
34366
  return;
34366
34367
  }
34368
+ (_a = this.ws) == null ? void 0 : _a.close();
34367
34369
  this.retryCount += 1;
34368
34370
  logger$2p.info(`retrying re-auth attempt no. ${this.retryCount}`);
34369
34371
  try {
@@ -34371,6 +34373,7 @@ ${codeText}
34371
34373
  const newAuth = await this.reauthFunc();
34372
34374
  await this.auth(newAuth);
34373
34375
  const pingOptions = this.pingOptions;
34376
+ (_b = this.ws) == null ? void 0 : _b.reconnect();
34374
34377
  this.connection._initializeHandshake = function handshake() {
34375
34378
  this.send({ a: "hs", id: this.id, auth: newAuth, options: { ping: pingOptions } });
34376
34379
  };
@@ -75635,7 +75638,7 @@ ${data.flowchartText}
75635
75638
  }
75636
75639
  }
75637
75640
  });
75638
- editor.version = "1.1.10-beta.6";
75641
+ editor.version = "1.1.10-beta.7";
75639
75642
  return editor;
75640
75643
  }
75641
75644
  function isDoc(doc2) {
@@ -75708,7 +75711,7 @@ ${data.flowchartText}
75708
75711
  });
75709
75712
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
75710
75713
  OnesEditorToolbar.register(editor);
75711
- editor.version = "1.1.10-beta.6";
75714
+ editor.version = "1.1.10-beta.7";
75712
75715
  return editor;
75713
75716
  }
75714
75717
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "1.1.10-beta.6",
3
+ "version": "1.1.10-beta.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",