n8n-core 2.13.0 → 2.14.0
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/build.tsbuildinfo +1 -1
- package/dist/execution-engine/index.d.ts +5 -1
- package/dist/execution-engine/index.js +3 -1
- package/dist/execution-engine/index.js.map +1 -1
- package/dist/execution-engine/node-execution-context/base-execute-context.d.ts +1 -1
- package/dist/execution-engine/node-execution-context/execute-context.js +2 -0
- package/dist/execution-engine/node-execution-context/execute-context.js.map +1 -1
- package/dist/execution-engine/node-execution-context/local-load-options-context.d.ts +1 -1
- package/dist/execution-engine/node-execution-context/local-load-options-context.js +4 -5
- package/dist/execution-engine/node-execution-context/local-load-options-context.js.map +1 -1
- package/dist/execution-engine/node-execution-context/node-execution-context.d.ts +1 -2
- package/dist/execution-engine/node-execution-context/node-execution-context.js +3 -7
- package/dist/execution-engine/node-execution-context/node-execution-context.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/create-node-as-tool.d.ts +1 -1
- package/dist/execution-engine/node-execution-context/utils/credential-check-helper-functions.d.ts +2 -0
- package/dist/execution-engine/node-execution-context/utils/credential-check-helper-functions.js +12 -0
- package/dist/execution-engine/node-execution-context/utils/credential-check-helper-functions.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/get-additional-keys.js +11 -2
- package/dist/execution-engine/node-execution-context/utils/get-additional-keys.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.js +7 -3
- package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/request-helper-functions.d.ts +3 -4
- package/dist/execution-engine/node-execution-context/utils/request-helper-functions.js +23 -253
- package/dist/execution-engine/node-execution-context/utils/request-helper-functions.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/axios-config.d.ts +1 -0
- package/dist/execution-engine/node-execution-context/utils/request-helpers/axios-config.js +38 -0
- package/dist/execution-engine/node-execution-context/utils/request-helpers/axios-config.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/request-helpers/axios-utils.d.ts +20 -0
- package/dist/execution-engine/node-execution-context/utils/request-helpers/axios-utils.js +222 -0
- package/dist/execution-engine/node-execution-context/utils/request-helpers/axios-utils.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/request-helpers/index.d.ts +1 -0
- package/dist/execution-engine/node-execution-context/utils/request-helpers/index.js +16 -0
- package/dist/execution-engine/node-execution-context/utils/request-helpers/index.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/find-start-nodes.js +1 -1
- package/dist/execution-engine/partial-execution-utils/find-start-nodes.js.map +1 -1
- package/dist/execution-engine/workflow-execute.js +2 -0
- package/dist/execution-engine/workflow-execute.js.map +1 -1
- package/dist/utils/signature-helpers.d.ts +1 -0
- package/dist/utils/signature-helpers.js +15 -7
- package/dist/utils/signature-helpers.js.map +1 -1
- package/package.json +11 -11
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.generateUrlSignature = generateUrlSignature;
|
|
7
4
|
exports.prepareUrlForSigning = prepareUrlForSigning;
|
|
8
|
-
|
|
5
|
+
exports.validateUrlSignature = validateUrlSignature;
|
|
6
|
+
const crypto_1 = require("crypto");
|
|
7
|
+
const constants_1 = require("../constants");
|
|
9
8
|
function generateUrlSignature(url, secret) {
|
|
10
|
-
|
|
11
|
-
return token;
|
|
9
|
+
return (0, crypto_1.createHmac)('sha256', secret).update(url).digest('hex');
|
|
12
10
|
}
|
|
13
11
|
function prepareUrlForSigning(url) {
|
|
14
|
-
|
|
12
|
+
const urlForSigning = new URL(url.toString());
|
|
13
|
+
urlForSigning.searchParams.delete(constants_1.WAITING_TOKEN_QUERY_PARAM);
|
|
14
|
+
return `${urlForSigning.pathname}${urlForSigning.search}`;
|
|
15
|
+
}
|
|
16
|
+
function validateUrlSignature(providedSignature, url, secret) {
|
|
17
|
+
const urlString = prepareUrlForSigning(url);
|
|
18
|
+
const expectedSignature = generateUrlSignature(urlString, secret);
|
|
19
|
+
if (providedSignature.length !== expectedSignature.length) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
return (0, crypto_1.timingSafeEqual)(Buffer.from(providedSignature), Buffer.from(expectedSignature));
|
|
15
23
|
}
|
|
16
24
|
//# sourceMappingURL=signature-helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signature-helpers.js","sourceRoot":"","sources":["../../src/utils/signature-helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"signature-helpers.js","sourceRoot":"","sources":["../../src/utils/signature-helpers.ts"],"names":[],"mappings":";;AAQA,oDAEC;AAKD,oDAIC;AAWD,oDASC;AAvCD,mCAAqD;AAErD,4CAAyD;AAMzD,SAAgB,oBAAoB,CAAC,GAAW,EAAE,MAAc;IAC/D,OAAO,IAAA,mBAAU,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC/D,CAAC;AAKD,SAAgB,oBAAoB,CAAC,GAAQ;IAC5C,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC9C,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC,qCAAyB,CAAC,CAAC;IAC7D,OAAO,GAAG,aAAa,CAAC,QAAQ,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC;AAC3D,CAAC;AAWD,SAAgB,oBAAoB,CAAC,iBAAyB,EAAE,GAAQ,EAAE,MAAc;IACvF,MAAM,SAAS,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAElE,IAAI,iBAAiB,CAAC,MAAM,KAAK,iBAAiB,CAAC,MAAM,EAAE,CAAC;QAC3D,OAAO,KAAK,CAAC;IACd,CAAC;IAED,OAAO,IAAA,wBAAe,EAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;AACxF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"description": "Core functionality of n8n",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"files": [
|
|
14
14
|
"dist",
|
|
15
15
|
"bin",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"LICENSE.md",
|
|
17
|
+
"LICENSE_EE.md"
|
|
18
18
|
],
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/express": "^5.0.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@aws-sdk/client-s3": "3.808.0",
|
|
32
|
-
"@langchain/core": "1.1.
|
|
32
|
+
"@langchain/core": "1.1.34",
|
|
33
33
|
"@sentry/node": "^10.36.0",
|
|
34
34
|
"@sentry/node-native": "^10.36.0",
|
|
35
35
|
"@sentry/profiling-node": "^10.36.0",
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"winston": "3.14.2",
|
|
61
61
|
"xml2js": "0.6.2",
|
|
62
62
|
"zod": "3.25.67",
|
|
63
|
-
"@n8n/
|
|
64
|
-
"@n8n/
|
|
65
|
-
"@n8n/
|
|
66
|
-
"@n8n/constants": "0.19.0",
|
|
67
|
-
"@n8n/decorators": "1.13.0",
|
|
63
|
+
"@n8n/backend-common": "1.14.0",
|
|
64
|
+
"@n8n/client-oauth2": "1.1.0",
|
|
65
|
+
"@n8n/config": "2.13.0",
|
|
68
66
|
"@n8n/di": "0.10.0",
|
|
69
|
-
"@n8n/
|
|
70
|
-
"n8n
|
|
67
|
+
"@n8n/constants": "0.19.0",
|
|
68
|
+
"@n8n/decorators": "1.14.0",
|
|
69
|
+
"n8n-workflow": "2.14.0",
|
|
70
|
+
"@n8n/workflow-sdk": "0.7.0"
|
|
71
71
|
},
|
|
72
72
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
73
73
|
"homepage": "https://n8n.io",
|