n8n-core 1.90.0 → 1.90.1
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.
|
@@ -37,19 +37,21 @@ exports.rewireGraph = rewireGraph;
|
|
|
37
37
|
const a = __importStar(require("assert/strict"));
|
|
38
38
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
39
39
|
function rewireGraph(tool, graph) {
|
|
40
|
-
|
|
41
|
-
const children =
|
|
42
|
-
|
|
40
|
+
const modifiedGraph = graph.clone();
|
|
41
|
+
const children = modifiedGraph.getChildren(tool);
|
|
42
|
+
if (children.size === 0) {
|
|
43
|
+
return graph;
|
|
44
|
+
}
|
|
43
45
|
const rootNode = [...children][0];
|
|
44
46
|
a.ok(rootNode);
|
|
45
|
-
const allIncomingConnection =
|
|
47
|
+
const allIncomingConnection = modifiedGraph
|
|
46
48
|
.getDirectParentConnections(rootNode)
|
|
47
49
|
.filter((cn) => cn.type === n8n_workflow_1.NodeConnectionTypes.Main);
|
|
48
50
|
tool.rewireOutputLogTo = n8n_workflow_1.NodeConnectionTypes.AiTool;
|
|
49
51
|
for (const cn of allIncomingConnection) {
|
|
50
|
-
|
|
52
|
+
modifiedGraph.addConnection({ from: cn.from, to: tool });
|
|
51
53
|
}
|
|
52
|
-
|
|
53
|
-
return
|
|
54
|
+
modifiedGraph.removeNode(rootNode);
|
|
55
|
+
return modifiedGraph;
|
|
54
56
|
}
|
|
55
57
|
//# sourceMappingURL=rewire-graph.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rewire-graph.js","sourceRoot":"","sources":["../../../src/execution-engine/partial-execution-utils/rewire-graph.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,
|
|
1
|
+
{"version":3,"file":"rewire-graph.js","sourceRoot":"","sources":["../../../src/execution-engine/partial-execution-utils/rewire-graph.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,kCAyBC;AA9BD,iDAAmC;AACnC,+CAA+D;AAI/D,SAAgB,WAAW,CAAC,IAAW,EAAE,KAAoB;IAC5D,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC;IACpC,MAAM,QAAQ,GAAG,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAEjD,IAAI,QAAQ,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,KAAK,CAAC;IACd,CAAC;IAED,MAAM,QAAQ,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAElC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;IAEf,MAAM,qBAAqB,GAAG,aAAa;SACzC,0BAA0B,CAAC,QAAQ,CAAC;SACpC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,kCAAmB,CAAC,IAAI,CAAC,CAAC;IAEvD,IAAI,CAAC,iBAAiB,GAAG,kCAAmB,CAAC,MAAM,CAAC;IAEpD,KAAK,MAAM,EAAE,IAAI,qBAAqB,EAAE,CAAC;QACxC,aAAa,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IAEnC,OAAO,aAAa,CAAC;AACtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-core",
|
|
3
|
-
"version": "1.90.
|
|
3
|
+
"version": "1.90.1",
|
|
4
4
|
"description": "Core functionality of n8n",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"winston": "3.14.2",
|
|
52
52
|
"xml2js": "0.6.2",
|
|
53
53
|
"zod": "3.24.1",
|
|
54
|
-
"@n8n/client-oauth2": "0.23.0",
|
|
55
|
-
"@n8n/di": "0.5.0",
|
|
56
54
|
"@n8n/config": "1.38.0",
|
|
57
55
|
"@n8n/decorators": "0.2.0",
|
|
56
|
+
"@n8n/client-oauth2": "0.23.0",
|
|
57
|
+
"@n8n/di": "0.5.0",
|
|
58
58
|
"n8n-workflow": "1.89.0"
|
|
59
59
|
},
|
|
60
60
|
"license": "SEE LICENSE IN LICENSE.md",
|