@ones-editor/editor 1.1.3-bate.6 → 1.1.3-bate.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
|
@@ -34102,12 +34102,11 @@ ${codeText}
|
|
|
34102
34102
|
if ("err" in msg || msg.a === "pong") {
|
|
34103
34103
|
this.handleMessage(msg);
|
|
34104
34104
|
} else {
|
|
34105
|
-
console.log("connection success");
|
|
34106
|
-
if (this.retryCount > 0) {
|
|
34107
|
-
logger$2n.info("retrying re-auth success");
|
|
34108
|
-
this.emitAuthRecover();
|
|
34109
|
-
}
|
|
34110
34105
|
if (Object.prototype.hasOwnProperty.call(msg, "a") && msg.a !== "init" && msg.a !== "hs") {
|
|
34106
|
+
if (this.retryCount > 0) {
|
|
34107
|
+
logger$2n.info("retrying re-auth success");
|
|
34108
|
+
this.emitAuthRecover();
|
|
34109
|
+
}
|
|
34111
34110
|
this.retryCount = 0;
|
|
34112
34111
|
}
|
|
34113
34112
|
try {
|
|
@@ -65604,7 +65603,7 @@ ${codeText}
|
|
|
65604
65603
|
__publicField(this, "onReAuthErrorWhenIframeEditing");
|
|
65605
65604
|
__publicField(this, "onIframeExitEdit");
|
|
65606
65605
|
__publicField(this, "destroy", () => {
|
|
65607
|
-
this.editor.doc.unregisterCallback(this);
|
|
65606
|
+
this.editor.doc.externalDoc.unregisterCallback(this);
|
|
65608
65607
|
});
|
|
65609
65608
|
__publicField(this, "onError", (error2) => {
|
|
65610
65609
|
if (error2.code === AuthError.err) {
|
|
@@ -65657,7 +65656,7 @@ ${codeText}
|
|
|
65657
65656
|
}
|
|
65658
65657
|
});
|
|
65659
65658
|
this.editor = editor;
|
|
65660
|
-
this.editor.doc.registerCallback(this);
|
|
65659
|
+
this.editor.doc.externalDoc.registerCallback(this);
|
|
65661
65660
|
}
|
|
65662
65661
|
exit() {
|
|
65663
65662
|
var _a;
|