@n8n/workflow-sdk 0.34.0 → 0.34.2
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/ast-interpreter/interpreter.js +12 -1
- package/dist/ast-interpreter/interpreter.js.map +1 -1
- package/dist/ast-interpreter/validators.d.ts +3 -0
- package/dist/ast-interpreter/validators.js +75 -0
- package/dist/ast-interpreter/validators.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/utils/workflow-json-engine-helpers.js +1 -1
- package/dist/utils/workflow-json-engine-helpers.js.map +1 -1
- package/package.json +6 -6
|
@@ -13,7 +13,7 @@ function toEngineConnections(connections) {
|
|
|
13
13
|
for (const [connectionType, outputs] of Object.entries(byType)) {
|
|
14
14
|
if (!(0, n8n_workflow_1.isSafeObjectProperty)(connectionType))
|
|
15
15
|
continue;
|
|
16
|
-
nodeConnections[connectionType] = outputs.map((outputConnections) => outputConnections?.flatMap((connection) => (0, n8n_workflow_1.isNodeConnectionType)(connection.type) && (0, n8n_workflow_1.
|
|
16
|
+
nodeConnections[connectionType] = outputs.map((outputConnections) => outputConnections?.flatMap((connection) => (0, n8n_workflow_1.isNodeConnectionType)(connection.type) && (0, n8n_workflow_1.isUsableObjectKey)(connection.node)
|
|
17
17
|
? [{ ...connection, type: connection.type }]
|
|
18
18
|
: []) ?? null);
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-json-engine-helpers.js","sourceRoot":"","sources":["../../src/utils/workflow-json-engine-helpers.ts"],"names":[],"mappings":";;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"workflow-json-engine-helpers.js","sourceRoot":"","sources":["../../src/utils/workflow-json-engine-helpers.ts"],"names":[],"mappings":";;;;;AAAA,+CAUsB;AAqBtB,6BAAoC,WAAwC;IAC3E,MAAM,YAAY,GAAiB,EAAE,CAAC;IACtC,KAAK,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,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CAAC,IAAI,CAAC,UAAU,EAAE,MAAM;QAAE,OAAO,EAAE,CAAC;IAExC,MAAM,kBAAkB,GAAG;QAC1B,KAAK,EAAE,sBAAsB,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAC/C,WAAW,EAAE,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC;QAClD,UAAU,EAAE,IAAI,CAAC,UAAU;KAC3B,CAAC;IACF,MAAM,UAAU,GAAG,IAAA,wCAAyB,EAAC,kBAAkB,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;IAC1F,IAAI,CAAC,UAAU,GAAG,kBAAkB,CAAC,UAAU,CAAC;IAEhD,OAAO,UAAU,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/workflow-sdk",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.2",
|
|
4
4
|
"description": "TypeScript SDK for programmatically creating n8n workflows",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
},
|
|
64
64
|
"files": [
|
|
65
65
|
"dist/**/*",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
66
|
+
"LICENSE.md",
|
|
67
|
+
"LICENSE_EE.md"
|
|
68
68
|
],
|
|
69
69
|
"bin": {
|
|
70
70
|
"workflow-sdk": "./dist/cli/index.js"
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@dagrejs/dagre": "^1.1.4",
|
|
85
|
-
"@n8n/constants": "0.39.
|
|
86
|
-
"@n8n/utils": "1.48.
|
|
85
|
+
"@n8n/constants": "0.39.1",
|
|
86
|
+
"@n8n/utils": "1.48.1",
|
|
87
87
|
"acorn": "8.14.0",
|
|
88
88
|
"lodash": "4.18.1",
|
|
89
|
-
"n8n-workflow": "2.41.
|
|
89
|
+
"n8n-workflow": "2.41.2",
|
|
90
90
|
"uuid": "11.1.1",
|
|
91
91
|
"zod": "3.25.76"
|
|
92
92
|
},
|