n8n-core 2.6.2 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/binary-data/binary-data.config.d.ts +2 -1
- package/dist/binary-data/binary-data.config.js +6 -7
- package/dist/binary-data/binary-data.config.js.map +1 -1
- package/dist/binary-data/index.d.ts +0 -1
- package/dist/binary-data/index.js +1 -3
- package/dist/binary-data/index.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/errors/error-reporter.d.ts +6 -1
- package/dist/errors/error-reporter.js +32 -7
- package/dist/errors/error-reporter.js.map +1 -1
- package/dist/execution-engine/node-execution-context/base-execute-context.d.ts +1 -1
- package/dist/execution-engine/node-execution-context/node-execution-context.d.ts +2 -2
- package/dist/execution-engine/node-execution-context/trigger-context.d.ts +2 -1
- package/dist/execution-engine/node-execution-context/trigger-context.js +5 -1
- package/dist/execution-engine/node-execution-context/trigger-context.js.map +1 -1
- package/dist/execution-engine/triggers-and-pollers.js +3 -0
- package/dist/execution-engine/triggers-and-pollers.js.map +1 -1
- package/dist/execution-engine/workflow-execute.d.ts +3 -3
- package/dist/execution-engine/workflow-execute.js +3 -24
- package/dist/execution-engine/workflow-execute.js.map +1 -1
- package/dist/instance-settings/instance-settings.d.ts +3 -0
- package/dist/instance-settings/instance-settings.js +8 -2
- package/dist/instance-settings/instance-settings.js.map +1 -1
- package/dist/storage-path-conflict.error.d.ts +5 -0
- package/dist/storage-path-conflict.error.js +14 -0
- package/dist/storage-path-conflict.error.js.map +1 -0
- package/dist/storage.config.d.ts +7 -1
- package/dist/storage.config.js +51 -7
- package/dist/storage.config.js.map +1 -1
- package/package.json +12 -11
- package/dist/conflicting-storage-paths.error.d.ts +0 -4
- package/dist/conflicting-storage-paths.error.js +0 -14
- package/dist/conflicting-storage-paths.error.js.map +0 -1
- package/dist/utils/is-json-compatible.d.ts +0 -7
- package/dist/utils/is-json-compatible.js +0 -81
- package/dist/utils/is-json-compatible.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ExecutionsConfig } from '@n8n/config';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { InstanceSettings } from '../instance-settings';
|
|
4
|
+
import { StorageConfig } from '../storage.config';
|
|
4
5
|
export declare const BINARY_DATA_MODES: readonly ["default", "filesystem", "s3", "database"];
|
|
5
6
|
declare const binaryDataModesSchema: z.ZodEnum<["default", "filesystem", "s3", "database"]>;
|
|
6
7
|
declare const availableModesSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, string[], string>, z.ZodArray<z.ZodEnum<["default", "filesystem", "s3", "database"]>, "many">>;
|
|
@@ -10,6 +11,6 @@ export declare class BinaryDataConfig {
|
|
|
10
11
|
localStoragePath: string;
|
|
11
12
|
signingSecret: string;
|
|
12
13
|
dbMaxFileSize: number;
|
|
13
|
-
constructor({ encryptionKey
|
|
14
|
+
constructor({ encryptionKey }: InstanceSettings, executionsConfig: ExecutionsConfig, storageConfig: StorageConfig);
|
|
14
15
|
}
|
|
15
16
|
export {};
|
|
@@ -8,16 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
exports.BinaryDataConfig = exports.BINARY_DATA_MODES = void 0;
|
|
16
13
|
const config_1 = require("@n8n/config");
|
|
17
14
|
const node_crypto_1 = require("node:crypto");
|
|
18
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
19
15
|
const zod_1 = require("zod");
|
|
20
16
|
const instance_settings_1 = require("../instance-settings");
|
|
17
|
+
const storage_config_1 = require("../storage.config");
|
|
21
18
|
exports.BINARY_DATA_MODES = ['default', 'filesystem', 's3', 'database'];
|
|
22
19
|
const binaryDataModesSchema = zod_1.z.enum(exports.BINARY_DATA_MODES);
|
|
23
20
|
const availableModesSchema = zod_1.z
|
|
@@ -28,10 +25,10 @@ const dbMaxFileSizeSchema = zod_1.z.coerce
|
|
|
28
25
|
.number()
|
|
29
26
|
.max(1024, 'Binary data max file size in `database` mode cannot exceed 1024 MiB');
|
|
30
27
|
let BinaryDataConfig = class BinaryDataConfig {
|
|
31
|
-
constructor({ encryptionKey
|
|
28
|
+
constructor({ encryptionKey }, executionsConfig, storageConfig) {
|
|
32
29
|
this.availableModes = ['filesystem', 's3', 'database'];
|
|
33
30
|
this.dbMaxFileSize = 512;
|
|
34
|
-
this.localStoragePath
|
|
31
|
+
this.localStoragePath ??= storageConfig.storagePath;
|
|
35
32
|
this.signingSecret = (0, node_crypto_1.createHash)('sha256')
|
|
36
33
|
.update(`url-signing:${encryptionKey}`)
|
|
37
34
|
.digest('base64');
|
|
@@ -57,6 +54,8 @@ __decorate([
|
|
|
57
54
|
], BinaryDataConfig.prototype, "dbMaxFileSize", void 0);
|
|
58
55
|
exports.BinaryDataConfig = BinaryDataConfig = __decorate([
|
|
59
56
|
config_1.Config,
|
|
60
|
-
__metadata("design:paramtypes", [instance_settings_1.InstanceSettings,
|
|
57
|
+
__metadata("design:paramtypes", [instance_settings_1.InstanceSettings,
|
|
58
|
+
config_1.ExecutionsConfig,
|
|
59
|
+
storage_config_1.StorageConfig])
|
|
61
60
|
], BinaryDataConfig);
|
|
62
61
|
//# sourceMappingURL=binary-data.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary-data.config.js","sourceRoot":"","sources":["../../src/binary-data/binary-data.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"binary-data.config.js","sourceRoot":"","sources":["../../src/binary-data/binary-data.config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAA4D;A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AAG,EAAC,gCAAgC,CAAC;;uDAChB;AAItB;IADC,IAAA,YAAG,EAAC,wCAAwC,EAAE,mBAAmB,CAAC;;uDACvC;2BArBhB,gBAAgB;IAD5B,eAAM;qCAyBc,oCAAgB;QACjB,yBAAgB;QACnB,8BAAa;GA1BjB,gBAAgB,CA4C5B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './binary-data.service';
|
|
2
2
|
export { BinaryDataConfig } from './binary-data.config';
|
|
3
3
|
export type * from './types';
|
|
4
|
-
export { ObjectStoreService } from './object-store/object-store.service.ee';
|
|
5
4
|
export { isStoredMode as isValidNonDefaultMode, FileLocation, binaryToBuffer } from './utils';
|
|
@@ -14,12 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.binaryToBuffer = exports.FileLocation = exports.isValidNonDefaultMode = exports.
|
|
17
|
+
exports.binaryToBuffer = exports.FileLocation = exports.isValidNonDefaultMode = exports.BinaryDataConfig = void 0;
|
|
18
18
|
__exportStar(require("./binary-data.service"), exports);
|
|
19
19
|
var binary_data_config_1 = require("./binary-data.config");
|
|
20
20
|
Object.defineProperty(exports, "BinaryDataConfig", { enumerable: true, get: function () { return binary_data_config_1.BinaryDataConfig; } });
|
|
21
|
-
var object_store_service_ee_1 = require("./object-store/object-store.service.ee");
|
|
22
|
-
Object.defineProperty(exports, "ObjectStoreService", { enumerable: true, get: function () { return object_store_service_ee_1.ObjectStoreService; } });
|
|
23
21
|
var utils_1 = require("./utils");
|
|
24
22
|
Object.defineProperty(exports, "isValidNonDefaultMode", { enumerable: true, get: function () { return utils_1.isStoredMode; } });
|
|
25
23
|
Object.defineProperty(exports, "FileLocation", { enumerable: true, get: function () { return utils_1.FileLocation; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/binary-data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AAEzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/binary-data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AAEzB,iCAA8F;AAArF,8GAAA,YAAY,OAAyB;AAAE,qGAAA,YAAY,OAAA;AAAE,uGAAA,cAAc,OAAA"}
|