n8n-nodes-base 2.26.3 → 2.26.5
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/node-definitions/.nodes-hash +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/googleAnalytics/v2/resource_report/operation_get.ts +2 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
- package/dist/nodes/Compression/decompress/BoundedUnzip.d.ts +9 -2
- package/dist/nodes/Compression/decompress/BoundedUnzip.d.ts.map +1 -1
- package/dist/nodes/Compression/decompress/BoundedUnzip.js +41 -68
- package/dist/nodes/Compression/decompress/BoundedUnzip.js.map +1 -1
- package/dist/nodes/Form/utils/utils.js +1 -1
- package/dist/nodes/Form/utils/utils.js.map +1 -1
- package/dist/nodes/Webhook/utils.js +2 -2
- package/dist/nodes/Webhook/utils.js.map +1 -1
- package/dist/typecheck.tsbuildinfo +1 -1
- package/dist/types/nodes.json +2 -2
- package/package.json +8 -8
- package/dist/nodes/Compression/decompress/ZipEntryDecompressor.d.ts +0 -19
- package/dist/nodes/Compression/decompress/ZipEntryDecompressor.d.ts.map +0 -1
- package/dist/nodes/Compression/decompress/ZipEntryDecompressor.js +0 -60
- package/dist/nodes/Compression/decompress/ZipEntryDecompressor.js.map +0 -1
- package/dist/nodes/Compression/decompress/ZipOutputAccumulator.d.ts +0 -20
- package/dist/nodes/Compression/decompress/ZipOutputAccumulator.d.ts.map +0 -1
- package/dist/nodes/Compression/decompress/ZipOutputAccumulator.js +0 -63
- package/dist/nodes/Compression/decompress/ZipOutputAccumulator.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-base",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.5",
|
|
4
4
|
"description": "Base nodes of n8n",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"LICENSE.md",
|
|
9
|
+
"LICENSE_EE.md"
|
|
10
10
|
],
|
|
11
11
|
"n8n": {
|
|
12
12
|
"credentials": [
|
|
@@ -883,10 +883,10 @@
|
|
|
883
883
|
"@n8n/client-oauth2": "1.8.0",
|
|
884
884
|
"@n8n/eslint-plugin-community-nodes": "0.20.0",
|
|
885
885
|
"@n8n/playwright-janitor": "0.1.0",
|
|
886
|
-
"@n8n/typescript-config": "1.5.0",
|
|
887
886
|
"@n8n/vitest-config": "1.14.0",
|
|
887
|
+
"@n8n/typescript-config": "1.5.0",
|
|
888
888
|
"n8n-containers": "1.0.0",
|
|
889
|
-
"n8n-core": "2.26.
|
|
889
|
+
"n8n-core": "2.26.4"
|
|
890
890
|
},
|
|
891
891
|
"dependencies": {
|
|
892
892
|
"@aws-sdk/client-sso-oidc": "3.808.0",
|
|
@@ -962,11 +962,11 @@
|
|
|
962
962
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz",
|
|
963
963
|
"xml2js": "0.6.2",
|
|
964
964
|
"xmlhttprequest-ssl": "3.1.0",
|
|
965
|
+
"@n8n/di": "0.13.0",
|
|
965
966
|
"@n8n/config": "2.24.1",
|
|
966
967
|
"@n8n/errors": "0.9.0",
|
|
967
|
-
"
|
|
968
|
-
"n8n
|
|
969
|
-
"@n8n/di": "0.13.0"
|
|
968
|
+
"n8n-workflow": "2.26.3",
|
|
969
|
+
"@n8n/imap": "0.21.0"
|
|
970
970
|
},
|
|
971
971
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
972
972
|
"homepage": "https://n8n.io",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type * as fflate from 'fflate';
|
|
2
|
-
import type { ZipOutputAccumulator } from './ZipOutputAccumulator';
|
|
3
|
-
/** Wires an fflate `UnzipFile` to a chunk writer and manages its decompression lifecycle. */
|
|
4
|
-
export declare class ZipEntryDecompressor {
|
|
5
|
-
private readonly entry;
|
|
6
|
-
private readonly writeChunk;
|
|
7
|
-
private readonly accumulator;
|
|
8
|
-
private readonly callbacks;
|
|
9
|
-
private isFinished;
|
|
10
|
-
constructor(entry: fflate.UnzipFile, writeChunk: (chunk: Uint8Array) => void, accumulator: ZipOutputAccumulator, callbacks: {
|
|
11
|
-
isSettled: () => boolean;
|
|
12
|
-
onFinish: () => void;
|
|
13
|
-
onError: (error: Error) => void;
|
|
14
|
-
});
|
|
15
|
-
start(): void;
|
|
16
|
-
private finish;
|
|
17
|
-
private reject;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=ZipEntryDecompressor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ZipEntryDecompressor.d.ts","sourceRoot":"","sources":["../../../../nodes/Compression/decompress/ZipEntryDecompressor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,QAAQ,CAAC;AAGtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,6FAA6F;AAC7F,qBAAa,oBAAoB;IAI/B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAN3B,OAAO,CAAC,UAAU,CAAS;gBAGT,KAAK,EAAE,MAAM,CAAC,SAAS,EACvB,UAAU,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,EACvC,WAAW,EAAE,oBAAoB,EACjC,SAAS,EAAE;QAC3B,SAAS,EAAE,MAAM,OAAO,CAAC;QACzB,QAAQ,EAAE,MAAM,IAAI,CAAC;QACrB,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;KAChC;IAGF,KAAK,IAAI,IAAI;IA4Bb,OAAO,CAAC,MAAM;IAMd,OAAO,CAAC,MAAM;CAgBd"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZipEntryDecompressor = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
/** Wires an fflate `UnzipFile` to a chunk writer and manages its decompression lifecycle. */
|
|
6
|
-
class ZipEntryDecompressor {
|
|
7
|
-
entry;
|
|
8
|
-
writeChunk;
|
|
9
|
-
accumulator;
|
|
10
|
-
callbacks;
|
|
11
|
-
isFinished = false;
|
|
12
|
-
constructor(entry, writeChunk, accumulator, callbacks) {
|
|
13
|
-
this.entry = entry;
|
|
14
|
-
this.writeChunk = writeChunk;
|
|
15
|
-
this.accumulator = accumulator;
|
|
16
|
-
this.callbacks = callbacks;
|
|
17
|
-
}
|
|
18
|
-
start() {
|
|
19
|
-
this.entry.ondata = (error, chunk, final) => {
|
|
20
|
-
if (this.callbacks.isSettled()) {
|
|
21
|
-
this.entry.terminate();
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
if (error) {
|
|
25
|
-
this.reject(error);
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
this.writeChunk(chunk);
|
|
29
|
-
if (this.accumulator.isLimitExceeded) {
|
|
30
|
-
this.reject(this.accumulator.exceededError);
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
if (final)
|
|
34
|
-
this.finish();
|
|
35
|
-
};
|
|
36
|
-
try {
|
|
37
|
-
this.entry.start();
|
|
38
|
-
}
|
|
39
|
-
catch (error) {
|
|
40
|
-
this.reject(error);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
finish() {
|
|
44
|
-
if (this.isFinished)
|
|
45
|
-
return;
|
|
46
|
-
this.isFinished = true;
|
|
47
|
-
this.callbacks.onFinish();
|
|
48
|
-
}
|
|
49
|
-
reject(error) {
|
|
50
|
-
this.entry.terminate();
|
|
51
|
-
if (error instanceof n8n_workflow_1.UserError) {
|
|
52
|
-
this.callbacks.onError(error);
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
const cause = (0, n8n_workflow_1.ensureError)(error);
|
|
56
|
-
this.callbacks.onError(new n8n_workflow_1.UserError(`ZIP entry "${this.entry.name}" couldn't be decompressed. Check the archive and try again. Original error: ${cause.message}`, { cause }));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.ZipEntryDecompressor = ZipEntryDecompressor;
|
|
60
|
-
//# sourceMappingURL=ZipEntryDecompressor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ZipEntryDecompressor.js","sourceRoot":"","sources":["../../../../nodes/Compression/decompress/ZipEntryDecompressor.ts"],"names":[],"mappings":";;;AACA,+CAAsD;AAItD,6FAA6F;AAC7F,MAAa,oBAAoB;IAId;IACA;IACA;IACA;IANV,UAAU,GAAG,KAAK,CAAC;IAE3B,YACkB,KAAuB,EACvB,UAAuC,EACvC,WAAiC,EACjC,SAIhB;QAPgB,UAAK,GAAL,KAAK,CAAkB;QACvB,eAAU,GAAV,UAAU,CAA6B;QACvC,gBAAW,GAAX,WAAW,CAAsB;QACjC,cAAS,GAAT,SAAS,CAIzB;IACC,CAAC;IAEJ,KAAK;QACJ,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;YAC3C,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,CAAC;gBAChC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;gBACvB,OAAO;YACR,CAAC;YACD,IAAI,KAAK,EAAE,CAAC;gBACX,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBACnB,OAAO;YACR,CAAC;YAED,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAEvB,IAAI,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC;gBACtC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;gBAC5C,OAAO;YACR,CAAC;YAED,IAAI,KAAK;gBAAE,IAAI,CAAC,MAAM,EAAE,CAAC;QAC1B,CAAC,CAAC;QAEF,IAAI,CAAC;YACJ,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACpB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACpB,CAAC;IACF,CAAC;IAEO,MAAM;QACb,IAAI,IAAI,CAAC,UAAU;YAAE,OAAO;QAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;IAC3B,CAAC;IAEO,MAAM,CAAC,KAAc;QAC5B,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;QAEvB,IAAI,KAAK,YAAY,wBAAS,EAAE,CAAC;YAChC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC9B,OAAO;QACR,CAAC;QAED,MAAM,KAAK,GAAG,IAAA,0BAAW,EAAC,KAAK,CAAC,CAAC;QACjC,IAAI,CAAC,SAAS,CAAC,OAAO,CACrB,IAAI,wBAAS,CACZ,cAAc,IAAI,CAAC,KAAK,CAAC,IAAI,gFAAgF,KAAK,CAAC,OAAO,EAAE,EAC5H,EAAE,KAAK,EAAE,CACT,CACD,CAAC;IACH,CAAC;CACD;AAhED,oDAgEC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type Result, UserError } from 'n8n-workflow';
|
|
2
|
-
/**
|
|
3
|
-
* Tracks per-file decompressed chunks across a zip archive while enforcing
|
|
4
|
-
* a shared cumulative size limit and a maximum entry count.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ZipOutputAccumulator {
|
|
7
|
-
private readonly maxSize;
|
|
8
|
-
private readonly maxEntries;
|
|
9
|
-
error: UserError | undefined;
|
|
10
|
-
private totalSize;
|
|
11
|
-
private entryCount;
|
|
12
|
-
private readonly fileChunksByName;
|
|
13
|
-
constructor(maxSize: number, maxEntries: number);
|
|
14
|
-
get exceededError(): UserError;
|
|
15
|
-
get isLimitExceeded(): boolean;
|
|
16
|
-
/** Registers a new zip entry and returns a chunk writer, or an error if a limit was hit. */
|
|
17
|
-
addEntry(name: string): Result<(chunk: Uint8Array) => void, UserError>;
|
|
18
|
-
toBuffers(): Record<string, Buffer>;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=ZipOutputAccumulator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ZipOutputAccumulator.d.ts","sourceRoot":"","sources":["../../../../nodes/Compression/decompress/ZipOutputAccumulator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,MAAM,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzF;;;GAGG;AACH,qBAAa,oBAAoB;IAU/B,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAV5B,KAAK,EAAE,SAAS,GAAG,SAAS,CAAa;IAEzC,OAAO,CAAC,SAAS,CAAK;IAEtB,OAAO,CAAC,UAAU,CAAK;IAEvB,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAoC;gBAGnD,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM;IAGpC,IAAI,aAAa,IAAI,SAAS,CAG7B;IAED,IAAI,eAAe,IAAI,OAAO,CAE7B;IAED,4FAA4F;IAC5F,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,EAAE,SAAS,CAAC;IAuBtE,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAOnC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ZipOutputAccumulator = void 0;
|
|
7
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
8
|
-
const node_assert_1 = __importDefault(require("node:assert"));
|
|
9
|
-
const DecompressedSizeExceededError_1 = require("./DecompressedSizeExceededError");
|
|
10
|
-
/**
|
|
11
|
-
* Tracks per-file decompressed chunks across a zip archive while enforcing
|
|
12
|
-
* a shared cumulative size limit and a maximum entry count.
|
|
13
|
-
*/
|
|
14
|
-
class ZipOutputAccumulator {
|
|
15
|
-
maxSize;
|
|
16
|
-
maxEntries;
|
|
17
|
-
error = undefined;
|
|
18
|
-
totalSize = 0;
|
|
19
|
-
entryCount = 0;
|
|
20
|
-
fileChunksByName = {};
|
|
21
|
-
constructor(maxSize, maxEntries) {
|
|
22
|
-
this.maxSize = maxSize;
|
|
23
|
-
this.maxEntries = maxEntries;
|
|
24
|
-
}
|
|
25
|
-
get exceededError() {
|
|
26
|
-
(0, node_assert_1.default)(this.error);
|
|
27
|
-
return this.error;
|
|
28
|
-
}
|
|
29
|
-
get isLimitExceeded() {
|
|
30
|
-
return this.error !== undefined;
|
|
31
|
-
}
|
|
32
|
-
/** Registers a new zip entry and returns a chunk writer, or an error if a limit was hit. */
|
|
33
|
-
addEntry(name) {
|
|
34
|
-
if (this.error)
|
|
35
|
-
return (0, n8n_workflow_1.createResultError)(this.error);
|
|
36
|
-
this.entryCount++;
|
|
37
|
-
if (this.entryCount > this.maxEntries) {
|
|
38
|
-
this.error = new n8n_workflow_1.UserError(`The archive contains more than ${this.maxEntries} entries`);
|
|
39
|
-
return (0, n8n_workflow_1.createResultError)(this.error);
|
|
40
|
-
}
|
|
41
|
-
const chunks = [];
|
|
42
|
-
this.fileChunksByName[name] = chunks;
|
|
43
|
-
return (0, n8n_workflow_1.createResultOk)((chunk) => {
|
|
44
|
-
if (this.isLimitExceeded)
|
|
45
|
-
return;
|
|
46
|
-
this.totalSize += chunk.length;
|
|
47
|
-
if (this.totalSize > this.maxSize) {
|
|
48
|
-
this.error = new DecompressedSizeExceededError_1.DecompressedSizeExceededError(this.maxSize);
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
chunks.push(chunk.slice());
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
toBuffers() {
|
|
55
|
-
const result = {};
|
|
56
|
-
for (const [name, chunks] of Object.entries(this.fileChunksByName)) {
|
|
57
|
-
result[name] = Buffer.concat(chunks);
|
|
58
|
-
}
|
|
59
|
-
return result;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.ZipOutputAccumulator = ZipOutputAccumulator;
|
|
63
|
-
//# sourceMappingURL=ZipOutputAccumulator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ZipOutputAccumulator.js","sourceRoot":"","sources":["../../../../nodes/Compression/decompress/ZipOutputAccumulator.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAyF;AACzF,8DAAiC;AAEjC,mFAAgF;AAEhF;;;GAGG;AACH,MAAa,oBAAoB;IAUd;IACA;IAVlB,KAAK,GAA0B,SAAS,CAAC;IAEjC,SAAS,GAAG,CAAC,CAAC;IAEd,UAAU,GAAG,CAAC,CAAC;IAEN,gBAAgB,GAAiC,EAAE,CAAC;IAErE,YACkB,OAAe,EACf,UAAkB;QADlB,YAAO,GAAP,OAAO,CAAQ;QACf,eAAU,GAAV,UAAU,CAAQ;IACjC,CAAC;IAEJ,IAAI,aAAa;QAChB,IAAA,qBAAM,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;IAED,IAAI,eAAe;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC;IACjC,CAAC;IAED,4FAA4F;IAC5F,QAAQ,CAAC,IAAY;QACpB,IAAI,IAAI,CAAC,KAAK;YAAE,OAAO,IAAA,gCAAiB,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAErD,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;YACvC,IAAI,CAAC,KAAK,GAAG,IAAI,wBAAS,CAAC,kCAAkC,IAAI,CAAC,UAAU,UAAU,CAAC,CAAC;YACxF,OAAO,IAAA,gCAAiB,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACtC,CAAC;QAED,MAAM,MAAM,GAAiB,EAAE,CAAC;QAChC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;QAErC,OAAO,IAAA,6BAAc,EAAC,CAAC,KAAiB,EAAE,EAAE;YAC3C,IAAI,IAAI,CAAC,eAAe;gBAAE,OAAO;YACjC,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC,MAAM,CAAC;YAC/B,IAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBACnC,IAAI,CAAC,KAAK,GAAG,IAAI,6DAA6B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBAC7D,OAAO;YACR,CAAC;YACD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,SAAS;QACR,MAAM,MAAM,GAA2B,EAAE,CAAC;QAC1C,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACpE,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,MAAM,CAAC;IACf,CAAC;CACD;AAtDD,oDAsDC"}
|