n8n-nodes-base 2.37.0 → 2.37.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.
Files changed (48) hide show
  1. package/dist/cjs/build.tsbuildinfo +1 -1
  2. package/dist/credentials/HttpTemplatedCustomAuth.credentials.d.ts.map +1 -1
  3. package/dist/credentials/HttpTemplatedCustomAuth.credentials.js +7 -0
  4. package/dist/credentials/HttpTemplatedCustomAuth.credentials.js.map +1 -1
  5. package/dist/node-definitions/.nodes-hash +1 -1
  6. package/dist/node-definitions/nodes/n8n-nodes-base/googleAnalytics/v2/resource_report/operation_get.ts +2 -2
  7. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
  8. package/dist/nodes/Elastic/ElasticSecurity/ElasticSecurity.node.d.ts.map +1 -1
  9. package/dist/nodes/Elastic/ElasticSecurity/ElasticSecurity.node.js +14 -13
  10. package/dist/nodes/Elastic/ElasticSecurity/ElasticSecurity.node.js.map +1 -1
  11. package/dist/nodes/Elastic/ElasticSecurity/GenericFunctions.d.ts.map +1 -1
  12. package/dist/nodes/Elastic/ElasticSecurity/GenericFunctions.js +2 -1
  13. package/dist/nodes/Elastic/ElasticSecurity/GenericFunctions.js.map +1 -1
  14. package/dist/nodes/Elastic/Elasticsearch/Elasticsearch.node.d.ts.map +1 -1
  15. package/dist/nodes/Elastic/Elasticsearch/Elasticsearch.node.js +11 -10
  16. package/dist/nodes/Elastic/Elasticsearch/Elasticsearch.node.js.map +1 -1
  17. package/dist/nodes/Elastic/Elasticsearch/GenericFunctions.d.ts.map +1 -1
  18. package/dist/nodes/Elastic/Elasticsearch/GenericFunctions.js +5 -1
  19. package/dist/nodes/Elastic/Elasticsearch/GenericFunctions.js.map +1 -1
  20. package/dist/nodes/Form/v1/FormTriggerV1.node.d.ts +1 -1
  21. package/dist/nodes/Form/v2/FormTriggerV2.node.d.ts +1 -1
  22. package/dist/nodes/Git/GenericFunctions.d.ts +26 -2
  23. package/dist/nodes/Git/GenericFunctions.d.ts.map +1 -1
  24. package/dist/nodes/Git/GenericFunctions.js +152 -20
  25. package/dist/nodes/Git/GenericFunctions.js.map +1 -1
  26. package/dist/nodes/Git/Git.node.d.ts.map +1 -1
  27. package/dist/nodes/Git/Git.node.js +105 -24
  28. package/dist/nodes/Git/Git.node.js.map +1 -1
  29. package/dist/nodes/Github/GithubTrigger.node.d.ts.map +1 -1
  30. package/dist/nodes/Github/GithubTrigger.node.js +79 -15
  31. package/dist/nodes/Github/GithubTrigger.node.js.map +1 -1
  32. package/dist/nodes/Github/GithubTriggerHelpers.d.ts +1 -1
  33. package/dist/nodes/Github/GithubTriggerHelpers.d.ts.map +1 -1
  34. package/dist/nodes/Github/GithubTriggerHelpers.js +6 -3
  35. package/dist/nodes/Github/GithubTriggerHelpers.js.map +1 -1
  36. package/dist/nodes/Kafka/utils.d.ts.map +1 -1
  37. package/dist/nodes/Kafka/utils.js +0 -4
  38. package/dist/nodes/Kafka/utils.js.map +1 -1
  39. package/dist/nodes/Notion/shared/GenericFunctions.d.ts +3 -3
  40. package/dist/nodes/Notion/shared/GenericFunctions.d.ts.map +1 -1
  41. package/dist/nodes/Wait/Wait.node.d.ts +1 -1
  42. package/dist/types/credentials.json +1 -1
  43. package/dist/types/nodes.json +2 -2
  44. package/dist/utils/url.d.ts +9 -0
  45. package/dist/utils/url.d.ts.map +1 -0
  46. package/dist/utils/url.js +22 -0
  47. package/dist/utils/url.js.map +1 -0
  48. package/package.json +11 -11
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Encode an id as a single URL path segment. `.`, `..`, and the empty string
3
+ * are rejected: they survive encodeURIComponent but are removed during path
4
+ * normalisation, so they cannot be encoded safely. Nullish values are
5
+ * rejected before encoding, since they would otherwise become the literal
6
+ * string "null" or "undefined".
7
+ */
8
+ export declare function toPathSegment(id: unknown): string;
9
+ //# sourceMappingURL=url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../utils/url.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,CASjD"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toPathSegment = toPathSegment;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ /**
6
+ * Encode an id as a single URL path segment. `.`, `..`, and the empty string
7
+ * are rejected: they survive encodeURIComponent but are removed during path
8
+ * normalisation, so they cannot be encoded safely. Nullish values are
9
+ * rejected before encoding, since they would otherwise become the literal
10
+ * string "null" or "undefined".
11
+ */
12
+ function toPathSegment(id) {
13
+ if (id === null || id === undefined) {
14
+ throw new n8n_workflow_1.UserError('Invalid identifier: a value is required');
15
+ }
16
+ const value = String(id);
17
+ if (value === '' || value === '.' || value === '..') {
18
+ throw new n8n_workflow_1.UserError(`Invalid identifier: "${value}" is not allowed`);
19
+ }
20
+ return encodeURIComponent(value);
21
+ }
22
+ //# sourceMappingURL=url.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url.js","sourceRoot":"","sources":["../../utils/url.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AAEzC;;;;;;GAMG;AACH,uBAA8B,EAAW;IACxC,IAAI,EAAE,KAAK,IAAI,IAAI,EAAE,KAAK,SAAS,EAAE,CAAC;QACrC,MAAM,IAAI,wBAAS,CAAC,yCAAyC,CAAC,CAAC;IAChE,CAAC;IACD,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IACzB,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,GAAG,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACrD,MAAM,IAAI,wBAAS,CAAC,wBAAwB,KAAK,kBAAkB,CAAC,CAAC;IACtE,CAAC;IACD,OAAO,kBAAkB,CAAC,KAAK,CAAC,CAAC;AAClC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-base",
3
- "version": "2.37.0",
3
+ "version": "2.37.2",
4
4
  "description": "Base nodes of n8n",
5
5
  "main": "index.js",
6
6
  "typesVersions": {
@@ -13,8 +13,8 @@
13
13
  "files": [
14
14
  "dist",
15
15
  "aws-credentials.js",
16
- "LICENSE.md",
17
- "LICENSE_EE.md"
16
+ "LICENSE_EE.md",
17
+ "LICENSE.md"
18
18
  ],
19
19
  "n8n": {
20
20
  "credentials": [
@@ -908,13 +908,13 @@
908
908
  "vite": "^8.0.2",
909
909
  "vitest": "^4.1.9",
910
910
  "vitest-mock-extended": "^3.1.0",
911
- "@n8n/client-oauth2": "1.19.0",
911
+ "@n8n/client-oauth2": "1.19.3",
912
912
  "@n8n/eslint-plugin-community-nodes": "0.30.0",
913
- "@n8n/playwright-janitor": "0.1.0",
914
913
  "@n8n/typescript-config": "1.10.0",
914
+ "@n8n/playwright-janitor": "0.1.0",
915
915
  "@n8n/vitest-config": "1.21.0",
916
916
  "n8n-containers": "1.0.0",
917
- "n8n-core": "2.37.0"
917
+ "n8n-core": "2.37.3"
918
918
  },
919
919
  "dependencies": {
920
920
  "@aws-crypto/sha256-js": "5.2.0",
@@ -1002,13 +1002,13 @@
1002
1002
  "xml2js": "0.6.2",
1003
1003
  "xmlhttprequest-ssl": "3.1.0",
1004
1004
  "zod": "3.25.76",
1005
- "@n8n/config": "2.35.0",
1006
- "@n8n/backend-network": "1.11.0",
1005
+ "@n8n/backend-network": "1.11.2",
1006
+ "@n8n/config": "2.35.1",
1007
1007
  "@n8n/errors": "0.13.0",
1008
1008
  "@n8n/imap": "0.25.0",
1009
- "@n8n/di": "0.16.0",
1010
- "n8n-workflow": "2.37.0",
1011
- "@n8n/utils": "1.45.0"
1009
+ "@n8n/utils": "1.45.1",
1010
+ "n8n-workflow": "2.37.2",
1011
+ "@n8n/di": "0.16.0"
1012
1012
  },
1013
1013
  "license": "SEE LICENSE IN LICENSE.md",
1014
1014
  "homepage": "https://n8n.io",