@ones-editor/editor 1.1.10-beta.13 → 1.1.10-beta.14
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
|
@@ -34300,6 +34300,9 @@ ${codeText}
|
|
|
34300
34300
|
__publicField(this, "reAuth", async () => {
|
|
34301
34301
|
if (this.connection && this.reauthFunc) {
|
|
34302
34302
|
const newAuth = await this.reauthFunc();
|
|
34303
|
+
if (window.isReauthError) {
|
|
34304
|
+
throw new Error("reauth error");
|
|
34305
|
+
}
|
|
34303
34306
|
await this.auth(newAuth);
|
|
34304
34307
|
const pingOptions = this.pingOptions;
|
|
34305
34308
|
this.connection._initializeHandshake = function handshake() {
|
|
@@ -34369,6 +34372,9 @@ ${codeText}
|
|
|
34369
34372
|
const thatWs = this.ws;
|
|
34370
34373
|
const pingOptions = this.pingOptions;
|
|
34371
34374
|
this.connection._initializeHandshake = function handshake() {
|
|
34375
|
+
if (window.isTokenExpired) {
|
|
34376
|
+
auth.token = "aaabbbccc";
|
|
34377
|
+
}
|
|
34372
34378
|
this.send({ a: "hs", id: this.id, auth, options: { ping: pingOptions } });
|
|
34373
34379
|
if (this._ping == null) {
|
|
34374
34380
|
this._ping = window.setInterval(() => {
|
|
@@ -75711,7 +75717,7 @@ ${data.flowchartText}
|
|
|
75711
75717
|
}
|
|
75712
75718
|
}
|
|
75713
75719
|
});
|
|
75714
|
-
editor.version = "1.1.10-beta.
|
|
75720
|
+
editor.version = "1.1.10-beta.14";
|
|
75715
75721
|
return editor;
|
|
75716
75722
|
}
|
|
75717
75723
|
function isDoc(doc2) {
|
|
@@ -75784,7 +75790,7 @@ ${data.flowchartText}
|
|
|
75784
75790
|
});
|
|
75785
75791
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
75786
75792
|
OnesEditorToolbar.register(editor);
|
|
75787
|
-
editor.version = "1.1.10-beta.
|
|
75793
|
+
editor.version = "1.1.10-beta.14";
|
|
75788
75794
|
return editor;
|
|
75789
75795
|
}
|
|
75790
75796
|
async function showDocVersions(editor, options, serverUrl) {
|