@nocobase/plugin-workflow-javascript 2.0.27 → 2.0.28
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/externalVersion.js
CHANGED
|
@@ -13,11 +13,11 @@ module.exports = {
|
|
|
13
13
|
"antd-style": "3.7.1",
|
|
14
14
|
"@formily/antd-v5": "1.2.3",
|
|
15
15
|
"@ant-design/icons": "5.6.1",
|
|
16
|
-
"@nocobase/client": "2.0.
|
|
17
|
-
"@nocobase/plugin-workflow": "2.0.
|
|
16
|
+
"@nocobase/client": "2.0.28",
|
|
17
|
+
"@nocobase/plugin-workflow": "2.0.28",
|
|
18
18
|
"antd": "5.24.2",
|
|
19
|
-
"@nocobase/flow-engine": "2.0.
|
|
19
|
+
"@nocobase/flow-engine": "2.0.28",
|
|
20
20
|
"react-i18next": "11.18.6",
|
|
21
21
|
"winston": "3.13.0",
|
|
22
|
-
"@nocobase/server": "2.0.
|
|
22
|
+
"@nocobase/server": "2.0.28"
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"winston-transport","description":"Base stream implementations for winston@3 and up.","version":"4.7.0","main":"index.js","browser":"dist/index.js","scripts":{"lint":"eslint test/*.js index.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist","pretest":"npm run lint && npm run build","test":"nyc mocha test/*.test.js","report":"nyc report --reporter=lcov","build":"rimraf dist && babel *.js -d ./dist","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git@github.com:winstonjs/winston-transport.git"},"keywords":["winston","transport","winston3"],"author":"Charlie Robbins <charlie.robbins@gmail.com>","license":"MIT","bugs":{"url":"https://github.com/winstonjs/winston-transport/issues"},"homepage":"https://github.com/winstonjs/winston-transport#readme","dependencies":{"logform":"^2.3.2","readable-stream":"^3.6.0","triple-beam":"^1.3.0"},"devDependencies":{"@types/node":"^20.8.6","abstract-winston-transport":">=0.5.1","assume":"^2.3.0","babel-cli":"^6.26.0","babel-preset-env":"^1.7.0","deep-equal":"^2.0.5","eslint":"^8.8.0","@dabh/eslint-config-populist":"^5.0.0","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^5.0.5","winston-compat":"^0.1.5"},"engines":{"node":">= 12.0.0"},"_lastModified":"2026-03-
|
|
1
|
+
{"name":"winston-transport","description":"Base stream implementations for winston@3 and up.","version":"4.7.0","main":"index.js","browser":"dist/index.js","scripts":{"lint":"eslint test/*.js index.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist","pretest":"npm run lint && npm run build","test":"nyc mocha test/*.test.js","report":"nyc report --reporter=lcov","build":"rimraf dist && babel *.js -d ./dist","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git@github.com:winstonjs/winston-transport.git"},"keywords":["winston","transport","winston3"],"author":"Charlie Robbins <charlie.robbins@gmail.com>","license":"MIT","bugs":{"url":"https://github.com/winstonjs/winston-transport/issues"},"homepage":"https://github.com/winstonjs/winston-transport#readme","dependencies":{"logform":"^2.3.2","readable-stream":"^3.6.0","triple-beam":"^1.3.0"},"devDependencies":{"@types/node":"^20.8.6","abstract-winston-transport":">=0.5.1","assume":"^2.3.0","babel-cli":"^6.26.0","babel-preset-env":"^1.7.0","deep-equal":"^2.0.5","eslint":"^8.8.0","@dabh/eslint-config-populist":"^5.0.0","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^5.0.5","winston-compat":"^0.1.5"},"engines":{"node":">= 12.0.0"},"_lastModified":"2026-03-27T15:56:59.648Z"}
|
package/dist/server/Vm.js
CHANGED
|
@@ -28,43 +28,58 @@ function customRequire(m) {
|
|
|
28
28
|
}
|
|
29
29
|
throw new Error(`module "${m}" not supported`);
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
Object.defineProperty(safe, "constructor", {
|
|
31
|
+
function hardenFunction(fn) {
|
|
32
|
+
Object.setPrototypeOf(fn, null);
|
|
33
|
+
Object.defineProperty(fn, "constructor", {
|
|
35
34
|
value: null,
|
|
36
35
|
writable: false,
|
|
37
36
|
enumerable: false,
|
|
38
37
|
configurable: false
|
|
39
38
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
return fn;
|
|
40
|
+
}
|
|
41
|
+
hardenFunction(customRequire);
|
|
42
|
+
function createSafeConsole(originalConsole) {
|
|
43
|
+
const safe = /* @__PURE__ */ Object.create(null);
|
|
44
|
+
const allowedMethods = [
|
|
45
|
+
"log",
|
|
46
|
+
"info",
|
|
47
|
+
"warn",
|
|
48
|
+
"error",
|
|
49
|
+
"debug",
|
|
50
|
+
"trace",
|
|
51
|
+
"dir",
|
|
52
|
+
"dirxml",
|
|
53
|
+
"table",
|
|
54
|
+
"time",
|
|
55
|
+
"timeEnd",
|
|
56
|
+
"timeLog",
|
|
57
|
+
"count",
|
|
58
|
+
"countReset",
|
|
59
|
+
"group",
|
|
60
|
+
"groupCollapsed",
|
|
61
|
+
"groupEnd",
|
|
62
|
+
"clear",
|
|
63
|
+
"assert"
|
|
64
|
+
];
|
|
65
|
+
for (const key of allowedMethods) {
|
|
66
|
+
if (typeof originalConsole[key] === "function") {
|
|
67
|
+
const bound = originalConsole[key].bind(originalConsole);
|
|
68
|
+
hardenFunction(bound);
|
|
69
|
+
Object.defineProperty(safe, key, {
|
|
70
|
+
value: bound,
|
|
50
71
|
writable: false,
|
|
51
|
-
enumerable:
|
|
72
|
+
enumerable: true,
|
|
52
73
|
configurable: false
|
|
53
74
|
});
|
|
54
|
-
return bound;
|
|
55
|
-
};
|
|
56
|
-
if (typeof descriptor.value === "function") {
|
|
57
|
-
descriptor.value = wrap(descriptor.value);
|
|
58
|
-
}
|
|
59
|
-
if (typeof descriptor.get === "function") {
|
|
60
|
-
descriptor.get = wrap(descriptor.get);
|
|
61
75
|
}
|
|
62
|
-
if (typeof descriptor.set === "function") {
|
|
63
|
-
descriptor.set = wrap(descriptor.set);
|
|
64
|
-
}
|
|
65
|
-
descriptor.configurable = false;
|
|
66
|
-
Object.defineProperty(safe, key, descriptor);
|
|
67
76
|
}
|
|
77
|
+
Object.defineProperty(safe, "constructor", {
|
|
78
|
+
value: null,
|
|
79
|
+
writable: false,
|
|
80
|
+
enumerable: false,
|
|
81
|
+
configurable: false
|
|
82
|
+
});
|
|
68
83
|
return Object.freeze(safe);
|
|
69
84
|
}
|
|
70
85
|
async function main() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-workflow-javascript",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.28",
|
|
4
4
|
"displayName": "Workflow: JavaScript",
|
|
5
5
|
"displayName.zh-CN": "工作流:JavaScript 节点",
|
|
6
6
|
"description": "Execute a piece of JavaScript in an isolated Node.js environment.",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"Workflow"
|
|
37
37
|
],
|
|
38
38
|
"license": "Apache-2.0",
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "7a3e96a74b05f2beaa5a87d8ef28ccf269ea90f4"
|
|
40
40
|
}
|