n8n-workflow 0.121.0 → 0.122.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.
Files changed (38) hide show
  1. package/LICENSE.md +4 -2
  2. package/README.md +2 -2
  3. package/dist/src/ExpressionError.d.ts +1 -0
  4. package/dist/src/ExpressionError.js +1 -1
  5. package/dist/src/ExpressionError.js.map +1 -1
  6. package/dist/src/Interfaces.d.ts +3 -3
  7. package/dist/src/NodeErrors.d.ts +17 -16
  8. package/dist/src/NodeErrors.js +22 -30
  9. package/dist/src/NodeErrors.js.map +1 -1
  10. package/dist/src/NodeHelpers.d.ts +4 -4
  11. package/dist/src/NodeHelpers.js +5 -4
  12. package/dist/src/NodeHelpers.js.map +1 -1
  13. package/dist/src/RoutingNode.js +6 -2
  14. package/dist/src/RoutingNode.js.map +1 -1
  15. package/dist/src/TelemetryHelpers.js +2 -2
  16. package/dist/src/TelemetryHelpers.js.map +1 -1
  17. package/dist/src/VersionedNodeType.d.ts +9 -0
  18. package/dist/src/VersionedNodeType.js +24 -0
  19. package/dist/src/VersionedNodeType.js.map +1 -0
  20. package/dist/src/Workflow.js +3 -0
  21. package/dist/src/Workflow.js.map +1 -1
  22. package/dist/src/WorkflowActivationError.d.ts +6 -1
  23. package/dist/src/WorkflowActivationError.js +9 -6
  24. package/dist/src/WorkflowActivationError.js.map +1 -1
  25. package/dist/src/index.d.ts +3 -1
  26. package/dist/src/index.js +10 -1
  27. package/dist/src/index.js.map +1 -1
  28. package/dist/src/type-guards.d.ts +7 -0
  29. package/dist/src/type-guards.js +18 -0
  30. package/dist/src/type-guards.js.map +1 -0
  31. package/dist/src/utils.d.ts +12 -0
  32. package/dist/src/utils.js +16 -1
  33. package/dist/src/utils.js.map +1 -1
  34. package/dist/tsconfig.tsbuildinfo +1 -1
  35. package/package.json +1 -21
  36. package/dist/src/utils.test.d.ts +0 -1
  37. package/dist/src/utils.test.js +0 -36
  38. package/dist/src/utils.test.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-workflow",
3
- "version": "0.121.0",
3
+ "version": "0.122.0",
4
4
  "description": "Workflow base code of n8n",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://n8n.io",
@@ -39,7 +39,6 @@
39
39
  "devDependencies": {
40
40
  "@n8n_io/eslint-config": "",
41
41
  "@types/express": "^4.17.6",
42
- "@types/jest": "^27.4.0",
43
42
  "@types/jmespath": "^0.15.0",
44
43
  "@types/lodash.get": "^4.4.6",
45
44
  "@types/lodash.merge": "^4.6.6",
@@ -47,10 +46,7 @@
47
46
  "@types/luxon": "^2.0.9",
48
47
  "@types/node": "^16.11.22",
49
48
  "@types/xml2js": "^0.4.3",
50
- "jest": "^27.4.7",
51
- "jest-environment-jsdom": "^27.5.1",
52
49
  "prettier": "^2.3.2",
53
- "ts-jest": "^27.1.3",
54
50
  "typescript": "~4.8.0"
55
51
  },
56
52
  "dependencies": {
@@ -62,21 +58,5 @@
62
58
  "lodash.set": "^4.3.2",
63
59
  "luxon": "~2.3.0",
64
60
  "xml2js": "^0.4.23"
65
- },
66
- "jest": {
67
- "transform": {
68
- "^.+\\.ts$": "ts-jest"
69
- },
70
- "testURL": "http://localhost/",
71
- "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(js|ts)$",
72
- "testPathIgnorePatterns": [
73
- "/dist/",
74
- "/node_modules/"
75
- ],
76
- "moduleFileExtensions": [
77
- "ts",
78
- "js",
79
- "json"
80
- ]
81
61
  }
82
62
  }
@@ -1 +0,0 @@
1
- export {};
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const utils_1 = require("./utils");
4
- describe('deepCopy', () => {
5
- it('should deep copy an object', () => {
6
- const object = {
7
- deep: {
8
- props: {
9
- list: [{ a: 1 }, { b: 2 }, { c: 3 }],
10
- },
11
- arr: [1, 2, 3],
12
- },
13
- arr: [
14
- {
15
- prop: {
16
- list: ['a', 'b', 'c'],
17
- },
18
- },
19
- ],
20
- func: () => { },
21
- date: new Date(),
22
- undef: undefined,
23
- nil: null,
24
- bool: true,
25
- num: 1,
26
- };
27
- const copy = (0, utils_1.deepCopy)(object);
28
- expect(copy).toEqual(object);
29
- expect(copy).not.toBe(object);
30
- expect(copy.arr).toEqual(object.arr);
31
- expect(copy.arr).not.toBe(object.arr);
32
- expect(copy.deep.props).toEqual(object.deep.props);
33
- expect(copy.deep.props).not.toBe(object.deep.props);
34
- });
35
- });
36
- //# sourceMappingURL=utils.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../../src/utils.test.ts"],"names":[],"mappings":";;AAAA,mCAAmC;AAEnC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACrC,MAAM,MAAM,GAAG;YACd,IAAI,EAAE;gBACL,KAAK,EAAE;oBACN,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;iBACpC;gBACD,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;aACd;YACD,GAAG,EAAE;gBACJ;oBACC,IAAI,EAAE;wBACL,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;qBACrB;iBACD;aACD;YACD,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;YACd,IAAI,EAAE,IAAI,IAAI,EAAE;YAChB,KAAK,EAAE,SAAS;YAChB,GAAG,EAAE,IAAI;YACT,IAAI,EAAE,IAAI;YACV,GAAG,EAAE,CAAC;SACN,CAAC;QACF,MAAM,IAAI,GAAG,IAAA,gBAAQ,EAAC,MAAM,CAAC,CAAC;QAC9B,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,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