@nocobase/plugin-workflow-sql 2.2.0-beta.1 → 2.2.0-beta.3
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 +7 -7
- package/dist/node_modules/joi/package.json +1 -1
- package/dist/server/SQLInstruction.js +2 -1
- package/dist/server/migrations/20260327120000-add-unsafe-injection-flag.d.ts +0 -1
- package/dist/server/migrations/20260327120000-add-unsafe-injection-flag.js +0 -1
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.2.0-beta.
|
|
11
|
+
"@nocobase/client": "2.2.0-beta.3",
|
|
12
12
|
"@formily/antd-v5": "1.2.3",
|
|
13
13
|
"@formily/react": "2.3.7",
|
|
14
14
|
"antd": "5.24.2",
|
|
15
|
-
"@nocobase/utils": "2.2.0-beta.
|
|
15
|
+
"@nocobase/utils": "2.2.0-beta.3",
|
|
16
16
|
"lodash": "4.18.1",
|
|
17
|
-
"@nocobase/plugin-workflow": "2.2.0-beta.
|
|
17
|
+
"@nocobase/plugin-workflow": "2.2.0-beta.3",
|
|
18
18
|
"react": "18.2.0",
|
|
19
19
|
"@ant-design/icons": "5.6.1",
|
|
20
20
|
"react-i18next": "11.18.6",
|
|
21
|
-
"@nocobase/server": "2.2.0-beta.
|
|
22
|
-
"@nocobase/data-source-manager": "2.2.0-beta.
|
|
23
|
-
"@nocobase/plugin-workflow-test": "2.2.0-beta.
|
|
24
|
-
"@nocobase/test": "2.2.0-beta.
|
|
21
|
+
"@nocobase/server": "2.2.0-beta.3",
|
|
22
|
+
"@nocobase/data-source-manager": "2.2.0-beta.3",
|
|
23
|
+
"@nocobase/plugin-workflow-test": "2.2.0-beta.3",
|
|
24
|
+
"@nocobase/test": "2.2.0-beta.3"
|
|
25
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-06-
|
|
1
|
+
{"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-06-15T15:31:33.849Z"}
|
|
@@ -81,8 +81,9 @@ class SQLInstruction_default extends import_plugin_workflow.Instruction {
|
|
|
81
81
|
status: import_plugin_workflow.JOB_STATUS.RESOLVED
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
+
const transaction = processor.getScopeTransaction(node, dataSourceName) ?? this.workflow.useDataSourceTransaction(dataSourceName, processor.transaction);
|
|
84
85
|
const [result = null, meta = null] = await collectionManager.db.sequelize.query(sql, {
|
|
85
|
-
transaction
|
|
86
|
+
transaction,
|
|
86
87
|
replacements
|
|
87
88
|
// plain: true,
|
|
88
89
|
// model: db.getCollection(node.config.collection).model
|
|
@@ -32,7 +32,6 @@ module.exports = __toCommonJS(add_unsafe_injection_flag_exports);
|
|
|
32
32
|
var import_server = require("@nocobase/server");
|
|
33
33
|
var import_utils = require("@nocobase/utils");
|
|
34
34
|
class add_unsafe_injection_flag_default extends import_server.Migration {
|
|
35
|
-
appVersion = "<2.0.30";
|
|
36
35
|
async up() {
|
|
37
36
|
const { db } = this.context;
|
|
38
37
|
const NodeRepo = db.getRepository("flow_nodes");
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"description": "Execute SQL statements in workflow.",
|
|
7
7
|
"description.ru-RU": "Выполняет SQL-запросы в рамках рабочего процесса.",
|
|
8
8
|
"description.zh-CN": "可用于在工作流中对数据库执行任意 SQL 语句。",
|
|
9
|
-
"version": "2.2.0-beta.
|
|
9
|
+
"version": "2.2.0-beta.3",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"main": "./dist/server/index.js",
|
|
12
12
|
"homepage": "https://docs.nocobase.com/handbook/workflow-sql",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@nocobase/server": "2.x",
|
|
26
26
|
"@nocobase/test": "2.x"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "7b16bb2cfd427c110c6671252138cd85155723c5",
|
|
29
29
|
"keywords": [
|
|
30
30
|
"Workflow"
|
|
31
31
|
]
|