@shiqianjiang/ceru-plugin-core 0.3.6 → 0.3.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/node.js CHANGED
@@ -107,10 +107,10 @@ export class NodePluginSandbox {
107
107
  this.pending.delete(id);
108
108
  reject(new Error('Plugin operation cancelled'));
109
109
  };
110
- const timer = setTimeout(() => {
111
- cancel();
112
- this.dispose();
113
- }, 120000);
110
+ // A deadline belongs to this operation only. Disposing the worker here
111
+ // makes a slow importer look like a crashed plugin and causes the Host
112
+ // to persistently disable an otherwise healthy plugin.
113
+ const timer = setTimeout(cancel, 120000);
114
114
  const done = () => {
115
115
  clearTimeout(timer);
116
116
  signal?.removeEventListener('abort', cancel);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shiqianjiang/ceru-plugin-core",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Ceru Music v2 plugin Core runtime and Host adapter boundary",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -57,8 +57,8 @@
57
57
  "socket.io-client": "^4.8.3",
58
58
  "ws": "^8.21.3",
59
59
  "axios": "^1.13.2",
60
- "@shiqianjiang/ceru-plugin-issuer": "0.3.6",
61
- "@shiqianjiang/ceru-plugin-sdk": "0.3.6"
60
+ "@shiqianjiang/ceru-plugin-issuer": "0.3.7",
61
+ "@shiqianjiang/ceru-plugin-sdk": "0.3.7"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public",