@zhin.js/isolate 1.1.5 → 1.1.6
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/lib/bootstrap.js +3 -0
- package/package.json +3 -3
package/lib/bootstrap.js
CHANGED
|
@@ -78,6 +78,9 @@ export function isolateBootstrap() {
|
|
|
78
78
|
if (!definition || typeof definition.name !== 'string') {
|
|
79
79
|
throw new TypeError(`${payload.packageName} does not default-export a Plugin definition`);
|
|
80
80
|
}
|
|
81
|
+
if (definition.config !== undefined) {
|
|
82
|
+
throw new TypeError(`${payload.packageName} isolated Plugin cannot declare inline config; use schema.json`);
|
|
83
|
+
}
|
|
81
84
|
const allowed = new Set(['zhin.isolate.channel', 'zhin.runtime-environment']);
|
|
82
85
|
for (const token of definition.requires ?? []) {
|
|
83
86
|
if (!allowed.has(token.id))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/isolate",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Worker and child-process isolation adapter for the Zhin Plugin Runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"lib"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@zhin.js/plugin-runtime": "1.1.
|
|
20
|
-
"@zhin.js/runtime": "1.1.
|
|
19
|
+
"@zhin.js/plugin-runtime": "1.1.13",
|
|
20
|
+
"@zhin.js/runtime": "1.1.6"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^26.1.2",
|