first commit
This commit is contained in:
27
node_modules/n8n-workflow/dist/cjs/errors/abstract/execution-base.error.d.ts
generated
vendored
Normal file
27
node_modules/n8n-workflow/dist/cjs/errors/abstract/execution-base.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { ApplicationError, type ReportingOptions } from '@n8n/errors';
|
||||
import type { Functionality, IDataObject, JsonObject } from '../../interfaces';
|
||||
interface ExecutionBaseErrorOptions extends ReportingOptions {
|
||||
cause?: Error;
|
||||
errorResponse?: JsonObject;
|
||||
}
|
||||
export declare abstract class ExecutionBaseError extends ApplicationError {
|
||||
description: string | null | undefined;
|
||||
cause?: Error;
|
||||
errorResponse?: JsonObject;
|
||||
timestamp: number;
|
||||
context: IDataObject;
|
||||
lineNumber: number | undefined;
|
||||
functionality: Functionality;
|
||||
constructor(message: string, options?: ExecutionBaseErrorOptions);
|
||||
toJSON?(): {
|
||||
message: string;
|
||||
lineNumber: number | undefined;
|
||||
timestamp: number;
|
||||
name: string;
|
||||
description: string | null | undefined;
|
||||
context: IDataObject;
|
||||
cause: Error | undefined;
|
||||
};
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=execution-base.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/abstract/execution-base.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/abstract/execution-base.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"execution-base.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/abstract/execution-base.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEtE,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE/E,UAAU,yBAA0B,SAAQ,gBAAgB;IAC3D,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,aAAa,CAAC,EAAE,UAAU,CAAC;CAC3B;AAED,8BAAsB,kBAAmB,SAAQ,gBAAgB;IAChE,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAE9B,KAAK,CAAC,EAAE,KAAK,CAAC;IAEvB,aAAa,CAAC,EAAE,UAAU,CAAC;IAE3B,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,WAAW,CAAM;IAE1B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B,aAAa,EAAE,aAAa,CAAa;gBAE7B,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,yBAA8B;IAgBpE,MAAM,CAAC;;;;;;;;;CAWP"}
|
||||
50
node_modules/n8n-workflow/dist/cjs/errors/abstract/execution-base.error.js
generated
vendored
Normal file
50
node_modules/n8n-workflow/dist/cjs/errors/abstract/execution-base.error.js
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "@n8n/errors"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ExecutionBaseError = void 0;
|
||||
const errors_1 = require("@n8n/errors");
|
||||
class ExecutionBaseError extends errors_1.ApplicationError {
|
||||
description;
|
||||
cause;
|
||||
errorResponse;
|
||||
timestamp;
|
||||
context = {};
|
||||
lineNumber;
|
||||
functionality = 'regular';
|
||||
constructor(message, options = {}) {
|
||||
super(message, options);
|
||||
this.name = this.constructor.name;
|
||||
this.timestamp = Date.now();
|
||||
const { cause, errorResponse } = options;
|
||||
if (cause instanceof ExecutionBaseError) {
|
||||
this.context = cause.context;
|
||||
}
|
||||
else if (cause && !(cause instanceof Error)) {
|
||||
this.cause = cause;
|
||||
}
|
||||
if (errorResponse)
|
||||
this.errorResponse = errorResponse;
|
||||
}
|
||||
toJSON() {
|
||||
return {
|
||||
message: this.message,
|
||||
lineNumber: this.lineNumber,
|
||||
timestamp: this.timestamp,
|
||||
name: this.name,
|
||||
description: this.description,
|
||||
context: this.context,
|
||||
cause: this.cause,
|
||||
};
|
||||
}
|
||||
}
|
||||
exports.ExecutionBaseError = ExecutionBaseError;
|
||||
});
|
||||
//# sourceMappingURL=execution-base.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/abstract/execution-base.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/abstract/execution-base.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"execution-base.error.js","sourceRoot":"","sources":["../../../../src/errors/abstract/execution-base.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,wCAAsE;IAStE,MAAsB,kBAAmB,SAAQ,yBAAgB;QAChE,WAAW,CAA4B;QAE9B,KAAK,CAAS;QAEvB,aAAa,CAAc;QAE3B,SAAS,CAAS;QAElB,OAAO,GAAgB,EAAE,CAAC;QAE1B,UAAU,CAAqB;QAE/B,aAAa,GAAkB,SAAS,CAAC;QAEzC,YAAY,OAAe,EAAE,UAAqC,EAAE;YACnE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAExB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;YAClC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAE5B,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;YACzC,IAAI,KAAK,YAAY,kBAAkB,EAAE,CAAC;gBACzC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;YAC9B,CAAC;iBAAM,IAAI,KAAK,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,EAAE,CAAC;gBAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACpB,CAAC;YAED,IAAI,aAAa;gBAAE,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACvD,CAAC;QAED,MAAM;YACL,OAAO;gBACN,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,KAAK,EAAE,IAAI,CAAC,KAAK;aACjB,CAAC;QACH,CAAC;KACD;IA1CD,gDA0CC"}
|
||||
48
node_modules/n8n-workflow/dist/cjs/errors/abstract/node.error.d.ts
generated
vendored
Normal file
48
node_modules/n8n-workflow/dist/cjs/errors/abstract/node.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
import { ExecutionBaseError } from './execution-base.error';
|
||||
import type { INode, JsonObject } from '../../interfaces';
|
||||
/**
|
||||
* Base class for specific NodeError-types, with functionality for finding
|
||||
* a value recursively inside an error object.
|
||||
*/
|
||||
export declare abstract class NodeError extends ExecutionBaseError {
|
||||
readonly node: INode;
|
||||
messages: string[];
|
||||
constructor(node: INode, error: Error | JsonObject);
|
||||
/**
|
||||
* Finds property through exploration based on potential keys and traversal keys.
|
||||
* Depth-first approach.
|
||||
*
|
||||
* This method iterates over `potentialKeys` and, if the value at the key is a
|
||||
* truthy value, the type of the value is checked:
|
||||
* (1) if a string or number, the value is returned as a string; or
|
||||
* (2) if an array,
|
||||
* its string or number elements are collected as a long string,
|
||||
* its object elements are traversed recursively (restart this function
|
||||
* with each object as a starting point), or
|
||||
* (3) if it is an object, it traverses the object and nested ones recursively
|
||||
* based on the `potentialKeys` and returns a string if found.
|
||||
*
|
||||
* If nothing found via `potentialKeys` this method iterates over `traversalKeys` and
|
||||
* if the value at the key is a traversable object, it restarts with the object as the
|
||||
* new starting point (recursion).
|
||||
* If nothing found for any of the `traversalKeys`, exploration continues with remaining
|
||||
* `traversalKeys`.
|
||||
*
|
||||
* Otherwise, if all the paths have been exhausted and no value is eligible, `null` is
|
||||
* returned.
|
||||
*
|
||||
*/
|
||||
protected findProperty(jsonError: JsonObject, potentialKeys: string[], traversalKeys?: string[]): string | null;
|
||||
/**
|
||||
* Preserve the original error message before setting the new one
|
||||
*/
|
||||
protected addToMessages(message: string): void;
|
||||
/**
|
||||
* Set descriptive error message if code is provided or if message contains any of the common errors,
|
||||
* update description to include original message plus the description
|
||||
*/
|
||||
protected setDescriptiveErrorMessage(message: string, messages: string[], code?: string | null, messageMapping?: {
|
||||
[key: string]: string;
|
||||
}): [string, string[]];
|
||||
}
|
||||
//# sourceMappingURL=node.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/abstract/node.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/abstract/node.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/abstract/node.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAe,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AA+BvE;;;GAGG;AACH,8BAAsB,SAAU,SAAQ,kBAAkB;IAIxD,QAAQ,CAAC,IAAI,EAAE,KAAK;IAHrB,QAAQ,EAAE,MAAM,EAAE,CAAM;gBAGd,IAAI,EAAE,KAAK,EACpB,KAAK,EAAE,KAAK,GAAG,UAAU;IAY1B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,SAAS,CAAC,YAAY,CACrB,SAAS,EAAE,UAAU,EACrB,aAAa,EAAE,MAAM,EAAE,EACvB,aAAa,GAAE,MAAM,EAAO,GAC1B,MAAM,GAAG,IAAI;IAqDhB;;OAEG;IACH,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAM9C;;;OAGG;IACH,SAAS,CAAC,0BAA0B,CACnC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAAE,EAClB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,EACpB,cAAc,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GACxC,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;CAkCrB"}
|
||||
177
node_modules/n8n-workflow/dist/cjs/errors/abstract/node.error.js
generated
vendored
Normal file
177
node_modules/n8n-workflow/dist/cjs/errors/abstract/node.error.js
generated
vendored
Normal file
@@ -0,0 +1,177 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./execution-base.error", "../../utils"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.NodeError = void 0;
|
||||
const execution_base_error_1 = require("./execution-base.error");
|
||||
const utils_1 = require("../../utils");
|
||||
/**
|
||||
* Descriptive messages for common errors.
|
||||
*/
|
||||
const COMMON_ERRORS = {
|
||||
// nodeJS errors
|
||||
ECONNREFUSED: 'The service refused the connection - perhaps it is offline',
|
||||
ECONNRESET: 'The connection to the server was closed unexpectedly, perhaps it is offline. You can retry the request immediately or wait and retry later.',
|
||||
ENOTFOUND: 'The connection cannot be established, this usually occurs due to an incorrect host (domain) value',
|
||||
ETIMEDOUT: "The connection timed out, consider setting the 'Retry on Fail' option in the node settings",
|
||||
ERRADDRINUSE: 'The port is already occupied by some other application, if possible change the port or kill the application that is using it',
|
||||
EADDRNOTAVAIL: 'The address is not available, ensure that you have the right IP address',
|
||||
ECONNABORTED: 'The connection was aborted, perhaps the server is offline',
|
||||
EHOSTUNREACH: 'The host is unreachable, perhaps the server is offline',
|
||||
EAI_AGAIN: 'The DNS server returned an error, perhaps the server is offline',
|
||||
ENOENT: 'The file or directory does not exist',
|
||||
EISDIR: 'The file path was expected but the given path is a directory',
|
||||
ENOTDIR: 'The directory path was expected but the given path is a file',
|
||||
EACCES: 'Forbidden by access permissions, make sure you have the right permissions',
|
||||
EEXIST: 'The file or directory already exists',
|
||||
EPERM: 'Operation not permitted, make sure you have the right permissions',
|
||||
// other errors
|
||||
GETADDRINFO: 'The server closed the connection unexpectedly',
|
||||
};
|
||||
/**
|
||||
* Base class for specific NodeError-types, with functionality for finding
|
||||
* a value recursively inside an error object.
|
||||
*/
|
||||
class NodeError extends execution_base_error_1.ExecutionBaseError {
|
||||
node;
|
||||
messages = [];
|
||||
constructor(node, error) {
|
||||
const isError = error instanceof Error;
|
||||
const message = isError ? error.message : '';
|
||||
const options = isError ? { cause: error } : { errorResponse: error };
|
||||
super(message, options);
|
||||
this.node = node;
|
||||
if (error instanceof NodeError) {
|
||||
this.tags.reWrapped = true;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Finds property through exploration based on potential keys and traversal keys.
|
||||
* Depth-first approach.
|
||||
*
|
||||
* This method iterates over `potentialKeys` and, if the value at the key is a
|
||||
* truthy value, the type of the value is checked:
|
||||
* (1) if a string or number, the value is returned as a string; or
|
||||
* (2) if an array,
|
||||
* its string or number elements are collected as a long string,
|
||||
* its object elements are traversed recursively (restart this function
|
||||
* with each object as a starting point), or
|
||||
* (3) if it is an object, it traverses the object and nested ones recursively
|
||||
* based on the `potentialKeys` and returns a string if found.
|
||||
*
|
||||
* If nothing found via `potentialKeys` this method iterates over `traversalKeys` and
|
||||
* if the value at the key is a traversable object, it restarts with the object as the
|
||||
* new starting point (recursion).
|
||||
* If nothing found for any of the `traversalKeys`, exploration continues with remaining
|
||||
* `traversalKeys`.
|
||||
*
|
||||
* Otherwise, if all the paths have been exhausted and no value is eligible, `null` is
|
||||
* returned.
|
||||
*
|
||||
*/
|
||||
findProperty(jsonError, potentialKeys, traversalKeys = []) {
|
||||
for (const key of potentialKeys) {
|
||||
let value = jsonError[key];
|
||||
if (value) {
|
||||
if (typeof value === 'string') {
|
||||
try {
|
||||
value = (0, utils_1.jsonParse)(value);
|
||||
}
|
||||
catch (error) {
|
||||
return value;
|
||||
}
|
||||
if (typeof value === 'string')
|
||||
return value;
|
||||
}
|
||||
if (typeof value === 'number')
|
||||
return value.toString();
|
||||
if (Array.isArray(value)) {
|
||||
const resolvedErrors = value
|
||||
.map((jsonError) => {
|
||||
if (typeof jsonError === 'string')
|
||||
return jsonError;
|
||||
if (typeof jsonError === 'number')
|
||||
return jsonError.toString();
|
||||
if ((0, utils_1.isTraversableObject)(jsonError)) {
|
||||
return this.findProperty(jsonError, potentialKeys);
|
||||
}
|
||||
return null;
|
||||
})
|
||||
.filter((errorValue) => errorValue !== null);
|
||||
if (resolvedErrors.length === 0) {
|
||||
return null;
|
||||
}
|
||||
return resolvedErrors.join(' | ');
|
||||
}
|
||||
if ((0, utils_1.isTraversableObject)(value)) {
|
||||
const property = this.findProperty(value, potentialKeys);
|
||||
if (property) {
|
||||
return property;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const key of traversalKeys) {
|
||||
const value = jsonError[key];
|
||||
if ((0, utils_1.isTraversableObject)(value)) {
|
||||
const property = this.findProperty(value, potentialKeys, traversalKeys);
|
||||
if (property) {
|
||||
return property;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* Preserve the original error message before setting the new one
|
||||
*/
|
||||
addToMessages(message) {
|
||||
if (message && !this.messages.includes(message)) {
|
||||
this.messages.push(message);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Set descriptive error message if code is provided or if message contains any of the common errors,
|
||||
* update description to include original message plus the description
|
||||
*/
|
||||
setDescriptiveErrorMessage(message, messages, code, messageMapping) {
|
||||
let newMessage = message;
|
||||
if (messageMapping) {
|
||||
for (const [mapKey, mapMessage] of Object.entries(messageMapping)) {
|
||||
if ((message || '').toUpperCase().includes(mapKey.toUpperCase())) {
|
||||
newMessage = mapMessage;
|
||||
messages.push(message);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (newMessage !== message) {
|
||||
return [newMessage, messages];
|
||||
}
|
||||
}
|
||||
// if code is provided and it is in the list of common errors set the message and return early
|
||||
if (code && typeof code === 'string' && COMMON_ERRORS[code.toUpperCase()]) {
|
||||
newMessage = COMMON_ERRORS[code];
|
||||
messages.push(message);
|
||||
return [newMessage, messages];
|
||||
}
|
||||
// check if message contains any of the common errors and set the message and description
|
||||
for (const [errorCode, errorDescriptiveMessage] of Object.entries(COMMON_ERRORS)) {
|
||||
if ((message || '').toUpperCase().includes(errorCode.toUpperCase())) {
|
||||
newMessage = errorDescriptiveMessage;
|
||||
messages.push(message);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return [newMessage, messages];
|
||||
}
|
||||
}
|
||||
exports.NodeError = NodeError;
|
||||
});
|
||||
//# sourceMappingURL=node.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/abstract/node.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/abstract/node.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node.error.js","sourceRoot":"","sources":["../../../../src/errors/abstract/node.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,iEAA4D;IAE5D,uCAA6D;IAE7D;;OAEG;IACH,MAAM,aAAa,GAAgB;QAClC,gBAAgB;QAChB,YAAY,EAAE,4DAA4D;QAC1E,UAAU,EACT,6IAA6I;QAC9I,SAAS,EACR,mGAAmG;QACpG,SAAS,EACR,4FAA4F;QAC7F,YAAY,EACX,8HAA8H;QAC/H,aAAa,EAAE,yEAAyE;QACxF,YAAY,EAAE,2DAA2D;QACzE,YAAY,EAAE,wDAAwD;QACtE,SAAS,EAAE,iEAAiE;QAC5E,MAAM,EAAE,sCAAsC;QAC9C,MAAM,EAAE,8DAA8D;QACtE,OAAO,EAAE,8DAA8D;QACvE,MAAM,EAAE,2EAA2E;QACnF,MAAM,EAAE,sCAAsC;QAC9C,KAAK,EAAE,mEAAmE;QAC1E,eAAe;QACf,WAAW,EAAE,+CAA+C;KAC5D,CAAC;IAEF;;;OAGG;IACH,MAAsB,SAAU,SAAQ,yCAAkB;QAI/C;QAHV,QAAQ,GAAa,EAAE,CAAC;QAExB,YACU,IAAW,EACpB,KAAyB;YAEzB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC;YACvC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7C,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;YACtE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YANf,SAAI,GAAJ,IAAI,CAAO;YAQpB,IAAI,KAAK,YAAY,SAAS,EAAE,CAAC;gBAChC,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;YAC5B,CAAC;QACF,CAAC;QAED;;;;;;;;;;;;;;;;;;;;;;;WAuBG;QACO,YAAY,CACrB,SAAqB,EACrB,aAAuB,EACvB,gBAA0B,EAAE;YAE5B,KAAK,MAAM,GAAG,IAAI,aAAa,EAAE,CAAC;gBACjC,IAAI,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;gBAC3B,IAAI,KAAK,EAAE,CAAC;oBACX,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;wBAC/B,IAAI,CAAC;4BACJ,KAAK,GAAG,IAAA,iBAAS,EAAC,KAAK,CAAC,CAAC;wBAC1B,CAAC;wBAAC,OAAO,KAAK,EAAE,CAAC;4BAChB,OAAO,KAAe,CAAC;wBACxB,CAAC;wBACD,IAAI,OAAO,KAAK,KAAK,QAAQ;4BAAE,OAAO,KAAK,CAAC;oBAC7C,CAAC;oBACD,IAAI,OAAO,KAAK,KAAK,QAAQ;wBAAE,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;oBACvD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;wBAC1B,MAAM,cAAc,GAAa,KAAK;6BAEpC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;4BAClB,IAAI,OAAO,SAAS,KAAK,QAAQ;gCAAE,OAAO,SAAS,CAAC;4BACpD,IAAI,OAAO,SAAS,KAAK,QAAQ;gCAAE,OAAO,SAAS,CAAC,QAAQ,EAAE,CAAC;4BAC/D,IAAI,IAAA,2BAAmB,EAAC,SAAS,CAAC,EAAE,CAAC;gCACpC,OAAO,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;4BACpD,CAAC;4BACD,OAAO,IAAI,CAAC;wBACb,CAAC,CAAC;6BACD,MAAM,CAAC,CAAC,UAAU,EAAwB,EAAE,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC;wBAEpE,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;4BACjC,OAAO,IAAI,CAAC;wBACb,CAAC;wBACD,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBACnC,CAAC;oBACD,IAAI,IAAA,2BAAmB,EAAC,KAAK,CAAC,EAAE,CAAC;wBAChC,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;wBACzD,IAAI,QAAQ,EAAE,CAAC;4BACd,OAAO,QAAQ,CAAC;wBACjB,CAAC;oBACF,CAAC;gBACF,CAAC;YACF,CAAC;YAED,KAAK,MAAM,GAAG,IAAI,aAAa,EAAE,CAAC;gBACjC,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;gBAC7B,IAAI,IAAA,2BAAmB,EAAC,KAAK,CAAC,EAAE,CAAC;oBAChC,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC;oBACxE,IAAI,QAAQ,EAAE,CAAC;wBACd,OAAO,QAAQ,CAAC;oBACjB,CAAC;gBACF,CAAC;YACF,CAAC;YAED,OAAO,IAAI,CAAC;QACb,CAAC;QAED;;WAEG;QACO,aAAa,CAAC,OAAe;YACtC,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gBACjD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC7B,CAAC;QACF,CAAC;QAED;;;WAGG;QACO,0BAA0B,CACnC,OAAe,EACf,QAAkB,EAClB,IAAoB,EACpB,cAA0C;YAE1C,IAAI,UAAU,GAAG,OAAO,CAAC;YAEzB,IAAI,cAAc,EAAE,CAAC;gBACpB,KAAK,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;oBACnE,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC;wBAClE,UAAU,GAAG,UAAU,CAAC;wBACxB,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;wBACvB,MAAM;oBACP,CAAC;gBACF,CAAC;gBACD,IAAI,UAAU,KAAK,OAAO,EAAE,CAAC;oBAC5B,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;gBAC/B,CAAC;YACF,CAAC;YAED,8FAA8F;YAC9F,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,aAAa,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC;gBAC3E,UAAU,GAAG,aAAa,CAAC,IAAI,CAAW,CAAC;gBAC3C,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBACvB,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAC/B,CAAC;YAED,yFAAyF;YACzF,KAAK,MAAM,CAAC,SAAS,EAAE,uBAAuB,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;gBAClF,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC;oBACrE,UAAU,GAAG,uBAAiC,CAAC;oBAC/C,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;oBACvB,MAAM;gBACP,CAAC;YACF,CAAC;YAED,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC/B,CAAC;KACD;IAtJD,8BAsJC"}
|
||||
26
node_modules/n8n-workflow/dist/cjs/errors/base/base.error.d.ts
generated
vendored
Normal file
26
node_modules/n8n-workflow/dist/cjs/errors/base/base.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { Event } from '@sentry/node';
|
||||
import type { ErrorTags, ErrorLevel, ReportingOptions } from '@n8n/errors';
|
||||
export type BaseErrorOptions = {
|
||||
description?: string | undefined | null;
|
||||
} & ErrorOptions & ReportingOptions;
|
||||
/**
|
||||
* Base class for all errors
|
||||
*/
|
||||
export declare abstract class BaseError extends Error {
|
||||
/**
|
||||
* Error level. Defines which level the error should be logged/reported
|
||||
* @default 'error'
|
||||
*/
|
||||
level: ErrorLevel;
|
||||
/**
|
||||
* Whether the error should be reported to Sentry.
|
||||
* @default true
|
||||
*/
|
||||
readonly shouldReport: boolean;
|
||||
readonly description: string | null | undefined;
|
||||
readonly tags: ErrorTags;
|
||||
readonly extra?: Event['extra'];
|
||||
readonly packageName?: string;
|
||||
constructor(message: string, { level, description, shouldReport, tags, extra, ...rest }?: BaseErrorOptions);
|
||||
}
|
||||
//# sourceMappingURL=base.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/base/base.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/base/base.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"base.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/base/base.error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE3E,MAAM,MAAM,gBAAgB,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CAAE,GAAG,YAAY,GACxF,gBAAgB,CAAC;AAClB;;GAEG;AACH,8BAAsB,SAAU,SAAQ,KAAK;IAC5C;;;OAGG;IACH,KAAK,EAAE,UAAU,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAE/B,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAEhD,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAEzB,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAEhC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;gBAG7B,OAAO,EAAE,MAAM,EACf,EACC,KAAe,EACf,WAAW,EACX,YAAY,EACZ,IAAS,EACT,KAAK,EACL,GAAG,IAAI,EACP,GAAE,gBAAqB;CAiBzB"}
|
||||
53
node_modules/n8n-workflow/dist/cjs/errors/base/base.error.js
generated
vendored
Normal file
53
node_modules/n8n-workflow/dist/cjs/errors/base/base.error.js
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "callsites"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.BaseError = void 0;
|
||||
const callsites_1 = __importDefault(require("callsites"));
|
||||
/**
|
||||
* Base class for all errors
|
||||
*/
|
||||
class BaseError extends Error {
|
||||
/**
|
||||
* Error level. Defines which level the error should be logged/reported
|
||||
* @default 'error'
|
||||
*/
|
||||
level;
|
||||
/**
|
||||
* Whether the error should be reported to Sentry.
|
||||
* @default true
|
||||
*/
|
||||
shouldReport;
|
||||
description;
|
||||
tags;
|
||||
extra;
|
||||
packageName;
|
||||
constructor(message, { level = 'error', description, shouldReport, tags = {}, extra, ...rest } = {}) {
|
||||
super(message, rest);
|
||||
this.level = level;
|
||||
this.shouldReport = shouldReport ?? (level === 'error' || level === 'fatal');
|
||||
this.description = description;
|
||||
this.tags = tags;
|
||||
this.extra = extra;
|
||||
try {
|
||||
const filePath = (0, callsites_1.default)()[2].getFileName() ?? '';
|
||||
const match = /packages\/([^\/]+)\//.exec(filePath)?.[1];
|
||||
if (match)
|
||||
this.tags.packageName = match;
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
exports.BaseError = BaseError;
|
||||
});
|
||||
//# sourceMappingURL=base.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/base/base.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/base/base.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"base.error.js","sourceRoot":"","sources":["../../../../src/errors/base/base.error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;IACA,0DAAkC;IAMlC;;OAEG;IACH,MAAsB,SAAU,SAAQ,KAAK;QAC5C;;;WAGG;QACH,KAAK,CAAa;QAElB;;;WAGG;QACM,YAAY,CAAU;QAEtB,WAAW,CAA4B;QAEvC,IAAI,CAAY;QAEhB,KAAK,CAAkB;QAEvB,WAAW,CAAU;QAE9B,YACC,OAAe,EACf,EACC,KAAK,GAAG,OAAO,EACf,WAAW,EACX,YAAY,EACZ,IAAI,GAAG,EAAE,EACT,KAAK,EACL,GAAG,IAAI,KACc,EAAE;YAExB,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YAErB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,YAAY,GAAG,YAAY,IAAI,CAAC,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,OAAO,CAAC,CAAC;YAC7E,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;YAC/B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YAEnB,IAAI,CAAC;gBACJ,MAAM,QAAQ,GAAG,IAAA,mBAAS,GAAE,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC;gBACpD,MAAM,KAAK,GAAG,sBAAsB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;gBAEzD,IAAI,KAAK;oBAAE,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;YAC1C,CAAC;YAAC,MAAM,CAAC,CAAA,CAAC;QACX,CAAC;KACD;IA/CD,8BA+CC"}
|
||||
16
node_modules/n8n-workflow/dist/cjs/errors/base/operational.error.d.ts
generated
vendored
Normal file
16
node_modules/n8n-workflow/dist/cjs/errors/base/operational.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { BaseErrorOptions } from './base.error';
|
||||
import { BaseError } from './base.error';
|
||||
export type OperationalErrorOptions = Omit<BaseErrorOptions, 'level'> & {
|
||||
level?: 'info' | 'warning' | 'error';
|
||||
};
|
||||
/**
|
||||
* Error that indicates a transient issue, like a network request failing,
|
||||
* a database query timing out, etc. These are expected to happen, are
|
||||
* transient by nature and should be handled gracefully.
|
||||
*
|
||||
* Default level: warning
|
||||
*/
|
||||
export declare class OperationalError extends BaseError {
|
||||
constructor(message: string, opts?: OperationalErrorOptions);
|
||||
}
|
||||
//# sourceMappingURL=operational.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/base/operational.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/base/operational.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"operational.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/base/operational.error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GAAG;IACvE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;CACrC,CAAC;AAEF;;;;;;GAMG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;gBAClC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,uBAA4B;CAK/D"}
|
||||
29
node_modules/n8n-workflow/dist/cjs/errors/base/operational.error.js
generated
vendored
Normal file
29
node_modules/n8n-workflow/dist/cjs/errors/base/operational.error.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./base.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.OperationalError = void 0;
|
||||
const base_error_1 = require("./base.error");
|
||||
/**
|
||||
* Error that indicates a transient issue, like a network request failing,
|
||||
* a database query timing out, etc. These are expected to happen, are
|
||||
* transient by nature and should be handled gracefully.
|
||||
*
|
||||
* Default level: warning
|
||||
*/
|
||||
class OperationalError extends base_error_1.BaseError {
|
||||
constructor(message, opts = {}) {
|
||||
opts.level = opts.level ?? 'warning';
|
||||
super(message, opts);
|
||||
}
|
||||
}
|
||||
exports.OperationalError = OperationalError;
|
||||
});
|
||||
//# sourceMappingURL=operational.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/base/operational.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/base/operational.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"operational.error.js","sourceRoot":"","sources":["../../../../src/errors/base/operational.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IACA,6CAAyC;IAMzC;;;;;;OAMG;IACH,MAAa,gBAAiB,SAAQ,sBAAS;QAC9C,YAAY,OAAe,EAAE,OAAgC,EAAE;YAC9D,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,SAAS,CAAC;YAErC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACtB,CAAC;KACD;IAND,4CAMC"}
|
||||
16
node_modules/n8n-workflow/dist/cjs/errors/base/unexpected.error.d.ts
generated
vendored
Normal file
16
node_modules/n8n-workflow/dist/cjs/errors/base/unexpected.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { BaseErrorOptions } from './base.error';
|
||||
import { BaseError } from './base.error';
|
||||
export type UnexpectedErrorOptions = Omit<BaseErrorOptions, 'level'> & {
|
||||
level?: 'error' | 'fatal';
|
||||
};
|
||||
/**
|
||||
* Error that indicates something is wrong in the code: logic mistakes,
|
||||
* unhandled cases, assertions that fail. These are not recoverable and
|
||||
* should be brought to developers' attention.
|
||||
*
|
||||
* Default level: error
|
||||
*/
|
||||
export declare class UnexpectedError extends BaseError {
|
||||
constructor(message: string, opts?: UnexpectedErrorOptions);
|
||||
}
|
||||
//# sourceMappingURL=unexpected.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/base/unexpected.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/base/unexpected.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"unexpected.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/base/unexpected.error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GAAG;IACtE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;;;GAMG;AACH,qBAAa,eAAgB,SAAQ,SAAS;gBACjC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,sBAA2B;CAK9D"}
|
||||
29
node_modules/n8n-workflow/dist/cjs/errors/base/unexpected.error.js
generated
vendored
Normal file
29
node_modules/n8n-workflow/dist/cjs/errors/base/unexpected.error.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./base.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UnexpectedError = void 0;
|
||||
const base_error_1 = require("./base.error");
|
||||
/**
|
||||
* Error that indicates something is wrong in the code: logic mistakes,
|
||||
* unhandled cases, assertions that fail. These are not recoverable and
|
||||
* should be brought to developers' attention.
|
||||
*
|
||||
* Default level: error
|
||||
*/
|
||||
class UnexpectedError extends base_error_1.BaseError {
|
||||
constructor(message, opts = {}) {
|
||||
opts.level = opts.level ?? 'error';
|
||||
super(message, opts);
|
||||
}
|
||||
}
|
||||
exports.UnexpectedError = UnexpectedError;
|
||||
});
|
||||
//# sourceMappingURL=unexpected.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/base/unexpected.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/base/unexpected.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"unexpected.error.js","sourceRoot":"","sources":["../../../../src/errors/base/unexpected.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IACA,6CAAyC;IAMzC;;;;;;OAMG;IACH,MAAa,eAAgB,SAAQ,sBAAS;QAC7C,YAAY,OAAe,EAAE,OAA+B,EAAE;YAC7D,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,OAAO,CAAC;YAEnC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACtB,CAAC;KACD;IAND,0CAMC"}
|
||||
18
node_modules/n8n-workflow/dist/cjs/errors/base/user.error.d.ts
generated
vendored
Normal file
18
node_modules/n8n-workflow/dist/cjs/errors/base/user.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import type { BaseErrorOptions } from './base.error';
|
||||
import { BaseError } from './base.error';
|
||||
export type UserErrorOptions = Omit<BaseErrorOptions, 'level'> & {
|
||||
level?: 'info' | 'warning';
|
||||
description?: string | null | undefined;
|
||||
};
|
||||
/**
|
||||
* Error that indicates the user performed an action that caused an error.
|
||||
* E.g. provided invalid input, tried to access a resource they’re not
|
||||
* authorized to, or violates a business rule.
|
||||
*
|
||||
* Default level: info
|
||||
*/
|
||||
export declare class UserError extends BaseError {
|
||||
readonly description: string | null | undefined;
|
||||
constructor(message: string, opts?: UserErrorOptions);
|
||||
}
|
||||
//# sourceMappingURL=user.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/base/user.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/base/user.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/base/user.error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GAAG;IAChE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF;;;;;;GAMG;AACH,qBAAa,SAAU,SAAQ,SAAS;IACvC,SAAiB,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;gBAE5C,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,gBAAqB;CAKxD"}
|
||||
29
node_modules/n8n-workflow/dist/cjs/errors/base/user.error.js
generated
vendored
Normal file
29
node_modules/n8n-workflow/dist/cjs/errors/base/user.error.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./base.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserError = void 0;
|
||||
const base_error_1 = require("./base.error");
|
||||
/**
|
||||
* Error that indicates the user performed an action that caused an error.
|
||||
* E.g. provided invalid input, tried to access a resource they’re not
|
||||
* authorized to, or violates a business rule.
|
||||
*
|
||||
* Default level: info
|
||||
*/
|
||||
class UserError extends base_error_1.BaseError {
|
||||
constructor(message, opts = {}) {
|
||||
opts.level = opts.level ?? 'info';
|
||||
super(message, opts);
|
||||
}
|
||||
}
|
||||
exports.UserError = UserError;
|
||||
});
|
||||
//# sourceMappingURL=user.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/base/user.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/base/user.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"user.error.js","sourceRoot":"","sources":["../../../../src/errors/base/user.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IACA,6CAAyC;IAOzC;;;;;;OAMG;IACH,MAAa,SAAU,SAAQ,sBAAS;QAGvC,YAAY,OAAe,EAAE,OAAyB,EAAE;YACvD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC;YAElC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACtB,CAAC;KACD;IARD,8BAQC"}
|
||||
4
node_modules/n8n-workflow/dist/cjs/errors/cli-subworkflow-operation.error.d.ts
generated
vendored
Normal file
4
node_modules/n8n-workflow/dist/cjs/errors/cli-subworkflow-operation.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { SubworkflowOperationError } from './subworkflow-operation.error';
|
||||
export declare class CliWorkflowOperationError extends SubworkflowOperationError {
|
||||
}
|
||||
//# sourceMappingURL=cli-subworkflow-operation.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/cli-subworkflow-operation.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/cli-subworkflow-operation.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"cli-subworkflow-operation.error.d.ts","sourceRoot":"","sources":["../../../src/errors/cli-subworkflow-operation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,qBAAa,yBAA0B,SAAQ,yBAAyB;CAAG"}
|
||||
18
node_modules/n8n-workflow/dist/cjs/errors/cli-subworkflow-operation.error.js
generated
vendored
Normal file
18
node_modules/n8n-workflow/dist/cjs/errors/cli-subworkflow-operation.error.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./subworkflow-operation.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CliWorkflowOperationError = void 0;
|
||||
const subworkflow_operation_error_1 = require("./subworkflow-operation.error");
|
||||
class CliWorkflowOperationError extends subworkflow_operation_error_1.SubworkflowOperationError {
|
||||
}
|
||||
exports.CliWorkflowOperationError = CliWorkflowOperationError;
|
||||
});
|
||||
//# sourceMappingURL=cli-subworkflow-operation.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/cli-subworkflow-operation.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/cli-subworkflow-operation.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"cli-subworkflow-operation.error.js","sourceRoot":"","sources":["../../../src/errors/cli-subworkflow-operation.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,+EAA0E;IAE1E,MAAa,yBAA0B,SAAQ,uDAAyB;KAAG;IAA3E,8DAA2E"}
|
||||
9
node_modules/n8n-workflow/dist/cjs/errors/db-connection-timeout-error.d.ts
generated
vendored
Normal file
9
node_modules/n8n-workflow/dist/cjs/errors/db-connection-timeout-error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ApplicationError } from '@n8n/errors';
|
||||
export type DbConnectionTimeoutErrorOpts = {
|
||||
configuredTimeoutInMs: number;
|
||||
cause: Error;
|
||||
};
|
||||
export declare class DbConnectionTimeoutError extends ApplicationError {
|
||||
constructor(opts: DbConnectionTimeoutErrorOpts);
|
||||
}
|
||||
//# sourceMappingURL=db-connection-timeout-error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/db-connection-timeout-error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/db-connection-timeout-error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"db-connection-timeout-error.d.ts","sourceRoot":"","sources":["../../../src/errors/db-connection-timeout-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,4BAA4B,GAAG;IAC1C,qBAAqB,EAAE,MAAM,CAAC;IAC9B,KAAK,EAAE,KAAK,CAAC;CACb,CAAC;AAEF,qBAAa,wBAAyB,SAAQ,gBAAgB;gBACjD,IAAI,EAAE,4BAA4B;CAK9C"}
|
||||
23
node_modules/n8n-workflow/dist/cjs/errors/db-connection-timeout-error.js
generated
vendored
Normal file
23
node_modules/n8n-workflow/dist/cjs/errors/db-connection-timeout-error.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "@n8n/errors"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DbConnectionTimeoutError = void 0;
|
||||
const errors_1 = require("@n8n/errors");
|
||||
class DbConnectionTimeoutError extends errors_1.ApplicationError {
|
||||
constructor(opts) {
|
||||
const numberFormat = Intl.NumberFormat();
|
||||
const errorMessage = `Could not establish database connection within the configured timeout of ${numberFormat.format(opts.configuredTimeoutInMs)} ms. Please ensure the database is configured correctly and the server is reachable. You can increase the timeout by setting the 'DB_POSTGRESDB_CONNECTION_TIMEOUT' environment variable.`;
|
||||
super(errorMessage, { cause: opts.cause });
|
||||
}
|
||||
}
|
||||
exports.DbConnectionTimeoutError = DbConnectionTimeoutError;
|
||||
});
|
||||
//# sourceMappingURL=db-connection-timeout-error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/db-connection-timeout-error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/db-connection-timeout-error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"db-connection-timeout-error.js","sourceRoot":"","sources":["../../../src/errors/db-connection-timeout-error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,wCAA+C;IAO/C,MAAa,wBAAyB,SAAQ,yBAAgB;QAC7D,YAAY,IAAkC;YAC7C,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;YACzC,MAAM,YAAY,GAAG,4EAA4E,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAC,2LAA2L,CAAC;YAC5U,KAAK,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QAC5C,CAAC;KACD;IAND,4DAMC"}
|
||||
3
node_modules/n8n-workflow/dist/cjs/errors/ensure-error.d.ts
generated
vendored
Normal file
3
node_modules/n8n-workflow/dist/cjs/errors/ensure-error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/** Ensures `error` is an `Error */
|
||||
export declare function ensureError(error: unknown): Error;
|
||||
//# sourceMappingURL=ensure-error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/ensure-error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/ensure-error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ensure-error.d.ts","sourceRoot":"","sources":["../../../src/errors/ensure-error.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAOjD"}
|
||||
23
node_modules/n8n-workflow/dist/cjs/errors/ensure-error.js
generated
vendored
Normal file
23
node_modules/n8n-workflow/dist/cjs/errors/ensure-error.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ensureError = ensureError;
|
||||
/** Ensures `error` is an `Error */
|
||||
function ensureError(error) {
|
||||
return error instanceof Error
|
||||
? error
|
||||
: new Error('Error that was not an instance of Error was thrown', {
|
||||
// We should never throw anything except something that derives from Error
|
||||
cause: error,
|
||||
});
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=ensure-error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/ensure-error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/ensure-error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ensure-error.js","sourceRoot":"","sources":["../../../src/errors/ensure-error.ts"],"names":[],"mappings":";;;;;;;;;;;IACA,kCAOC;IARD,mCAAmC;IACnC,SAAgB,WAAW,CAAC,KAAc;QACzC,OAAO,KAAK,YAAY,KAAK;YAC5B,CAAC,CAAC,KAAK;YACP,CAAC,CAAC,IAAI,KAAK,CAAC,oDAAoD,EAAE;gBAChE,0EAA0E;gBAC1E,KAAK,EAAE,KAAK;aACZ,CAAC,CAAC;IACN,CAAC"}
|
||||
14
node_modules/n8n-workflow/dist/cjs/errors/execution-cancelled.error.d.ts
generated
vendored
Normal file
14
node_modules/n8n-workflow/dist/cjs/errors/execution-cancelled.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
export declare abstract class ExecutionCancelledError extends ExecutionBaseError {
|
||||
constructor(executionId: string);
|
||||
}
|
||||
export declare class ManualExecutionCancelledError extends ExecutionCancelledError {
|
||||
constructor(executionId: string);
|
||||
}
|
||||
export declare class TimeoutExecutionCancelledError extends ExecutionCancelledError {
|
||||
constructor(executionId: string);
|
||||
}
|
||||
export declare class SystemShutdownExecutionCancelledError extends ExecutionCancelledError {
|
||||
constructor(executionId: string);
|
||||
}
|
||||
//# sourceMappingURL=execution-cancelled.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/execution-cancelled.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/execution-cancelled.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"execution-cancelled.error.d.ts","sourceRoot":"","sources":["../../../src/errors/execution-cancelled.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,8BAAsB,uBAAwB,SAAQ,kBAAkB;gBAE3D,WAAW,EAAE,MAAM;CAM/B;AAED,qBAAa,6BAA8B,SAAQ,uBAAuB;gBAC7D,WAAW,EAAE,MAAM;CAI/B;AAED,qBAAa,8BAA+B,SAAQ,uBAAuB;gBAC9D,WAAW,EAAE,MAAM;CAI/B;AAED,qBAAa,qCAAsC,SAAQ,uBAAuB;gBACrE,WAAW,EAAE,MAAM;CAI/B"}
|
||||
46
node_modules/n8n-workflow/dist/cjs/errors/execution-cancelled.error.js
generated
vendored
Normal file
46
node_modules/n8n-workflow/dist/cjs/errors/execution-cancelled.error.js
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./abstract/execution-base.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.SystemShutdownExecutionCancelledError = exports.TimeoutExecutionCancelledError = exports.ManualExecutionCancelledError = exports.ExecutionCancelledError = void 0;
|
||||
const execution_base_error_1 = require("./abstract/execution-base.error");
|
||||
class ExecutionCancelledError extends execution_base_error_1.ExecutionBaseError {
|
||||
// NOTE: prefer one of the more specific
|
||||
constructor(executionId) {
|
||||
super('The execution was cancelled', {
|
||||
level: 'warning',
|
||||
extra: { executionId },
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.ExecutionCancelledError = ExecutionCancelledError;
|
||||
class ManualExecutionCancelledError extends ExecutionCancelledError {
|
||||
constructor(executionId) {
|
||||
super(executionId);
|
||||
this.message = 'The execution was cancelled manually';
|
||||
}
|
||||
}
|
||||
exports.ManualExecutionCancelledError = ManualExecutionCancelledError;
|
||||
class TimeoutExecutionCancelledError extends ExecutionCancelledError {
|
||||
constructor(executionId) {
|
||||
super(executionId);
|
||||
this.message = 'The execution was cancelled because it timed out';
|
||||
}
|
||||
}
|
||||
exports.TimeoutExecutionCancelledError = TimeoutExecutionCancelledError;
|
||||
class SystemShutdownExecutionCancelledError extends ExecutionCancelledError {
|
||||
constructor(executionId) {
|
||||
super(executionId);
|
||||
this.message = 'The execution was cancelled because the system is shutting down';
|
||||
}
|
||||
}
|
||||
exports.SystemShutdownExecutionCancelledError = SystemShutdownExecutionCancelledError;
|
||||
});
|
||||
//# sourceMappingURL=execution-cancelled.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/execution-cancelled.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/execution-cancelled.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"execution-cancelled.error.js","sourceRoot":"","sources":["../../../src/errors/execution-cancelled.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,0EAAqE;IAErE,MAAsB,uBAAwB,SAAQ,yCAAkB;QACvE,wCAAwC;QACxC,YAAY,WAAmB;YAC9B,KAAK,CAAC,6BAA6B,EAAE;gBACpC,KAAK,EAAE,SAAS;gBAChB,KAAK,EAAE,EAAE,WAAW,EAAE;aACtB,CAAC,CAAC;QACJ,CAAC;KACD;IARD,0DAQC;IAED,MAAa,6BAA8B,SAAQ,uBAAuB;QACzE,YAAY,WAAmB;YAC9B,KAAK,CAAC,WAAW,CAAC,CAAC;YACnB,IAAI,CAAC,OAAO,GAAG,sCAAsC,CAAC;QACvD,CAAC;KACD;IALD,sEAKC;IAED,MAAa,8BAA+B,SAAQ,uBAAuB;QAC1E,YAAY,WAAmB;YAC9B,KAAK,CAAC,WAAW,CAAC,CAAC;YACnB,IAAI,CAAC,OAAO,GAAG,kDAAkD,CAAC;QACnE,CAAC;KACD;IALD,wEAKC;IAED,MAAa,qCAAsC,SAAQ,uBAAuB;QACjF,YAAY,WAAmB;YAC9B,KAAK,CAAC,WAAW,CAAC,CAAC;YACnB,IAAI,CAAC,OAAO,GAAG,iEAAiE,CAAC;QAClF,CAAC;KACD;IALD,sFAKC"}
|
||||
4
node_modules/n8n-workflow/dist/cjs/errors/expression-extension.error.d.ts
generated
vendored
Normal file
4
node_modules/n8n-workflow/dist/cjs/errors/expression-extension.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { ExpressionError } from './expression.error';
|
||||
export declare class ExpressionExtensionError extends ExpressionError {
|
||||
}
|
||||
//# sourceMappingURL=expression-extension.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/expression-extension.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/expression-extension.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"expression-extension.error.d.ts","sourceRoot":"","sources":["../../../src/errors/expression-extension.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,wBAAyB,SAAQ,eAAe;CAAG"}
|
||||
18
node_modules/n8n-workflow/dist/cjs/errors/expression-extension.error.js
generated
vendored
Normal file
18
node_modules/n8n-workflow/dist/cjs/errors/expression-extension.error.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./expression.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ExpressionExtensionError = void 0;
|
||||
const expression_error_1 = require("./expression.error");
|
||||
class ExpressionExtensionError extends expression_error_1.ExpressionError {
|
||||
}
|
||||
exports.ExpressionExtensionError = ExpressionExtensionError;
|
||||
});
|
||||
//# sourceMappingURL=expression-extension.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/expression-extension.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/expression-extension.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"expression-extension.error.js","sourceRoot":"","sources":["../../../src/errors/expression-extension.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,yDAAqD;IAErD,MAAa,wBAAyB,SAAQ,kCAAe;KAAG;IAAhE,4DAAgE"}
|
||||
22
node_modules/n8n-workflow/dist/cjs/errors/expression.error.d.ts
generated
vendored
Normal file
22
node_modules/n8n-workflow/dist/cjs/errors/expression.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
export interface ExpressionErrorOptions {
|
||||
cause?: Error;
|
||||
causeDetailed?: string;
|
||||
description?: string;
|
||||
descriptionKey?: string;
|
||||
descriptionTemplate?: string;
|
||||
functionality?: 'pairedItem';
|
||||
itemIndex?: number;
|
||||
messageTemplate?: string;
|
||||
nodeCause?: string;
|
||||
parameter?: string;
|
||||
runIndex?: number;
|
||||
type?: 'no_execution_data' | 'no_node_execution_data' | 'no_input_connection' | 'internal' | 'paired_item_invalid_info' | 'paired_item_no_info' | 'paired_item_multiple_matches' | 'paired_item_no_connection' | 'paired_item_intermediate_nodes';
|
||||
}
|
||||
/**
|
||||
* Class for instantiating an expression error
|
||||
*/
|
||||
export declare class ExpressionError extends ExecutionBaseError {
|
||||
constructor(message: string, options?: ExpressionErrorOptions);
|
||||
}
|
||||
//# sourceMappingURL=expression.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/expression.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/expression.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"expression.error.d.ts","sourceRoot":"","sources":["../../../src/errors/expression.error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,WAAW,sBAAsB;IACtC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EACF,mBAAmB,GACnB,wBAAwB,GACxB,qBAAqB,GACrB,UAAU,GACV,0BAA0B,GAC1B,qBAAqB,GACrB,8BAA8B,GAC9B,2BAA2B,GAC3B,gCAAgC,CAAC;CACpC;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,kBAAkB;gBAC1C,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB;CA+B7D"}
|
||||
48
node_modules/n8n-workflow/dist/cjs/errors/expression.error.js
generated
vendored
Normal file
48
node_modules/n8n-workflow/dist/cjs/errors/expression.error.js
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./abstract/execution-base.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ExpressionError = void 0;
|
||||
const execution_base_error_1 = require("./abstract/execution-base.error");
|
||||
/**
|
||||
* Class for instantiating an expression error
|
||||
*/
|
||||
class ExpressionError extends execution_base_error_1.ExecutionBaseError {
|
||||
constructor(message, options) {
|
||||
super(message, { cause: options?.cause, level: 'warning' });
|
||||
if (options?.description !== undefined) {
|
||||
this.description = options.description;
|
||||
}
|
||||
const allowedKeys = [
|
||||
'causeDetailed',
|
||||
'descriptionTemplate',
|
||||
'descriptionKey',
|
||||
'itemIndex',
|
||||
'messageTemplate',
|
||||
'nodeCause',
|
||||
'parameter',
|
||||
'runIndex',
|
||||
'type',
|
||||
];
|
||||
if (options !== undefined) {
|
||||
if (options.functionality !== undefined) {
|
||||
this.functionality = options.functionality;
|
||||
}
|
||||
Object.keys(options).forEach((key) => {
|
||||
if (allowedKeys.includes(key)) {
|
||||
this.context[key] = options[key];
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.ExpressionError = ExpressionError;
|
||||
});
|
||||
//# sourceMappingURL=expression.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/expression.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/expression.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"expression.error.js","sourceRoot":"","sources":["../../../src/errors/expression.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IACA,0EAAqE;IA0BrE;;OAEG;IACH,MAAa,eAAgB,SAAQ,yCAAkB;QACtD,YAAY,OAAe,EAAE,OAAgC;YAC5D,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YAE5D,IAAI,OAAO,EAAE,WAAW,KAAK,SAAS,EAAE,CAAC;gBACxC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;YACxC,CAAC;YAED,MAAM,WAAW,GAAG;gBACnB,eAAe;gBACf,qBAAqB;gBACrB,gBAAgB;gBAChB,WAAW;gBACX,iBAAiB;gBACjB,WAAW;gBACX,WAAW;gBACX,UAAU;gBACV,MAAM;aACN,CAAC;YAEF,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;gBAC3B,IAAI,OAAO,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;oBACzC,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;gBAC5C,CAAC;gBAED,MAAM,CAAC,IAAI,CAAC,OAAsB,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;oBACnD,IAAI,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;wBAC/B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAI,OAAuB,CAAC,GAAG,CAAC,CAAC;oBACnD,CAAC;gBACF,CAAC,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;KACD;IAhCD,0CAgCC"}
|
||||
24
node_modules/n8n-workflow/dist/cjs/errors/index.d.ts
generated
vendored
Normal file
24
node_modules/n8n-workflow/dist/cjs/errors/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
export { BaseError, type BaseErrorOptions } from './base/base.error';
|
||||
export { OperationalError, type OperationalErrorOptions } from './base/operational.error';
|
||||
export { UnexpectedError, type UnexpectedErrorOptions } from './base/unexpected.error';
|
||||
export { UserError, type UserErrorOptions } from './base/user.error';
|
||||
export { ApplicationError } from '@n8n/errors';
|
||||
export { ExpressionError } from './expression.error';
|
||||
export { ExecutionCancelledError, ManualExecutionCancelledError, SystemShutdownExecutionCancelledError, TimeoutExecutionCancelledError, } from './execution-cancelled.error';
|
||||
export { NodeApiError } from './node-api.error';
|
||||
export { NodeOperationError } from './node-operation.error';
|
||||
export { WorkflowConfigurationError } from './workflow-configuration.error';
|
||||
export { NodeSslError } from './node-ssl.error';
|
||||
export { WebhookPathTakenError } from './webhook-taken.error';
|
||||
export { WorkflowActivationError } from './workflow-activation.error';
|
||||
export { WorkflowDeactivationError } from './workflow-deactivation.error';
|
||||
export { WorkflowOperationError } from './workflow-operation.error';
|
||||
export { SubworkflowOperationError } from './subworkflow-operation.error';
|
||||
export { CliWorkflowOperationError } from './cli-subworkflow-operation.error';
|
||||
export { TriggerCloseError } from './trigger-close.error';
|
||||
export { NodeError } from './abstract/node.error';
|
||||
export { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
export { ExpressionExtensionError } from './expression-extension.error';
|
||||
export { DbConnectionTimeoutError } from './db-connection-timeout-error';
|
||||
export { ensureError } from './ensure-error';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/index.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACN,uBAAuB,EACvB,6BAA6B,EAC7B,qCAAqC,EACrC,8BAA8B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
||||
63
node_modules/n8n-workflow/dist/cjs/errors/index.js
generated
vendored
Normal file
63
node_modules/n8n-workflow/dist/cjs/errors/index.js
generated
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./base/base.error", "./base/operational.error", "./base/unexpected.error", "./base/user.error", "@n8n/errors", "./expression.error", "./execution-cancelled.error", "./node-api.error", "./node-operation.error", "./workflow-configuration.error", "./node-ssl.error", "./webhook-taken.error", "./workflow-activation.error", "./workflow-deactivation.error", "./workflow-operation.error", "./subworkflow-operation.error", "./cli-subworkflow-operation.error", "./trigger-close.error", "./abstract/node.error", "./abstract/execution-base.error", "./expression-extension.error", "./db-connection-timeout-error", "./ensure-error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ensureError = exports.DbConnectionTimeoutError = exports.ExpressionExtensionError = exports.ExecutionBaseError = exports.NodeError = exports.TriggerCloseError = exports.CliWorkflowOperationError = exports.SubworkflowOperationError = exports.WorkflowOperationError = exports.WorkflowDeactivationError = exports.WorkflowActivationError = exports.WebhookPathTakenError = exports.NodeSslError = exports.WorkflowConfigurationError = exports.NodeOperationError = exports.NodeApiError = exports.TimeoutExecutionCancelledError = exports.SystemShutdownExecutionCancelledError = exports.ManualExecutionCancelledError = exports.ExecutionCancelledError = exports.ExpressionError = exports.ApplicationError = exports.UserError = exports.UnexpectedError = exports.OperationalError = exports.BaseError = void 0;
|
||||
var base_error_1 = require("./base/base.error");
|
||||
Object.defineProperty(exports, "BaseError", { enumerable: true, get: function () { return base_error_1.BaseError; } });
|
||||
var operational_error_1 = require("./base/operational.error");
|
||||
Object.defineProperty(exports, "OperationalError", { enumerable: true, get: function () { return operational_error_1.OperationalError; } });
|
||||
var unexpected_error_1 = require("./base/unexpected.error");
|
||||
Object.defineProperty(exports, "UnexpectedError", { enumerable: true, get: function () { return unexpected_error_1.UnexpectedError; } });
|
||||
var user_error_1 = require("./base/user.error");
|
||||
Object.defineProperty(exports, "UserError", { enumerable: true, get: function () { return user_error_1.UserError; } });
|
||||
var errors_1 = require("@n8n/errors");
|
||||
Object.defineProperty(exports, "ApplicationError", { enumerable: true, get: function () { return errors_1.ApplicationError; } });
|
||||
var expression_error_1 = require("./expression.error");
|
||||
Object.defineProperty(exports, "ExpressionError", { enumerable: true, get: function () { return expression_error_1.ExpressionError; } });
|
||||
var execution_cancelled_error_1 = require("./execution-cancelled.error");
|
||||
Object.defineProperty(exports, "ExecutionCancelledError", { enumerable: true, get: function () { return execution_cancelled_error_1.ExecutionCancelledError; } });
|
||||
Object.defineProperty(exports, "ManualExecutionCancelledError", { enumerable: true, get: function () { return execution_cancelled_error_1.ManualExecutionCancelledError; } });
|
||||
Object.defineProperty(exports, "SystemShutdownExecutionCancelledError", { enumerable: true, get: function () { return execution_cancelled_error_1.SystemShutdownExecutionCancelledError; } });
|
||||
Object.defineProperty(exports, "TimeoutExecutionCancelledError", { enumerable: true, get: function () { return execution_cancelled_error_1.TimeoutExecutionCancelledError; } });
|
||||
var node_api_error_1 = require("./node-api.error");
|
||||
Object.defineProperty(exports, "NodeApiError", { enumerable: true, get: function () { return node_api_error_1.NodeApiError; } });
|
||||
var node_operation_error_1 = require("./node-operation.error");
|
||||
Object.defineProperty(exports, "NodeOperationError", { enumerable: true, get: function () { return node_operation_error_1.NodeOperationError; } });
|
||||
var workflow_configuration_error_1 = require("./workflow-configuration.error");
|
||||
Object.defineProperty(exports, "WorkflowConfigurationError", { enumerable: true, get: function () { return workflow_configuration_error_1.WorkflowConfigurationError; } });
|
||||
var node_ssl_error_1 = require("./node-ssl.error");
|
||||
Object.defineProperty(exports, "NodeSslError", { enumerable: true, get: function () { return node_ssl_error_1.NodeSslError; } });
|
||||
var webhook_taken_error_1 = require("./webhook-taken.error");
|
||||
Object.defineProperty(exports, "WebhookPathTakenError", { enumerable: true, get: function () { return webhook_taken_error_1.WebhookPathTakenError; } });
|
||||
var workflow_activation_error_1 = require("./workflow-activation.error");
|
||||
Object.defineProperty(exports, "WorkflowActivationError", { enumerable: true, get: function () { return workflow_activation_error_1.WorkflowActivationError; } });
|
||||
var workflow_deactivation_error_1 = require("./workflow-deactivation.error");
|
||||
Object.defineProperty(exports, "WorkflowDeactivationError", { enumerable: true, get: function () { return workflow_deactivation_error_1.WorkflowDeactivationError; } });
|
||||
var workflow_operation_error_1 = require("./workflow-operation.error");
|
||||
Object.defineProperty(exports, "WorkflowOperationError", { enumerable: true, get: function () { return workflow_operation_error_1.WorkflowOperationError; } });
|
||||
var subworkflow_operation_error_1 = require("./subworkflow-operation.error");
|
||||
Object.defineProperty(exports, "SubworkflowOperationError", { enumerable: true, get: function () { return subworkflow_operation_error_1.SubworkflowOperationError; } });
|
||||
var cli_subworkflow_operation_error_1 = require("./cli-subworkflow-operation.error");
|
||||
Object.defineProperty(exports, "CliWorkflowOperationError", { enumerable: true, get: function () { return cli_subworkflow_operation_error_1.CliWorkflowOperationError; } });
|
||||
var trigger_close_error_1 = require("./trigger-close.error");
|
||||
Object.defineProperty(exports, "TriggerCloseError", { enumerable: true, get: function () { return trigger_close_error_1.TriggerCloseError; } });
|
||||
var node_error_1 = require("./abstract/node.error");
|
||||
Object.defineProperty(exports, "NodeError", { enumerable: true, get: function () { return node_error_1.NodeError; } });
|
||||
var execution_base_error_1 = require("./abstract/execution-base.error");
|
||||
Object.defineProperty(exports, "ExecutionBaseError", { enumerable: true, get: function () { return execution_base_error_1.ExecutionBaseError; } });
|
||||
var expression_extension_error_1 = require("./expression-extension.error");
|
||||
Object.defineProperty(exports, "ExpressionExtensionError", { enumerable: true, get: function () { return expression_extension_error_1.ExpressionExtensionError; } });
|
||||
var db_connection_timeout_error_1 = require("./db-connection-timeout-error");
|
||||
Object.defineProperty(exports, "DbConnectionTimeoutError", { enumerable: true, get: function () { return db_connection_timeout_error_1.DbConnectionTimeoutError; } });
|
||||
var ensure_error_1 = require("./ensure-error");
|
||||
Object.defineProperty(exports, "ensureError", { enumerable: true, get: function () { return ensure_error_1.ensureError; } });
|
||||
});
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/index.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,gDAAqE;IAA5D,uGAAA,SAAS,OAAA;IAClB,8DAA0F;IAAjF,qHAAA,gBAAgB,OAAA;IACzB,4DAAuF;IAA9E,mHAAA,eAAe,OAAA;IACxB,gDAAqE;IAA5D,uGAAA,SAAS,OAAA;IAClB,sCAA+C;IAAtC,0GAAA,gBAAgB,OAAA;IACzB,uDAAqD;IAA5C,mHAAA,eAAe,OAAA;IACxB,yEAKqC;IAJpC,oIAAA,uBAAuB,OAAA;IACvB,0IAAA,6BAA6B,OAAA;IAC7B,kJAAA,qCAAqC,OAAA;IACrC,2IAAA,8BAA8B,OAAA;IAE/B,mDAAgD;IAAvC,8GAAA,YAAY,OAAA;IACrB,+DAA4D;IAAnD,0HAAA,kBAAkB,OAAA;IAC3B,+EAA4E;IAAnE,0IAAA,0BAA0B,OAAA;IACnC,mDAAgD;IAAvC,8GAAA,YAAY,OAAA;IACrB,6DAA8D;IAArD,4HAAA,qBAAqB,OAAA;IAC9B,yEAAsE;IAA7D,oIAAA,uBAAuB,OAAA;IAChC,6EAA0E;IAAjE,wIAAA,yBAAyB,OAAA;IAClC,uEAAoE;IAA3D,kIAAA,sBAAsB,OAAA;IAC/B,6EAA0E;IAAjE,wIAAA,yBAAyB,OAAA;IAClC,qFAA8E;IAArE,4IAAA,yBAAyB,OAAA;IAClC,6DAA0D;IAAjD,wHAAA,iBAAiB,OAAA;IAE1B,oDAAkD;IAAzC,uGAAA,SAAS,OAAA;IAClB,wEAAqE;IAA5D,0HAAA,kBAAkB,OAAA;IAC3B,2EAAwE;IAA/D,sIAAA,wBAAwB,OAAA;IACjC,6EAAyE;IAAhE,uIAAA,wBAAwB,OAAA;IACjC,+CAA6C;IAApC,2GAAA,WAAW,OAAA"}
|
||||
39
node_modules/n8n-workflow/dist/cjs/errors/node-api.error.d.ts
generated
vendored
Normal file
39
node_modules/n8n-workflow/dist/cjs/errors/node-api.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
import { NodeError } from './abstract/node.error';
|
||||
import type { ErrorLevel } from '@n8n/errors';
|
||||
import type { INode, JsonObject, Functionality, RelatedExecution } from '../interfaces';
|
||||
export interface NodeOperationErrorOptions {
|
||||
message?: string;
|
||||
description?: string;
|
||||
runIndex?: number;
|
||||
itemIndex?: number;
|
||||
level?: ErrorLevel;
|
||||
messageMapping?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
functionality?: Functionality;
|
||||
type?: string;
|
||||
metadata?: {
|
||||
subExecution?: RelatedExecution;
|
||||
parentExecution?: RelatedExecution;
|
||||
};
|
||||
}
|
||||
interface NodeApiErrorOptions extends NodeOperationErrorOptions {
|
||||
message?: string;
|
||||
httpCode?: string;
|
||||
parseXml?: boolean;
|
||||
}
|
||||
/**
|
||||
* Class for instantiating an error in an API response, e.g. a 404 Not Found response,
|
||||
* with an HTTP error code, an error message and a description.
|
||||
*/
|
||||
export declare class NodeApiError extends NodeError {
|
||||
httpCode: string | null;
|
||||
constructor(node: INode, errorResponse: JsonObject, { message, description, httpCode, parseXml, runIndex, itemIndex, level, functionality, messageMapping, }?: NodeApiErrorOptions);
|
||||
private setDescriptionFromXml;
|
||||
/**
|
||||
* Set the error's message based on the HTTP status code.
|
||||
*/
|
||||
private setDefaultStatusCodeMessage;
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=node-api.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/node-api.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/node-api.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node-api.error.d.ts","sourceRoot":"","sources":["../../../src/errors/node-api.error.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAO9C,OAAO,KAAK,EACX,KAAK,EACL,UAAU,EAGV,aAAa,EACb,gBAAgB,EAChB,MAAM,eAAe,CAAC;AAGvB,MAAM,WAAW,yBAAyB;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,cAAc,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC3C,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE;QACV,YAAY,CAAC,EAAE,gBAAgB,CAAC;QAChC,eAAe,CAAC,EAAE,gBAAgB,CAAC;KACnC,CAAC;CACF;AAED,UAAU,mBAAoB,SAAQ,yBAAyB;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAyED;;;GAGG;AACH,qBAAa,YAAa,SAAQ,SAAS;IAC1C,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;gBAI9B,IAAI,EAAE,KAAK,EACX,aAAa,EAAE,UAAU,EACzB,EACC,OAAO,EACP,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,KAAK,EACL,aAAa,EACb,cAAc,GACd,GAAE,mBAAwB;IA4I5B,OAAO,CAAC,qBAAqB;IAa7B;;OAEG;IACH,OAAO,CAAC,2BAA2B;CAmDnC"}
|
||||
257
node_modules/n8n-workflow/dist/cjs/errors/node-api.error.js
generated
vendored
Normal file
257
node_modules/n8n-workflow/dist/cjs/errors/node-api.error.js
generated
vendored
Normal file
@@ -0,0 +1,257 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "xml2js", "./abstract/node.error", "../constants", "../utils"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.NodeApiError = void 0;
|
||||
const xml2js_1 = require("xml2js");
|
||||
const node_error_1 = require("./abstract/node.error");
|
||||
const constants_1 = require("../constants");
|
||||
const utils_1 = require("../utils");
|
||||
/**
|
||||
* Top-level properties where an error message can be found in an API response.
|
||||
* order is important, precedence is from top to bottom
|
||||
*/
|
||||
const POSSIBLE_ERROR_MESSAGE_KEYS = [
|
||||
'cause',
|
||||
'error',
|
||||
'message',
|
||||
'Message',
|
||||
'msg',
|
||||
'messages',
|
||||
'description',
|
||||
'reason',
|
||||
'detail',
|
||||
'details',
|
||||
'errors',
|
||||
'errorMessage',
|
||||
'errorMessages',
|
||||
'ErrorMessage',
|
||||
'error_message',
|
||||
'_error_message',
|
||||
'errorDescription',
|
||||
'error_description',
|
||||
'error_summary',
|
||||
'error_info',
|
||||
'title',
|
||||
'text',
|
||||
'field',
|
||||
'err',
|
||||
'type',
|
||||
];
|
||||
/**
|
||||
* Properties where a nested object can be found in an API response.
|
||||
*/
|
||||
const POSSIBLE_NESTED_ERROR_OBJECT_KEYS = ['Error', 'error', 'err', 'response', 'body', 'data'];
|
||||
/**
|
||||
* Top-level properties where an HTTP error code can be found in an API response.
|
||||
*/
|
||||
const POSSIBLE_ERROR_STATUS_KEYS = [
|
||||
'statusCode',
|
||||
'status',
|
||||
'code',
|
||||
'status_code',
|
||||
'errorCode',
|
||||
'error_code',
|
||||
];
|
||||
/**
|
||||
* Descriptive messages for common HTTP status codes
|
||||
* this is used by NodeApiError class
|
||||
*/
|
||||
const STATUS_CODE_MESSAGES = {
|
||||
'4XX': 'Your request is invalid or could not be processed by the service',
|
||||
'400': 'Bad request - please check your parameters',
|
||||
'401': 'Authorization failed - please check your credentials',
|
||||
'402': 'Payment required - perhaps check your payment details?',
|
||||
'403': 'Forbidden - perhaps check your credentials?',
|
||||
'404': 'The resource you are requesting could not be found',
|
||||
'405': 'Method not allowed - please check you are using the right HTTP method',
|
||||
'429': 'The service is receiving too many requests from you',
|
||||
'5XX': 'The service failed to process your request',
|
||||
'500': 'The service was not able to process your request',
|
||||
'502': 'Bad gateway - the service failed to handle your request',
|
||||
'503': 'Service unavailable - try again later or consider setting this node to retry automatically (in the node settings)',
|
||||
'504': 'Gateway timed out - perhaps try again later?',
|
||||
};
|
||||
/**
|
||||
* Class for instantiating an error in an API response, e.g. a 404 Not Found response,
|
||||
* with an HTTP error code, an error message and a description.
|
||||
*/
|
||||
class NodeApiError extends node_error_1.NodeError {
|
||||
httpCode = null;
|
||||
// eslint-disable-next-line complexity
|
||||
constructor(node, errorResponse, { message, description, httpCode, parseXml, runIndex, itemIndex, level, functionality, messageMapping, } = {}) {
|
||||
if (errorResponse instanceof NodeApiError) {
|
||||
return errorResponse;
|
||||
}
|
||||
super(node, errorResponse);
|
||||
this.addToMessages(errorResponse.message);
|
||||
if (!httpCode &&
|
||||
errorResponse instanceof Error &&
|
||||
errorResponse.constructor?.name === 'AxiosError') {
|
||||
httpCode = errorResponse.response?.status?.toString();
|
||||
}
|
||||
// only for request library error
|
||||
if (errorResponse.error) {
|
||||
(0, utils_1.removeCircularRefs)(errorResponse.error);
|
||||
}
|
||||
// if not description provided, try to find it in the error object
|
||||
if (!description &&
|
||||
(errorResponse.description || errorResponse?.reason?.description)) {
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
this.description = (errorResponse.description ||
|
||||
errorResponse?.reason?.description);
|
||||
}
|
||||
// if not message provided, try to find it in the error object or set description as message
|
||||
if (!message &&
|
||||
(errorResponse.message || errorResponse?.reason?.message || description)) {
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
this.message = (errorResponse.message ||
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
errorResponse?.reason?.message ||
|
||||
description);
|
||||
}
|
||||
// if it's an error generated by axios
|
||||
// look for descriptions in the response object
|
||||
if (errorResponse.reason) {
|
||||
const reason = errorResponse.reason;
|
||||
if (reason.isAxiosError && reason.response) {
|
||||
errorResponse = reason.response;
|
||||
}
|
||||
}
|
||||
// set http code of this error
|
||||
if (httpCode) {
|
||||
this.httpCode = httpCode;
|
||||
}
|
||||
else if (errorResponse.httpCode) {
|
||||
this.httpCode = errorResponse.httpCode;
|
||||
}
|
||||
else {
|
||||
this.httpCode =
|
||||
this.findProperty(errorResponse, POSSIBLE_ERROR_STATUS_KEYS, POSSIBLE_NESTED_ERROR_OBJECT_KEYS) ?? null;
|
||||
}
|
||||
this.level = level ?? 'warning';
|
||||
if (errorResponse?.response &&
|
||||
typeof errorResponse?.response === 'object' &&
|
||||
!Array.isArray(errorResponse.response) &&
|
||||
errorResponse.response.data &&
|
||||
typeof errorResponse.response.data === 'object' &&
|
||||
!Array.isArray(errorResponse.response.data)) {
|
||||
const data = errorResponse.response.data;
|
||||
if (data.message) {
|
||||
description = data.message;
|
||||
}
|
||||
else if (data.error && (data.error || {}).message) {
|
||||
description = data.error.message;
|
||||
}
|
||||
this.context.data = data;
|
||||
}
|
||||
// set description of this error
|
||||
if (description) {
|
||||
this.description = description;
|
||||
}
|
||||
if (!this.description) {
|
||||
if (parseXml) {
|
||||
this.setDescriptionFromXml(errorResponse.error);
|
||||
}
|
||||
else {
|
||||
this.description = this.findProperty(errorResponse, POSSIBLE_ERROR_MESSAGE_KEYS, POSSIBLE_NESTED_ERROR_OBJECT_KEYS);
|
||||
}
|
||||
}
|
||||
// set message if provided
|
||||
// set default message based on http code
|
||||
// or use raw error message
|
||||
if (message) {
|
||||
this.message = message;
|
||||
}
|
||||
else {
|
||||
this.setDefaultStatusCodeMessage();
|
||||
}
|
||||
// if message and description are the same, unset redundant description
|
||||
if (this.message === this.description) {
|
||||
this.description = undefined;
|
||||
}
|
||||
// if message contain common error code set descriptive message and update description
|
||||
[this.message, this.messages] = this.setDescriptiveErrorMessage(this.message, this.messages,
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
this.httpCode ||
|
||||
errorResponse?.code ||
|
||||
errorResponse?.reason?.code ||
|
||||
undefined, messageMapping);
|
||||
if (functionality !== undefined)
|
||||
this.functionality = functionality;
|
||||
if (runIndex !== undefined)
|
||||
this.context.runIndex = runIndex;
|
||||
if (itemIndex !== undefined)
|
||||
this.context.itemIndex = itemIndex;
|
||||
}
|
||||
setDescriptionFromXml(xml) {
|
||||
(0, xml2js_1.parseString)(xml, { explicitArray: false }, (_, result) => {
|
||||
if (!result)
|
||||
return;
|
||||
const topLevelKey = Object.keys(result)[0];
|
||||
this.description = this.findProperty(result[topLevelKey], POSSIBLE_ERROR_MESSAGE_KEYS, POSSIBLE_NESTED_ERROR_OBJECT_KEYS);
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Set the error's message based on the HTTP status code.
|
||||
*/
|
||||
setDefaultStatusCodeMessage() {
|
||||
// Set generic error message for 502 Bad Gateway
|
||||
if (!this.httpCode && this.message && this.message.toLowerCase().includes('bad gateway')) {
|
||||
this.httpCode = '502';
|
||||
}
|
||||
if (!this.httpCode) {
|
||||
this.httpCode = null;
|
||||
if (!this.message) {
|
||||
if (this.description) {
|
||||
this.message = this.description;
|
||||
this.description = undefined;
|
||||
}
|
||||
else {
|
||||
this.message = constants_1.UNKNOWN_ERROR_MESSAGE;
|
||||
this.description = constants_1.UNKNOWN_ERROR_DESCRIPTION;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (STATUS_CODE_MESSAGES[this.httpCode]) {
|
||||
this.addToMessages(this.message);
|
||||
this.message = STATUS_CODE_MESSAGES[this.httpCode];
|
||||
return;
|
||||
}
|
||||
switch (this.httpCode.charAt(0)) {
|
||||
case '4':
|
||||
this.addToMessages(this.message);
|
||||
this.message = STATUS_CODE_MESSAGES['4XX'];
|
||||
break;
|
||||
case '5':
|
||||
this.addToMessages(this.message);
|
||||
this.message = STATUS_CODE_MESSAGES['5XX'];
|
||||
break;
|
||||
default:
|
||||
if (!this.message) {
|
||||
if (this.description) {
|
||||
this.message = this.description;
|
||||
this.description = undefined;
|
||||
}
|
||||
else {
|
||||
this.message = constants_1.UNKNOWN_ERROR_MESSAGE;
|
||||
this.description = constants_1.UNKNOWN_ERROR_DESCRIPTION;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.node.type === constants_1.NO_OP_NODE_TYPE && this.message === constants_1.UNKNOWN_ERROR_MESSAGE) {
|
||||
this.message = `${constants_1.UNKNOWN_ERROR_MESSAGE_CRED} - ${this.httpCode}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.NodeApiError = NodeApiError;
|
||||
});
|
||||
//# sourceMappingURL=node-api.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/node-api.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/node-api.error.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
11
node_modules/n8n-workflow/dist/cjs/errors/node-operation.error.d.ts
generated
vendored
Normal file
11
node_modules/n8n-workflow/dist/cjs/errors/node-operation.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { NodeError } from './abstract/node.error';
|
||||
import type { NodeOperationErrorOptions } from './node-api.error';
|
||||
import type { INode, JsonObject } from '../interfaces';
|
||||
/**
|
||||
* Class for instantiating an operational error, e.g. an invalid credentials error.
|
||||
*/
|
||||
export declare class NodeOperationError extends NodeError {
|
||||
type: string | undefined;
|
||||
constructor(node: INode, error: Error | string | JsonObject, options?: NodeOperationErrorOptions);
|
||||
}
|
||||
//# sourceMappingURL=node-operation.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/node-operation.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/node-operation.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node-operation.error.d.ts","sourceRoot":"","sources":["../../../src/errors/node-operation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEvD;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,SAAS;IAChD,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;gBAGxB,IAAI,EAAE,KAAK,EACX,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,EAClC,OAAO,GAAE,yBAA8B;CAwCxC"}
|
||||
53
node_modules/n8n-workflow/dist/cjs/errors/node-operation.error.js
generated
vendored
Normal file
53
node_modules/n8n-workflow/dist/cjs/errors/node-operation.error.js
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./abstract/node.error", "@n8n/errors"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.NodeOperationError = void 0;
|
||||
const node_error_1 = require("./abstract/node.error");
|
||||
const errors_1 = require("@n8n/errors");
|
||||
/**
|
||||
* Class for instantiating an operational error, e.g. an invalid credentials error.
|
||||
*/
|
||||
class NodeOperationError extends node_error_1.NodeError {
|
||||
type;
|
||||
constructor(node, error, options = {}) {
|
||||
if (error instanceof NodeOperationError) {
|
||||
return error;
|
||||
}
|
||||
if (typeof error === 'string') {
|
||||
error = new errors_1.ApplicationError(error, { level: options.level ?? 'warning' });
|
||||
}
|
||||
super(node, error);
|
||||
if (error instanceof node_error_1.NodeError && error?.messages?.length) {
|
||||
error.messages.forEach((message) => this.addToMessages(message));
|
||||
}
|
||||
if (options.message)
|
||||
this.message = options.message;
|
||||
this.level = options.level ?? 'warning';
|
||||
if (options.functionality)
|
||||
this.functionality = options.functionality;
|
||||
if (options.type)
|
||||
this.type = options.type;
|
||||
if (options.description)
|
||||
this.description = options.description;
|
||||
else if ('description' in error && typeof error.description === 'string')
|
||||
this.description = error.description;
|
||||
this.context.runIndex = options.runIndex;
|
||||
this.context.itemIndex = options.itemIndex;
|
||||
this.context.metadata = options.metadata;
|
||||
if (this.message === this.description) {
|
||||
this.description = undefined;
|
||||
}
|
||||
[this.message, this.messages] = this.setDescriptiveErrorMessage(this.message, this.messages, undefined, options.messageMapping);
|
||||
}
|
||||
}
|
||||
exports.NodeOperationError = NodeOperationError;
|
||||
});
|
||||
//# sourceMappingURL=node-operation.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/node-operation.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/node-operation.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node-operation.error.js","sourceRoot":"","sources":["../../../src/errors/node-operation.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,sDAAkD;IAClD,wCAA+C;IAI/C;;OAEG;IACH,MAAa,kBAAmB,SAAQ,sBAAS;QAChD,IAAI,CAAqB;QAEzB,YACC,IAAW,EACX,KAAkC,EAClC,UAAqC,EAAE;YAEvC,IAAI,KAAK,YAAY,kBAAkB,EAAE,CAAC;gBACzC,OAAO,KAAK,CAAC;YACd,CAAC;YAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC/B,KAAK,GAAG,IAAI,yBAAgB,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,SAAS,EAAE,CAAC,CAAC;YAC5E,CAAC;YAED,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YAEnB,IAAI,KAAK,YAAY,sBAAS,IAAI,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;gBAC3D,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC;YAClE,CAAC;YAED,IAAI,OAAO,CAAC,OAAO;gBAAE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;YACpD,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,SAAS,CAAC;YACxC,IAAI,OAAO,CAAC,aAAa;gBAAE,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;YACtE,IAAI,OAAO,CAAC,IAAI;gBAAE,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;YAE3C,IAAI,OAAO,CAAC,WAAW;gBAAE,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;iBAC3D,IAAI,aAAa,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,QAAQ;gBACvE,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;YAEtC,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;YACzC,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;YAC3C,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;YAEzC,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC;gBACvC,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;YAC9B,CAAC;YAED,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,0BAA0B,CAC9D,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,QAAQ,EACb,SAAS,EACT,OAAO,CAAC,cAAc,CACtB,CAAC;QACH,CAAC;KACD;IA9CD,gDA8CC"}
|
||||
5
node_modules/n8n-workflow/dist/cjs/errors/node-ssl.error.d.ts
generated
vendored
Normal file
5
node_modules/n8n-workflow/dist/cjs/errors/node-ssl.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
export declare class NodeSslError extends ExecutionBaseError {
|
||||
constructor(cause: Error);
|
||||
}
|
||||
//# sourceMappingURL=node-ssl.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/node-ssl.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/node-ssl.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node-ssl.error.d.ts","sourceRoot":"","sources":["../../../src/errors/node-ssl.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,qBAAa,YAAa,SAAQ,kBAAkB;gBACvC,KAAK,EAAE,KAAK;CAGxB"}
|
||||
21
node_modules/n8n-workflow/dist/cjs/errors/node-ssl.error.js
generated
vendored
Normal file
21
node_modules/n8n-workflow/dist/cjs/errors/node-ssl.error.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./abstract/execution-base.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.NodeSslError = void 0;
|
||||
const execution_base_error_1 = require("./abstract/execution-base.error");
|
||||
class NodeSslError extends execution_base_error_1.ExecutionBaseError {
|
||||
constructor(cause) {
|
||||
super("SSL Issue: consider using the 'Ignore SSL issues' option", { cause });
|
||||
}
|
||||
}
|
||||
exports.NodeSslError = NodeSslError;
|
||||
});
|
||||
//# sourceMappingURL=node-ssl.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/node-ssl.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/node-ssl.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"node-ssl.error.js","sourceRoot":"","sources":["../../../src/errors/node-ssl.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,0EAAqE;IAErE,MAAa,YAAa,SAAQ,yCAAkB;QACnD,YAAY,KAAY;YACvB,KAAK,CAAC,0DAA0D,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC9E,CAAC;KACD;IAJD,oCAIC"}
|
||||
7
node_modules/n8n-workflow/dist/cjs/errors/subworkflow-operation.error.d.ts
generated
vendored
Normal file
7
node_modules/n8n-workflow/dist/cjs/errors/subworkflow-operation.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { WorkflowOperationError } from './workflow-operation.error';
|
||||
export declare class SubworkflowOperationError extends WorkflowOperationError {
|
||||
description: string;
|
||||
cause: Error;
|
||||
constructor(message: string, description: string);
|
||||
}
|
||||
//# sourceMappingURL=subworkflow-operation.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/subworkflow-operation.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/subworkflow-operation.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"subworkflow-operation.error.d.ts","sourceRoot":"","sources":["../../../src/errors/subworkflow-operation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,qBAAa,yBAA0B,SAAQ,sBAAsB;IAC3D,WAAW,SAAM;IAEjB,KAAK,EAAE,KAAK,CAAC;gBAEV,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;CAWhD"}
|
||||
30
node_modules/n8n-workflow/dist/cjs/errors/subworkflow-operation.error.js
generated
vendored
Normal file
30
node_modules/n8n-workflow/dist/cjs/errors/subworkflow-operation.error.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./workflow-operation.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.SubworkflowOperationError = void 0;
|
||||
const workflow_operation_error_1 = require("./workflow-operation.error");
|
||||
class SubworkflowOperationError extends workflow_operation_error_1.WorkflowOperationError {
|
||||
description = '';
|
||||
cause;
|
||||
constructor(message, description) {
|
||||
super(message);
|
||||
this.name = this.constructor.name;
|
||||
this.description = description;
|
||||
this.cause = {
|
||||
name: this.name,
|
||||
message,
|
||||
stack: this.stack,
|
||||
};
|
||||
}
|
||||
}
|
||||
exports.SubworkflowOperationError = SubworkflowOperationError;
|
||||
});
|
||||
//# sourceMappingURL=subworkflow-operation.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/subworkflow-operation.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/subworkflow-operation.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"subworkflow-operation.error.js","sourceRoot":"","sources":["../../../src/errors/subworkflow-operation.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,yEAAoE;IAEpE,MAAa,yBAA0B,SAAQ,iDAAsB;QAC3D,WAAW,GAAG,EAAE,CAAC;QAEjB,KAAK,CAAQ;QAEtB,YAAY,OAAe,EAAE,WAAmB;YAC/C,KAAK,CAAC,OAAO,CAAC,CAAC;YACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;YAClC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;YAE/B,IAAI,CAAC,KAAK,GAAG;gBACZ,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,OAAO;gBACP,KAAK,EAAE,IAAI,CAAC,KAAe;aAC3B,CAAC;QACH,CAAC;KACD;IAhBD,8DAgBC"}
|
||||
11
node_modules/n8n-workflow/dist/cjs/errors/trigger-close.error.d.ts
generated
vendored
Normal file
11
node_modules/n8n-workflow/dist/cjs/errors/trigger-close.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { ApplicationError, type ErrorLevel } from '@n8n/errors';
|
||||
import type { INode } from '../interfaces';
|
||||
interface TriggerCloseErrorOptions extends ErrorOptions {
|
||||
level: ErrorLevel;
|
||||
}
|
||||
export declare class TriggerCloseError extends ApplicationError {
|
||||
readonly node: INode;
|
||||
constructor(node: INode, { cause, level }: TriggerCloseErrorOptions);
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=trigger-close.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/trigger-close.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/trigger-close.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"trigger-close.error.d.ts","sourceRoot":"","sources":["../../../src/errors/trigger-close.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,UAAU,wBAAyB,SAAQ,YAAY;IACtD,KAAK,EAAE,UAAU,CAAC;CAClB;AAED,qBAAa,iBAAkB,SAAQ,gBAAgB;IAErD,QAAQ,CAAC,IAAI,EAAE,KAAK;gBAAX,IAAI,EAAE,KAAK,EACpB,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,wBAAwB;CAK3C"}
|
||||
24
node_modules/n8n-workflow/dist/cjs/errors/trigger-close.error.js
generated
vendored
Normal file
24
node_modules/n8n-workflow/dist/cjs/errors/trigger-close.error.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "@n8n/errors"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TriggerCloseError = void 0;
|
||||
const errors_1 = require("@n8n/errors");
|
||||
class TriggerCloseError extends errors_1.ApplicationError {
|
||||
node;
|
||||
constructor(node, { cause, level }) {
|
||||
super('Trigger Close Failed', { cause, extra: { nodeName: node.name } });
|
||||
this.node = node;
|
||||
this.level = level;
|
||||
}
|
||||
}
|
||||
exports.TriggerCloseError = TriggerCloseError;
|
||||
});
|
||||
//# sourceMappingURL=trigger-close.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/trigger-close.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/trigger-close.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"trigger-close.error.js","sourceRoot":"","sources":["../../../src/errors/trigger-close.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,wCAAgE;IAOhE,MAAa,iBAAkB,SAAQ,yBAAgB;QAE5C;QADV,YACU,IAAW,EACpB,EAAE,KAAK,EAAE,KAAK,EAA4B;YAE1C,KAAK,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAHhE,SAAI,GAAJ,IAAI,CAAO;YAIpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACpB,CAAC;KACD;IARD,8CAQC"}
|
||||
5
node_modules/n8n-workflow/dist/cjs/errors/webhook-taken.error.d.ts
generated
vendored
Normal file
5
node_modules/n8n-workflow/dist/cjs/errors/webhook-taken.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { WorkflowActivationError } from './workflow-activation.error';
|
||||
export declare class WebhookPathTakenError extends WorkflowActivationError {
|
||||
constructor(nodeName: string, cause?: Error);
|
||||
}
|
||||
//# sourceMappingURL=webhook-taken.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/webhook-taken.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/webhook-taken.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"webhook-taken.error.d.ts","sourceRoot":"","sources":["../../../src/errors/webhook-taken.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,qBAAa,qBAAsB,SAAQ,uBAAuB;gBACrD,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;CAM3C"}
|
||||
21
node_modules/n8n-workflow/dist/cjs/errors/webhook-taken.error.js
generated
vendored
Normal file
21
node_modules/n8n-workflow/dist/cjs/errors/webhook-taken.error.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./workflow-activation.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.WebhookPathTakenError = void 0;
|
||||
const workflow_activation_error_1 = require("./workflow-activation.error");
|
||||
class WebhookPathTakenError extends workflow_activation_error_1.WorkflowActivationError {
|
||||
constructor(nodeName, cause) {
|
||||
super(`The URL path that the "${nodeName}" node uses is already taken. Please change it to something else.`, { level: 'warning', cause });
|
||||
}
|
||||
}
|
||||
exports.WebhookPathTakenError = WebhookPathTakenError;
|
||||
});
|
||||
//# sourceMappingURL=webhook-taken.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/webhook-taken.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/webhook-taken.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"webhook-taken.error.js","sourceRoot":"","sources":["../../../src/errors/webhook-taken.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,2EAAsE;IAEtE,MAAa,qBAAsB,SAAQ,mDAAuB;QACjE,YAAY,QAAgB,EAAE,KAAa;YAC1C,KAAK,CACJ,0BAA0B,QAAQ,mEAAmE,EACrG,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAC3B,CAAC;QACH,CAAC;KACD;IAPD,sDAOC"}
|
||||
20
node_modules/n8n-workflow/dist/cjs/errors/workflow-activation.error.d.ts
generated
vendored
Normal file
20
node_modules/n8n-workflow/dist/cjs/errors/workflow-activation.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
import type { ApplicationError } from '@n8n/errors';
|
||||
import type { INode } from '../interfaces';
|
||||
interface WorkflowActivationErrorOptions {
|
||||
cause?: Error;
|
||||
node?: INode;
|
||||
level?: ApplicationError['level'];
|
||||
workflowId?: string;
|
||||
}
|
||||
/**
|
||||
* Class for instantiating an workflow activation error
|
||||
*/
|
||||
export declare class WorkflowActivationError extends ExecutionBaseError {
|
||||
node: INode | undefined;
|
||||
workflowId: string | undefined;
|
||||
constructor(message: string, { cause, node, level, workflowId }?: WorkflowActivationErrorOptions);
|
||||
private setLevel;
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=workflow-activation.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-activation.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-activation.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-activation.error.d.ts","sourceRoot":"","sources":["../../../src/errors/workflow-activation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,UAAU,8BAA8B;IACvC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,kBAAkB;IAC9D,IAAI,EAAE,KAAK,GAAG,SAAS,CAAC;IAExB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;gBAG9B,OAAO,EAAE,MAAM,EACf,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,GAAE,8BAAmC;IAgBxE,OAAO,CAAC,QAAQ;CAqBhB"}
|
||||
54
node_modules/n8n-workflow/dist/cjs/errors/workflow-activation.error.js
generated
vendored
Normal file
54
node_modules/n8n-workflow/dist/cjs/errors/workflow-activation.error.js
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./abstract/execution-base.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.WorkflowActivationError = void 0;
|
||||
const execution_base_error_1 = require("./abstract/execution-base.error");
|
||||
/**
|
||||
* Class for instantiating an workflow activation error
|
||||
*/
|
||||
class WorkflowActivationError extends execution_base_error_1.ExecutionBaseError {
|
||||
node;
|
||||
workflowId;
|
||||
constructor(message, { cause, node, level, workflowId } = {}) {
|
||||
let error = cause;
|
||||
if (cause instanceof execution_base_error_1.ExecutionBaseError) {
|
||||
error = new Error(cause.message);
|
||||
error.constructor = cause.constructor;
|
||||
error.name = cause.name;
|
||||
error.stack = cause.stack;
|
||||
}
|
||||
super(message, { cause: error });
|
||||
this.node = node;
|
||||
this.workflowId = workflowId;
|
||||
this.message = message;
|
||||
this.setLevel(level);
|
||||
}
|
||||
setLevel(level) {
|
||||
if (level) {
|
||||
this.level = level;
|
||||
return;
|
||||
}
|
||||
if ([
|
||||
'etimedout', // Node.js
|
||||
'econnrefused', // Node.js
|
||||
'eauth', // OAuth
|
||||
'temporary authentication failure', // IMAP server
|
||||
'invalid credentials',
|
||||
].some((str) => this.message.toLowerCase().includes(str))) {
|
||||
this.level = 'warning';
|
||||
return;
|
||||
}
|
||||
this.level = 'error';
|
||||
}
|
||||
}
|
||||
exports.WorkflowActivationError = WorkflowActivationError;
|
||||
});
|
||||
//# sourceMappingURL=workflow-activation.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-activation.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-activation.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-activation.error.js","sourceRoot":"","sources":["../../../src/errors/workflow-activation.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,0EAAqE;IAWrE;;OAEG;IACH,MAAa,uBAAwB,SAAQ,yCAAkB;QAC9D,IAAI,CAAoB;QAExB,UAAU,CAAqB;QAE/B,YACC,OAAe,EACf,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,KAAqC,EAAE;YAEvE,IAAI,KAAK,GAAG,KAAc,CAAC;YAC3B,IAAI,KAAK,YAAY,yCAAkB,EAAE,CAAC;gBACzC,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBACjC,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;gBACtC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;gBACxB,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YAC3B,CAAC;YACD,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;YACjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;QAEO,QAAQ,CAAC,KAAiC;YACjD,IAAI,KAAK,EAAE,CAAC;gBACX,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;gBACnB,OAAO;YACR,CAAC;YAED,IACC;gBACC,WAAW,EAAE,UAAU;gBACvB,cAAc,EAAE,UAAU;gBAC1B,OAAO,EAAE,QAAQ;gBACjB,kCAAkC,EAAE,cAAc;gBAClD,qBAAqB;aACrB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EACxD,CAAC;gBACF,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;gBACvB,OAAO;YACR,CAAC;YAED,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;QACtB,CAAC;KACD;IA5CD,0DA4CC"}
|
||||
7
node_modules/n8n-workflow/dist/cjs/errors/workflow-configuration.error.d.ts
generated
vendored
Normal file
7
node_modules/n8n-workflow/dist/cjs/errors/workflow-configuration.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { NodeOperationError } from './node-operation.error';
|
||||
/**
|
||||
* A type of NodeOperationError caused by a configuration problem somewhere in workflow.
|
||||
*/
|
||||
export declare class WorkflowConfigurationError extends NodeOperationError {
|
||||
}
|
||||
//# sourceMappingURL=workflow-configuration.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-configuration.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-configuration.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-configuration.error.d.ts","sourceRoot":"","sources":["../../../src/errors/workflow-configuration.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,kBAAkB;CAAG"}
|
||||
21
node_modules/n8n-workflow/dist/cjs/errors/workflow-configuration.error.js
generated
vendored
Normal file
21
node_modules/n8n-workflow/dist/cjs/errors/workflow-configuration.error.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./node-operation.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.WorkflowConfigurationError = void 0;
|
||||
const node_operation_error_1 = require("./node-operation.error");
|
||||
/**
|
||||
* A type of NodeOperationError caused by a configuration problem somewhere in workflow.
|
||||
*/
|
||||
class WorkflowConfigurationError extends node_operation_error_1.NodeOperationError {
|
||||
}
|
||||
exports.WorkflowConfigurationError = WorkflowConfigurationError;
|
||||
});
|
||||
//# sourceMappingURL=workflow-configuration.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-configuration.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-configuration.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-configuration.error.js","sourceRoot":"","sources":["../../../src/errors/workflow-configuration.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,iEAA4D;IAE5D;;OAEG;IACH,MAAa,0BAA2B,SAAQ,yCAAkB;KAAG;IAArE,gEAAqE"}
|
||||
4
node_modules/n8n-workflow/dist/cjs/errors/workflow-deactivation.error.d.ts
generated
vendored
Normal file
4
node_modules/n8n-workflow/dist/cjs/errors/workflow-deactivation.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { WorkflowActivationError } from './workflow-activation.error';
|
||||
export declare class WorkflowDeactivationError extends WorkflowActivationError {
|
||||
}
|
||||
//# sourceMappingURL=workflow-deactivation.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-deactivation.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-deactivation.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-deactivation.error.d.ts","sourceRoot":"","sources":["../../../src/errors/workflow-deactivation.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,qBAAa,yBAA0B,SAAQ,uBAAuB;CAAG"}
|
||||
18
node_modules/n8n-workflow/dist/cjs/errors/workflow-deactivation.error.js
generated
vendored
Normal file
18
node_modules/n8n-workflow/dist/cjs/errors/workflow-deactivation.error.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./workflow-activation.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.WorkflowDeactivationError = void 0;
|
||||
const workflow_activation_error_1 = require("./workflow-activation.error");
|
||||
class WorkflowDeactivationError extends workflow_activation_error_1.WorkflowActivationError {
|
||||
}
|
||||
exports.WorkflowDeactivationError = WorkflowDeactivationError;
|
||||
});
|
||||
//# sourceMappingURL=workflow-deactivation.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-deactivation.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-deactivation.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-deactivation.error.js","sourceRoot":"","sources":["../../../src/errors/workflow-deactivation.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,2EAAsE;IAEtE,MAAa,yBAA0B,SAAQ,mDAAuB;KAAG;IAAzE,8DAAyE"}
|
||||
11
node_modules/n8n-workflow/dist/cjs/errors/workflow-operation.error.d.ts
generated
vendored
Normal file
11
node_modules/n8n-workflow/dist/cjs/errors/workflow-operation.error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { INode } from '../interfaces';
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
/**
|
||||
* Class for instantiating an operational error, e.g. a timeout error.
|
||||
*/
|
||||
export declare class WorkflowOperationError extends ExecutionBaseError {
|
||||
node: INode | undefined;
|
||||
timestamp: number;
|
||||
constructor(message: string, node?: INode, description?: string);
|
||||
}
|
||||
//# sourceMappingURL=workflow-operation.error.d.ts.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-operation.error.d.ts.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-operation.error.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-operation.error.d.ts","sourceRoot":"","sources":["../../../src/errors/workflow-operation.error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,kBAAkB;IAC7D,IAAI,EAAE,KAAK,GAAG,SAAS,CAAC;IAEf,SAAS,EAAE,MAAM,CAAC;gBAEf,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,MAAM;CAQ/D"}
|
||||
32
node_modules/n8n-workflow/dist/cjs/errors/workflow-operation.error.js
generated
vendored
Normal file
32
node_modules/n8n-workflow/dist/cjs/errors/workflow-operation.error.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "./abstract/execution-base.error"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.WorkflowOperationError = void 0;
|
||||
const execution_base_error_1 = require("./abstract/execution-base.error");
|
||||
/**
|
||||
* Class for instantiating an operational error, e.g. a timeout error.
|
||||
*/
|
||||
class WorkflowOperationError extends execution_base_error_1.ExecutionBaseError {
|
||||
node;
|
||||
timestamp;
|
||||
constructor(message, node, description) {
|
||||
super(message, { cause: undefined });
|
||||
this.level = 'warning';
|
||||
this.name = this.constructor.name;
|
||||
if (description)
|
||||
this.description = description;
|
||||
this.node = node;
|
||||
this.timestamp = Date.now();
|
||||
}
|
||||
}
|
||||
exports.WorkflowOperationError = WorkflowOperationError;
|
||||
});
|
||||
//# sourceMappingURL=workflow-operation.error.js.map
|
||||
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-operation.error.js.map
generated
vendored
Normal file
1
node_modules/n8n-workflow/dist/cjs/errors/workflow-operation.error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"workflow-operation.error.js","sourceRoot":"","sources":["../../../src/errors/workflow-operation.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IACA,0EAAqE;IAErE;;OAEG;IACH,MAAa,sBAAuB,SAAQ,yCAAkB;QAC7D,IAAI,CAAoB;QAEf,SAAS,CAAS;QAE3B,YAAY,OAAe,EAAE,IAAY,EAAE,WAAoB;YAC9D,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACrC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;YACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;YAClC,IAAI,WAAW;gBAAE,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;YAChD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YACjB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC7B,CAAC;KACD;IAbD,wDAaC"}
|
||||
Reference in New Issue
Block a user