@nocobase/plugin-flow-engine 2.2.0-beta.3 → 2.2.0-beta.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.
Files changed (31) hide show
  1. package/dist/client/index.js +1 -1
  2. package/dist/externalVersion.js +9 -9
  3. package/dist/node_modules/@ant-design/icons-svg/package.json +1 -1
  4. package/dist/node_modules/acorn/package.json +1 -1
  5. package/dist/node_modules/acorn-jsx/package.json +1 -1
  6. package/dist/node_modules/acorn-walk/package.json +1 -1
  7. package/dist/node_modules/ses/package.json +1 -1
  8. package/dist/node_modules/zod/package.json +1 -1
  9. package/dist/server/flow-surfaces/authoring-validation.js +80 -7
  10. package/dist/server/flow-surfaces/blueprint/export-document.js +3 -1
  11. package/dist/server/flow-surfaces/builder.js +16 -1
  12. package/dist/server/flow-surfaces/catalog.js +3 -1
  13. package/dist/server/flow-surfaces/configure-options.js +4 -3
  14. package/dist/server/flow-surfaces/contract-guard.js +24 -2
  15. package/dist/server/flow-surfaces/planning/key-registry.d.ts +1 -1
  16. package/dist/server/flow-surfaces/runjs-authoring/rules.js +0 -2
  17. package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.d.ts +0 -1
  18. package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.js +11 -19
  19. package/dist/server/flow-surfaces/runjs-authoring/runtime/types.d.ts +0 -12
  20. package/dist/server/flow-surfaces/runjs-authoring/scan/index.d.ts +0 -14
  21. package/dist/server/flow-surfaces/runjs-authoring/scan/index.js +1 -7
  22. package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.d.ts +0 -14
  23. package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.js +18 -73
  24. package/dist/server/flow-surfaces/runjs-authoring/types.d.ts +1 -1
  25. package/dist/server/flow-surfaces/runjs-authoring/validators/index.js +9 -53
  26. package/dist/server/flow-surfaces/service.d.ts +23 -0
  27. package/dist/server/flow-surfaces/service.js +538 -73
  28. package/dist/server/variables/registry.js +3 -0
  29. package/package.json +2 -2
  30. package/dist/server/flow-surfaces/runjs-authoring/blocked-global-stop/index.d.ts +0 -10
  31. package/dist/server/flow-surfaces/runjs-authoring/blocked-global-stop/index.js +0 -40
@@ -89,6 +89,9 @@ class VariableRegistry {
89
89
  }
90
90
  const GLOBAL_KEY = "__ncbVarRegistry__";
91
91
  const g = typeof globalThis !== "undefined" ? globalThis : global;
92
+ if (g[GLOBAL_KEY] && typeof g[GLOBAL_KEY] === "object") {
93
+ Object.setPrototypeOf(g[GLOBAL_KEY], VariableRegistry.prototype);
94
+ }
92
95
  if (!g[GLOBAL_KEY]) {
93
96
  g[GLOBAL_KEY] = new VariableRegistry();
94
97
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "前端流引擎",
5
5
  "description": "",
6
6
  "description.zh-CN": "",
7
- "version": "2.2.0-beta.3",
7
+ "version": "2.2.0-beta.6",
8
8
  "main": "./dist/server/index.js",
9
9
  "license": "Apache-2.0",
10
10
  "devDependencies": {
@@ -26,5 +26,5 @@
26
26
  "@nocobase/test": "2.x",
27
27
  "@nocobase/utils": "2.x"
28
28
  },
29
- "gitHead": "7b16bb2cfd427c110c6671252138cd85155723c5"
29
+ "gitHead": "dc9246516f8a3efd6056f22fe7b3bc947bd4575b"
30
30
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import type { RunJsAuthoringRuleDefinition } from '../types';
10
- export declare const blockedGlobalStopRule: RunJsAuthoringRuleDefinition;
@@ -1,40 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
- var blocked_global_stop_exports = {};
28
- __export(blocked_global_stop_exports, {
29
- blockedGlobalStopRule: () => blockedGlobalStopRule
30
- });
31
- module.exports = __toCommonJS(blocked_global_stop_exports);
32
- const blockedGlobalStopRule = {
33
- repairClass: "blocked-global-stop",
34
- defaultRuleId: "runjs-global-blocked",
35
- suggestedAction: "Replace forbidden browser/runtime globals with supported ctx APIs."
36
- };
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {
39
- blockedGlobalStopRule
40
- });