@ones-editor/editor 1.1.3-bate.4 → 1.1.3-bate.5

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
@@ -34152,6 +34152,11 @@ ${codeText}
34152
34152
  }
34153
34153
  }
34154
34154
  }
34155
+ emitPermissionError() {
34156
+ const err = new Error(PermissionError.msg);
34157
+ err.code = PermissionError.err;
34158
+ this.events.emit("error", err);
34159
+ }
34155
34160
  emitAuthRecover() {
34156
34161
  this.events.emit("authRecover");
34157
34162
  }
@@ -34194,6 +34199,8 @@ ${codeText}
34194
34199
  } finally {
34195
34200
  this.end(false);
34196
34201
  }
34202
+ } else if (err === PermissionError.err) {
34203
+ this.emitPermissionError();
34197
34204
  } else {
34198
34205
  logger$2n.error(`unknown message received: ${JSON.stringify(msg)}`);
34199
34206
  this.emitAuthError();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "1.1.3-bate.4",
3
+ "version": "1.1.3-bate.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",