@ones-editor/editor 1.1.4-bate.32 → 1.1.4-bate.33

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
@@ -34134,15 +34134,18 @@ ${codeText}
34134
34134
  if (this.connection)
34135
34135
  this.connection.lastReceiveTime = Date.now();
34136
34136
  if ("err" in msg || msg.a === "pong") {
34137
+ recoverFlag = false;
34137
34138
  this.handleMessage(msg);
34138
34139
  } else {
34139
34140
  if (Object.prototype.hasOwnProperty.call(msg, "a") && msg.a === "hs") {
34140
- if (!recoverFlag) {
34141
- recoverFlag = true;
34142
- } else {
34143
- logger$2o.info("retrying re-auth success");
34144
- recoverFlag = false;
34145
- this.emitAuthRecover();
34141
+ if (this.retryCount >= 5) {
34142
+ if (!recoverFlag) {
34143
+ recoverFlag = true;
34144
+ } else {
34145
+ logger$2o.info("retrying re-auth success");
34146
+ recoverFlag = false;
34147
+ this.emitAuthRecover();
34148
+ }
34146
34149
  }
34147
34150
  }
34148
34151
  if (Object.prototype.hasOwnProperty.call(msg, "a") && msg.a !== "init" && msg.a !== "hs") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "1.1.4-bate.32",
3
+ "version": "1.1.4-bate.33",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",