n8n-workflow 1.17.1 → 1.19.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 (104) hide show
  1. package/dist/AugmentObject.js.map +1 -1
  2. package/dist/Cron.js.map +1 -1
  3. package/dist/ErrorReporterProxy.d.ts +1 -6
  4. package/dist/ErrorReporterProxy.js +3 -1
  5. package/dist/ErrorReporterProxy.js.map +1 -1
  6. package/dist/Expression.d.ts +1 -0
  7. package/dist/Expression.js +5 -4
  8. package/dist/Expression.js.map +1 -1
  9. package/dist/ExpressionEvaluatorProxy.d.ts +1 -0
  10. package/dist/ExpressionEvaluatorProxy.js.map +1 -1
  11. package/dist/Extensions/ArrayExtensions.js +31 -30
  12. package/dist/Extensions/ArrayExtensions.js.map +1 -1
  13. package/dist/Extensions/DateExtensions.js +12 -12
  14. package/dist/Extensions/DateExtensions.js.map +1 -1
  15. package/dist/Extensions/ExpressionExtension.js +6 -6
  16. package/dist/Extensions/ExpressionExtension.js.map +1 -1
  17. package/dist/Extensions/ExpressionParser.js.map +1 -1
  18. package/dist/Extensions/ExtendedFunctions.js +5 -4
  19. package/dist/Extensions/ExtendedFunctions.js.map +1 -1
  20. package/dist/Extensions/NumberExtensions.js +9 -9
  21. package/dist/Extensions/NumberExtensions.js.map +1 -1
  22. package/dist/Extensions/ObjectExtensions.js +11 -11
  23. package/dist/Extensions/ObjectExtensions.js.map +1 -1
  24. package/dist/Extensions/StringExtensions.js +29 -52
  25. package/dist/Extensions/StringExtensions.js.map +1 -1
  26. package/dist/Extensions/utils.js.map +1 -1
  27. package/dist/Interfaces.d.ts +19 -9
  28. package/dist/Interfaces.js +1 -0
  29. package/dist/Interfaces.js.map +1 -1
  30. package/dist/NodeHelpers.js +20 -3
  31. package/dist/NodeHelpers.js.map +1 -1
  32. package/dist/ObservableObject.js.map +1 -1
  33. package/dist/RoutingNode.d.ts +2 -1
  34. package/dist/RoutingNode.js +9 -8
  35. package/dist/RoutingNode.js.map +1 -1
  36. package/dist/TelemetryHelpers.js.map +1 -1
  37. package/dist/VersionedNodeType.js.map +1 -1
  38. package/dist/Workflow.d.ts +2 -1
  39. package/dist/Workflow.js +8 -3
  40. package/dist/Workflow.js.map +1 -1
  41. package/dist/WorkflowDataProxy.js +17 -17
  42. package/dist/WorkflowDataProxy.js.map +1 -1
  43. package/dist/WorkflowHooks.js.map +1 -1
  44. package/dist/build.tsbuildinfo +1 -1
  45. package/dist/errors/abstract/execution-base.error.d.ts +17 -0
  46. package/dist/errors/abstract/execution-base.error.js +34 -0
  47. package/dist/errors/abstract/execution-base.error.js.map +1 -0
  48. package/dist/errors/abstract/node.error.d.ts +11 -0
  49. package/dist/errors/abstract/node.error.js +109 -0
  50. package/dist/errors/abstract/node.error.js.map +1 -0
  51. package/dist/errors/application.error.d.ts +12 -0
  52. package/dist/errors/application.error.js +13 -0
  53. package/dist/errors/application.error.js.map +1 -0
  54. package/dist/errors/cli-subworkflow-operation.error.d.ts +3 -0
  55. package/dist/errors/cli-subworkflow-operation.error.js +8 -0
  56. package/dist/errors/cli-subworkflow-operation.error.js.map +1 -0
  57. package/dist/errors/expression-extension.error.d.ts +3 -0
  58. package/dist/errors/expression-extension.error.js +8 -0
  59. package/dist/errors/expression-extension.error.js.map +1 -0
  60. package/dist/{ExpressionError.d.ts → errors/expression.error.d.ts} +1 -3
  61. package/dist/{ExpressionError.js → errors/expression.error.js} +4 -7
  62. package/dist/errors/expression.error.js.map +1 -0
  63. package/dist/errors/index.d.ts +14 -0
  64. package/dist/errors/index.js +32 -0
  65. package/dist/errors/index.js.map +1 -0
  66. package/dist/errors/node-api.error.d.ts +25 -0
  67. package/dist/errors/node-api.error.js +165 -0
  68. package/dist/errors/node-api.error.js.map +1 -0
  69. package/dist/errors/node-operation.error.d.ts +7 -0
  70. package/dist/errors/node-operation.error.js +27 -0
  71. package/dist/errors/node-operation.error.js.map +1 -0
  72. package/dist/errors/node-ssl.error.d.ts +4 -0
  73. package/dist/errors/node-ssl.error.js +11 -0
  74. package/dist/errors/node-ssl.error.js.map +1 -0
  75. package/dist/errors/subworkflow-operation.error.d.ts +9 -0
  76. package/dist/errors/subworkflow-operation.error.js +18 -0
  77. package/dist/errors/subworkflow-operation.error.js.map +1 -0
  78. package/dist/errors/webhook-taken.error.d.ts +4 -0
  79. package/dist/errors/webhook-taken.error.js +11 -0
  80. package/dist/errors/webhook-taken.error.js.map +1 -0
  81. package/dist/{WorkflowActivationError.d.ts → errors/workflow-activation.error.d.ts} +2 -7
  82. package/dist/errors/workflow-activation.error.js +23 -0
  83. package/dist/errors/workflow-activation.error.js.map +1 -0
  84. package/dist/errors/workflow-deactivation.error.d.ts +3 -0
  85. package/dist/errors/workflow-deactivation.error.js +8 -0
  86. package/dist/errors/workflow-deactivation.error.js.map +1 -0
  87. package/dist/errors/workflow-operation.error.d.ts +9 -0
  88. package/dist/errors/workflow-operation.error.js +15 -0
  89. package/dist/errors/workflow-operation.error.js.map +1 -0
  90. package/dist/index.d.ts +1 -4
  91. package/dist/index.js +1 -4
  92. package/dist/index.js.map +1 -1
  93. package/dist/type-guards.js.map +1 -1
  94. package/dist/utils.js.map +1 -1
  95. package/package.json +1 -1
  96. package/dist/ExpressionError.js.map +0 -1
  97. package/dist/NodeErrors.d.ts +0 -53
  98. package/dist/NodeErrors.js +0 -317
  99. package/dist/NodeErrors.js.map +0 -1
  100. package/dist/WorkflowActivationError.js +0 -32
  101. package/dist/WorkflowActivationError.js.map +0 -1
  102. package/dist/WorkflowErrors.d.ts +0 -19
  103. package/dist/WorkflowErrors.js +0 -31
  104. package/dist/WorkflowErrors.js.map +0 -1
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAiC;AAGjC,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,YAAY,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAI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AApBW,QAAA,kBAAkB,sBAoB7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-workflow",
3
- "version": "1.17.1",
3
+ "version": "1.19.0",
4
4
  "description": "Workflow base code of n8n",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://n8n.io",
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExpressionError.js","sourceRoot":"","sources":["../src/ExpressionError.ts"],"names":[],"mappings":";;;AACA,6CAAkD;AAKlD,MAAa,eAAgB,SAAQ,+BAAkB;IACtD,YACC,OAAe,EACf,OAYC;QAED,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,EAAE,CAAC,CAAC;QAE1C,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,MAAK,SAAS,EAAE;YACvC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;SACvC;QAED,MAAM,WAAW,GAAG;YACnB,eAAe;YACf,qBAAqB;YACrB,eAAe;YACf,WAAW;YACX,iBAAiB;YACjB,WAAW;YACX,WAAW;YACX,UAAU;YACV,MAAM;SACN,CAAC;QACF,IAAI,OAAO,KAAK,SAAS,EAAE;YAC1B,MAAM,CAAC,IAAI,CAAC,OAAsB,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBACnD,IAAI,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;oBAC9B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAI,OAAuB,CAAC,GAAG,CAAC,CAAC;iBAClD;YACF,CAAC,CAAC,CAAC;SACH;IACF,CAAC;CACD;AA1CD,0CA0CC;AAED,MAAa,wBAAyB,SAAQ,eAAe;CAAG;AAAhE,4DAAgE"}
@@ -1,53 +0,0 @@
1
- import type { IDataObject, INode, JsonObject } from './Interfaces';
2
- export type Severity = 'warning' | 'error';
3
- interface ExecutionBaseErrorOptions {
4
- cause?: Error | JsonObject;
5
- }
6
- interface NodeOperationErrorOptions {
7
- message?: string;
8
- description?: string;
9
- runIndex?: number;
10
- itemIndex?: number;
11
- severity?: Severity;
12
- messageMapping?: {
13
- [key: string]: string;
14
- };
15
- }
16
- interface NodeApiErrorOptions extends NodeOperationErrorOptions {
17
- message?: string;
18
- httpCode?: string;
19
- parseXml?: boolean;
20
- }
21
- export declare abstract class ExecutionBaseError extends Error {
22
- description: string | null | undefined;
23
- cause: Error | JsonObject | undefined;
24
- timestamp: number;
25
- context: IDataObject;
26
- lineNumber: number | undefined;
27
- severity: Severity;
28
- constructor(message: string, { cause }: ExecutionBaseErrorOptions);
29
- toJSON?(): any;
30
- }
31
- export declare abstract class NodeError extends ExecutionBaseError {
32
- node: INode;
33
- constructor(node: INode, error: Error | JsonObject);
34
- protected findProperty(jsonError: JsonObject, potentialKeys: string[], traversalKeys?: string[]): string | null;
35
- protected setDescriptiveErrorMessage(message: string, description: string | undefined | null, code?: string | null, messageMapping?: {
36
- [key: string]: string;
37
- }): string[];
38
- protected updateDescription(message: string, description: string | undefined | null): string;
39
- }
40
- export declare class NodeOperationError extends NodeError {
41
- lineNumber: number | undefined;
42
- constructor(node: INode, error: Error | string, options?: NodeOperationErrorOptions);
43
- }
44
- export declare class NodeApiError extends NodeError {
45
- httpCode: string | null;
46
- constructor(node: INode, error: JsonObject, { message, description, httpCode, parseXml, runIndex, itemIndex, severity, messageMapping, }?: NodeApiErrorOptions);
47
- private setDescriptionFromXml;
48
- private setDefaultStatusCodeMessage;
49
- }
50
- export declare class NodeSSLError extends ExecutionBaseError {
51
- constructor(cause: Error);
52
- }
53
- export {};
@@ -1,317 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeSSLError = exports.NodeApiError = exports.NodeOperationError = exports.NodeError = exports.ExecutionBaseError = void 0;
4
- const xml2js_1 = require("xml2js");
5
- const utils_1 = require("./utils");
6
- const ERROR_MESSAGE_PROPERTIES = [
7
- 'cause',
8
- 'error',
9
- 'message',
10
- 'Message',
11
- 'msg',
12
- 'messages',
13
- 'description',
14
- 'reason',
15
- 'detail',
16
- 'details',
17
- 'errors',
18
- 'errorMessage',
19
- 'errorMessages',
20
- 'ErrorMessage',
21
- 'error_message',
22
- '_error_message',
23
- 'errorDescription',
24
- 'error_description',
25
- 'error_summary',
26
- 'title',
27
- 'text',
28
- 'field',
29
- 'err',
30
- 'type',
31
- ];
32
- const ERROR_STATUS_PROPERTIES = [
33
- 'statusCode',
34
- 'status',
35
- 'code',
36
- 'status_code',
37
- 'errorCode',
38
- 'error_code',
39
- ];
40
- const ERROR_NESTING_PROPERTIES = ['error', 'err', 'response', 'body', 'data'];
41
- const COMMON_ERRORS = {
42
- ECONNREFUSED: 'The service refused the connection - perhaps it is offline',
43
- ECONNRESET: 'The connection to the server wes closed unexpectedly, perhaps it is offline. You can retry request immidiately or wait and retry later.',
44
- ENOTFOUND: 'The connection cannot be established, this usually occurs due to an incorrect host(domain) value',
45
- ETIMEDOUT: "The connection timed out, consider setting 'Retry on Fail' option in the node settings",
46
- ERRADDRINUSE: 'The port is already occupied by some other application, if possible change the port or kill the application that is using it',
47
- EADDRNOTAVAIL: 'The address is not available, ensure that you have the right IP address',
48
- ECONNABORTED: 'The connection was aborted, perhaps the server is offline',
49
- EHOSTUNREACH: 'The host is unreachable, perhaps the server is offline',
50
- EAI_AGAIN: 'The DNS server returned an error, perhaps the server is offline',
51
- ENOENT: 'The file or directory does not exist',
52
- EISDIR: 'The file path expected but a given path is a directory',
53
- ENOTDIR: 'The directory path expected but a given path is a file',
54
- EACCES: 'Forbidden by access permissions, make sure you have the right permissions',
55
- EEXIST: 'The file or directory already exists',
56
- EPERM: 'Operation not permitted, make sure you have the right permissions',
57
- GETADDRINFO: 'The server closed the connection unexpectedly',
58
- };
59
- const STATUS_CODE_MESSAGES = {
60
- '4XX': 'Your request is invalid or could not be processed by the service',
61
- '400': 'Bad request - please check your parameters',
62
- '401': 'Authorization failed - please check your credentials',
63
- '402': 'Payment required - perhaps check your payment details?',
64
- '403': 'Forbidden - perhaps check your credentials?',
65
- '404': 'The resource you are requesting could not be found',
66
- '405': 'Method not allowed - please check you are using the right HTTP method',
67
- '429': 'The service is receiving too many requests from you',
68
- '5XX': 'The service failed to process your request',
69
- '500': 'The service was not able to process your request',
70
- '502': 'Bad gateway - the service failed to handle your request',
71
- '503': 'Service unavailable - try again later or consider setting this node to retry automatically (in the node settings)',
72
- '504': 'Gateway timed out - perhaps try again later?',
73
- };
74
- const UNKNOWN_ERROR_MESSAGE = 'UNKNOWN ERROR - check the detailed error for more information';
75
- const UNKNOWN_ERROR_MESSAGE_CRED = 'UNKNOWN ERROR';
76
- class ExecutionBaseError extends Error {
77
- constructor(message, { cause }) {
78
- const options = cause instanceof Error ? { cause } : {};
79
- super(message, options);
80
- this.context = {};
81
- this.severity = 'error';
82
- this.name = this.constructor.name;
83
- this.timestamp = Date.now();
84
- if (cause instanceof ExecutionBaseError) {
85
- this.context = cause.context;
86
- }
87
- else if (cause && !(cause instanceof Error)) {
88
- this.cause = cause;
89
- }
90
- }
91
- toJSON() {
92
- return {
93
- message: this.message,
94
- lineNumber: this.lineNumber,
95
- timestamp: this.timestamp,
96
- name: this.name,
97
- description: this.description,
98
- context: this.context,
99
- cause: this.cause,
100
- };
101
- }
102
- }
103
- exports.ExecutionBaseError = ExecutionBaseError;
104
- class NodeError extends ExecutionBaseError {
105
- constructor(node, error) {
106
- const message = error instanceof Error ? error.message : '';
107
- super(message, { cause: error });
108
- this.node = node;
109
- }
110
- findProperty(jsonError, potentialKeys, traversalKeys = []) {
111
- for (const key of potentialKeys) {
112
- const value = jsonError[key];
113
- if (value) {
114
- if (typeof value === 'string')
115
- return value;
116
- if (typeof value === 'number')
117
- return value.toString();
118
- if (Array.isArray(value)) {
119
- const resolvedErrors = value
120
- .map((jsonError) => {
121
- if (typeof jsonError === 'string')
122
- return jsonError;
123
- if (typeof jsonError === 'number')
124
- return jsonError.toString();
125
- if ((0, utils_1.isTraversableObject)(jsonError)) {
126
- return this.findProperty(jsonError, potentialKeys);
127
- }
128
- return null;
129
- })
130
- .filter((errorValue) => errorValue !== null);
131
- if (resolvedErrors.length === 0) {
132
- return null;
133
- }
134
- return resolvedErrors.join(' | ');
135
- }
136
- if ((0, utils_1.isTraversableObject)(value)) {
137
- const property = this.findProperty(value, potentialKeys);
138
- if (property) {
139
- return property;
140
- }
141
- }
142
- }
143
- }
144
- for (const key of traversalKeys) {
145
- const value = jsonError[key];
146
- if ((0, utils_1.isTraversableObject)(value)) {
147
- const property = this.findProperty(value, potentialKeys, traversalKeys);
148
- if (property) {
149
- return property;
150
- }
151
- }
152
- }
153
- return null;
154
- }
155
- setDescriptiveErrorMessage(message, description, code, messageMapping) {
156
- let newMessage = message;
157
- let newDescription = description;
158
- if (messageMapping) {
159
- for (const [mapKey, mapMessage] of Object.entries(messageMapping)) {
160
- if ((message || '').toUpperCase().includes(mapKey.toUpperCase())) {
161
- newMessage = mapMessage;
162
- newDescription = this.updateDescription(message, description);
163
- break;
164
- }
165
- }
166
- if (newMessage !== message) {
167
- return [newMessage, newDescription];
168
- }
169
- }
170
- if (code && COMMON_ERRORS[code.toUpperCase()]) {
171
- newMessage = COMMON_ERRORS[code];
172
- newDescription = this.updateDescription(message, description);
173
- return [newMessage, newDescription];
174
- }
175
- for (const [errorCode, errorDescriptiveMessage] of Object.entries(COMMON_ERRORS)) {
176
- if ((message || '').toUpperCase().includes(errorCode.toUpperCase())) {
177
- newMessage = errorDescriptiveMessage;
178
- newDescription = this.updateDescription(message, description);
179
- break;
180
- }
181
- }
182
- return [newMessage, newDescription];
183
- }
184
- updateDescription(message, description) {
185
- return `${message}${description ? ` - ${description}` : ''}`;
186
- }
187
- }
188
- exports.NodeError = NodeError;
189
- class NodeOperationError extends NodeError {
190
- constructor(node, error, options = {}) {
191
- if (typeof error === 'string') {
192
- error = new Error(error);
193
- }
194
- super(node, error);
195
- if (options.message)
196
- this.message = options.message;
197
- if (options.severity)
198
- this.severity = options.severity;
199
- this.description = options.description;
200
- this.context.runIndex = options.runIndex;
201
- this.context.itemIndex = options.itemIndex;
202
- if (this.message === this.description) {
203
- this.description = undefined;
204
- }
205
- [this.message, this.description] = this.setDescriptiveErrorMessage(this.message, this.description, undefined, options.messageMapping);
206
- }
207
- }
208
- exports.NodeOperationError = NodeOperationError;
209
- class NodeApiError extends NodeError {
210
- constructor(node, error, { message, description, httpCode, parseXml, runIndex, itemIndex, severity, messageMapping, } = {}) {
211
- var _a, _b, _c, _d, _e, _f;
212
- super(node, error);
213
- if (severity)
214
- this.severity = severity;
215
- else if ((httpCode === null || httpCode === void 0 ? void 0 : httpCode.charAt(0)) !== '5')
216
- this.severity = 'warning';
217
- if (error.error) {
218
- (0, utils_1.removeCircularRefs)(error.error);
219
- }
220
- if (!description && (error.description || ((_a = error === null || error === void 0 ? void 0 : error.reason) === null || _a === void 0 ? void 0 : _a.description))) {
221
- this.description = (error.description ||
222
- ((_b = error === null || error === void 0 ? void 0 : error.reason) === null || _b === void 0 ? void 0 : _b.description));
223
- }
224
- if (!message && (error.message || ((_c = error === null || error === void 0 ? void 0 : error.reason) === null || _c === void 0 ? void 0 : _c.message) || description)) {
225
- this.message = (error.message ||
226
- ((_d = error === null || error === void 0 ? void 0 : error.reason) === null || _d === void 0 ? void 0 : _d.message) ||
227
- description);
228
- }
229
- if (error.reason) {
230
- const reason = error.reason;
231
- if (reason.isAxiosError && reason.response) {
232
- error = reason.response;
233
- }
234
- }
235
- if (httpCode) {
236
- this.httpCode = httpCode;
237
- }
238
- else {
239
- this.httpCode =
240
- (_e = this.findProperty(error, ERROR_STATUS_PROPERTIES, ERROR_NESTING_PROPERTIES)) !== null && _e !== void 0 ? _e : null;
241
- }
242
- if (description) {
243
- this.description = description;
244
- }
245
- if (!this.description) {
246
- if (parseXml) {
247
- this.setDescriptionFromXml(error.error);
248
- }
249
- else {
250
- this.description = this.findProperty(error, ERROR_MESSAGE_PROPERTIES, ERROR_NESTING_PROPERTIES);
251
- }
252
- }
253
- if (message) {
254
- this.message = message;
255
- }
256
- else {
257
- this.setDefaultStatusCodeMessage();
258
- }
259
- if (this.message === this.description) {
260
- this.description = undefined;
261
- }
262
- [this.message, this.description] = this.setDescriptiveErrorMessage(this.message, this.description, this.httpCode ||
263
- (error === null || error === void 0 ? void 0 : error.code) ||
264
- ((_f = error === null || error === void 0 ? void 0 : error.reason) === null || _f === void 0 ? void 0 : _f.code) ||
265
- undefined, messageMapping);
266
- if (runIndex !== undefined)
267
- this.context.runIndex = runIndex;
268
- if (itemIndex !== undefined)
269
- this.context.itemIndex = itemIndex;
270
- }
271
- setDescriptionFromXml(xml) {
272
- (0, xml2js_1.parseString)(xml, { explicitArray: false }, (_, result) => {
273
- if (!result)
274
- return;
275
- const topLevelKey = Object.keys(result)[0];
276
- this.description = this.findProperty(result[topLevelKey], ERROR_MESSAGE_PROPERTIES, ['Error'].concat(ERROR_NESTING_PROPERTIES));
277
- });
278
- }
279
- setDefaultStatusCodeMessage() {
280
- if (!this.httpCode && this.message && this.message.toLowerCase().includes('bad gateway')) {
281
- this.httpCode = '502';
282
- }
283
- if (!this.httpCode) {
284
- this.httpCode = null;
285
- this.message = this.message || this.description || UNKNOWN_ERROR_MESSAGE;
286
- return;
287
- }
288
- if (STATUS_CODE_MESSAGES[this.httpCode]) {
289
- this.description = this.updateDescription(this.message, this.description);
290
- this.message = STATUS_CODE_MESSAGES[this.httpCode];
291
- return;
292
- }
293
- switch (this.httpCode.charAt(0)) {
294
- case '4':
295
- this.description = this.updateDescription(this.message, this.description);
296
- this.message = STATUS_CODE_MESSAGES['4XX'];
297
- break;
298
- case '5':
299
- this.description = this.updateDescription(this.message, this.description);
300
- this.message = STATUS_CODE_MESSAGES['5XX'];
301
- break;
302
- default:
303
- this.message = this.message || this.description || UNKNOWN_ERROR_MESSAGE;
304
- }
305
- if (this.node.type === 'n8n-nodes-base.noOp' && this.message === UNKNOWN_ERROR_MESSAGE) {
306
- this.message = `${UNKNOWN_ERROR_MESSAGE_CRED} - ${this.httpCode}`;
307
- }
308
- }
309
- }
310
- exports.NodeApiError = NodeApiError;
311
- class NodeSSLError extends ExecutionBaseError {
312
- constructor(cause) {
313
- super("SSL Issue: consider using the 'Ignore SSL issues' option", { cause });
314
- }
315
- }
316
- exports.NodeSSLError = NodeSSLError;
317
- //# sourceMappingURL=NodeErrors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NodeErrors.js","sourceRoot":"","sources":["../src/NodeErrors.ts"],"names":[],"mappings":";;;AAEA,mCAAqC;AACrC,mCAAkE;AAMlE,MAAM,wBAAwB,GAAG;IAChC,OAAO;IACP,OAAO;IACP,SAAS;IACT,SAAS;IACT,KAAK;IACL,UAAU;IACV,aAAa;IACb,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,cAAc;IACd,eAAe;IACf,cAAc;IACd,eAAe;IACf,gBAAgB;IAChB,kBAAkB;IAClB,mBAAmB;IACnB,eAAe;IACf,OAAO;IACP,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;CACN,CAAC;AAKF,MAAM,uBAAuB,GAAG;IAC/B,YAAY;IACZ,QAAQ;IACR,MAAM;IACN,aAAa;IACb,WAAW;IACX,YAAY;CACZ,CAAC;AAKF,MAAM,wBAAwB,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAK9E,MAAM,aAAa,GAAgB;IAElC,YAAY,EAAE,4DAA4D;IAC1E,UAAU,EACT,yIAAyI;IAC1I,SAAS,EACR,kGAAkG;IACnG,SAAS,EACR,wFAAwF;IACzF,YAAY,EACX,8HAA8H;IAC/H,aAAa,EAAE,yEAAyE;IACxF,YAAY,EAAE,2DAA2D;IACzE,YAAY,EAAE,wDAAwD;IACtE,SAAS,EAAE,iEAAiE;IAC5E,MAAM,EAAE,sCAAsC;IAC9C,MAAM,EAAE,wDAAwD;IAChE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AW,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;gBAC1E,IAAI,CAAC,OAAO,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;gBAC3C,MAAM;YACP;gBAEC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,IAAI,qBAAqB,CAAC;SAC1E;QACD,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,qBAAqB,IAAI,IAAI,CAAC,OAAO,KAAK,qBAAqB,EAAE;YACvF,IAAI,CAAC,OAAO,GAAG,GAAG,0BAA0B,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;SAClE;IACF,CAAC;CACD;AAlKD,oCAkKC;AAED,MAAa,YAAa,SAAQ,kBAAkB;IACnD,YAAY,KAAY;QACvB,KAAK,CAAC,0DAA0D,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9E,CAAC;CACD;AAJD,oCAIC"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebhookPathAlreadyTakenError = exports.WorkflowDeactivationError = exports.WorkflowActivationError = void 0;
4
- const NodeErrors_1 = require("./NodeErrors");
5
- class WorkflowActivationError extends NodeErrors_1.ExecutionBaseError {
6
- constructor(message, { cause, node, severity, workflowId } = {}) {
7
- let error = cause;
8
- if (cause instanceof NodeErrors_1.ExecutionBaseError) {
9
- error = new Error(cause.message);
10
- error.constructor = cause.constructor;
11
- error.name = cause.name;
12
- error.stack = cause.stack;
13
- }
14
- super(message, { cause: error });
15
- this.node = node;
16
- this.workflowId = workflowId;
17
- this.message = message;
18
- if (severity)
19
- this.severity = severity;
20
- }
21
- }
22
- exports.WorkflowActivationError = WorkflowActivationError;
23
- class WorkflowDeactivationError extends WorkflowActivationError {
24
- }
25
- exports.WorkflowDeactivationError = WorkflowDeactivationError;
26
- class WebhookPathAlreadyTakenError extends WorkflowActivationError {
27
- constructor(nodeName, cause) {
28
- super(`The URL path that the "${nodeName}" node uses is already taken. Please change it to something else.`, { severity: 'warning', cause });
29
- }
30
- }
31
- exports.WebhookPathAlreadyTakenError = WebhookPathAlreadyTakenError;
32
- //# sourceMappingURL=WorkflowActivationError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkflowActivationError.js","sourceRoot":"","sources":["../src/WorkflowActivationError.ts"],"names":[],"mappings":";;;AACA,6CAAiE;AAYjE,MAAa,uBAAwB,SAAQ,+BAAkB;IAK9D,YACC,OAAe,EACf,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,KAAqC,EAAE;QAE1E,IAAI,KAAK,GAAG,KAAc,CAAC;QAC3B,IAAI,KAAK,YAAY,+BAAkB,EAAE;YACxC,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACjC,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;YACtC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;YACxB,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;SAC1B;QACD,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,QAAQ;YAAE,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACxC,CAAC;CACD;AAtBD,0DAsBC;AAED,MAAa,yBAA0B,SAAQ,uBAAuB;CAAG;AAAzE,8DAAyE;AAEzE,MAAa,4BAA6B,SAAQ,uBAAuB;IACxE,YAAY,QAAgB,EAAE,KAAa;QAC1C,KAAK,CACJ,0BAA0B,QAAQ,mEAAmE,EACrG,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,CAC9B,CAAC;IACH,CAAC;CACD;AAPD,oEAOC"}
@@ -1,19 +0,0 @@
1
- import type { INode } from './Interfaces';
2
- import { ExecutionBaseError } from './NodeErrors';
3
- export declare class WorkflowOperationError extends ExecutionBaseError {
4
- node: INode | undefined;
5
- timestamp: number;
6
- lineNumber: number | undefined;
7
- description: string | undefined;
8
- constructor(message: string, node?: INode);
9
- }
10
- export declare class SubworkflowOperationError extends WorkflowOperationError {
11
- description: string;
12
- cause: {
13
- message: string;
14
- stack: string;
15
- };
16
- constructor(message: string, description: string);
17
- }
18
- export declare class CliWorkflowOperationError extends SubworkflowOperationError {
19
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CliWorkflowOperationError = exports.SubworkflowOperationError = exports.WorkflowOperationError = void 0;
4
- const NodeErrors_1 = require("./NodeErrors");
5
- class WorkflowOperationError extends NodeErrors_1.ExecutionBaseError {
6
- constructor(message, node) {
7
- super(message, { cause: undefined });
8
- this.severity = 'warning';
9
- this.name = this.constructor.name;
10
- this.node = node;
11
- this.timestamp = Date.now();
12
- }
13
- }
14
- exports.WorkflowOperationError = WorkflowOperationError;
15
- class SubworkflowOperationError extends WorkflowOperationError {
16
- constructor(message, description) {
17
- super(message);
18
- this.description = '';
19
- this.name = this.constructor.name;
20
- this.description = description;
21
- this.cause = {
22
- message,
23
- stack: this.stack,
24
- };
25
- }
26
- }
27
- exports.SubworkflowOperationError = SubworkflowOperationError;
28
- class CliWorkflowOperationError extends SubworkflowOperationError {
29
- }
30
- exports.CliWorkflowOperationError = CliWorkflowOperationError;
31
- //# sourceMappingURL=WorkflowErrors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkflowErrors.js","sourceRoot":"","sources":["../src/WorkflowErrors.ts"],"names":[],"mappings":";;;AACA,6CAAkD;AAKlD,MAAa,sBAAuB,SAAQ,+BAAkB;IAS7D,YAAY,OAAe,EAAE,IAAY;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,CAAC;CACD;AAhBD,wDAgBC;AAED,MAAa,yBAA0B,SAAQ,sBAAsB;IAKpE,YAAY,OAAe,EAAE,WAAmB;QAC/C,KAAK,CAAC,OAAO,CAAC,CAAC;QALhB,gBAAW,GAAG,EAAE,CAAC;QAMhB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,KAAK,GAAG;YACZ,OAAO;YACP,KAAK,EAAE,IAAI,CAAC,KAAe;SAC3B,CAAC;IACH,CAAC;CACD;AAfD,8DAeC;AAED,MAAa,yBAA0B,SAAQ,yBAAyB;CAAG;AAA3E,8DAA2E"}