n8n-nodes-base 2.19.0 → 2.19.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/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/ExecuteWorkflow/ExecuteWorkflow/GenericFunctions.d.ts +2 -2
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/GenericFunctions.js +7 -6
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/GenericFunctions.js.map +1 -1
- package/dist/typecheck.tsbuildinfo +1 -1
- package/dist/types/nodes.json +2 -2
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a923c106ee753b5d2ddda596991b64dd7cab2e4830745a5cb7c3a68f22bc446d
|
|
@@ -34,13 +34,13 @@ export type GoogleAnalyticsV2ReportGetParams = {
|
|
|
34
34
|
/**
|
|
35
35
|
* Start
|
|
36
36
|
* @displayOptions.show { dateRange: ["custom"], propertyType: ["ga4"] }
|
|
37
|
-
* @default 2026-04-
|
|
37
|
+
* @default 2026-04-28T00:00:00.000+00:00
|
|
38
38
|
*/
|
|
39
39
|
startDate?: string | Expression<string>;
|
|
40
40
|
/**
|
|
41
41
|
* End
|
|
42
42
|
* @displayOptions.show { dateRange: ["custom"], propertyType: ["ga4"] }
|
|
43
|
-
* @default 2026-
|
|
43
|
+
* @default 2026-05-05T00:00:00.000+00:00
|
|
44
44
|
*/
|
|
45
45
|
endDate?: string | Expression<string>;
|
|
46
46
|
/**
|
|
@@ -24,12 +24,12 @@ export type MicrosoftOutlookV2EventCreateParams = {
|
|
|
24
24
|
subject: string | Expression<string> | PlaceholderValue;
|
|
25
25
|
/**
|
|
26
26
|
* Start
|
|
27
|
-
* @default 2026-
|
|
27
|
+
* @default 2026-05-06T10:36:45.218+00:00
|
|
28
28
|
*/
|
|
29
29
|
startDateTime?: string | Expression<string>;
|
|
30
30
|
/**
|
|
31
31
|
* End
|
|
32
|
-
* @default 2026-
|
|
32
|
+
* @default 2026-05-06T11:06:45.218+00:00
|
|
33
33
|
*/
|
|
34
34
|
endDateTime?: string | Expression<string>;
|
|
35
35
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { IExecuteFunctions, IExecuteWorkflowInfo
|
|
2
|
-
export declare function getWorkflowInfo(this:
|
|
1
|
+
import type { IExecuteFunctions, IExecuteWorkflowInfo } from 'n8n-workflow';
|
|
2
|
+
export declare function getWorkflowInfo(this: IExecuteFunctions, source: string, itemIndex?: number): Promise<IExecuteWorkflowInfo>;
|
|
3
3
|
//# sourceMappingURL=GenericFunctions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFunctions.d.ts","sourceRoot":"","sources":["../../../../nodes/ExecuteWorkflow/ExecuteWorkflow/GenericFunctions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,iBAAiB,EACjB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"GenericFunctions.d.ts","sourceRoot":"","sources":["../../../../nodes/ExecuteWorkflow/ExecuteWorkflow/GenericFunctions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,iBAAiB,EACjB,oBAAoB,EAGpB,MAAM,cAAc,CAAC;AAEtB,wBAAsB,eAAe,CAAC,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,SAAI,iCAoE3F"}
|
|
@@ -19,16 +19,17 @@ async function getWorkflowInfo(source, itemIndex = 0) {
|
|
|
19
19
|
else if (source === 'localFile') {
|
|
20
20
|
// Read workflow from filesystem
|
|
21
21
|
const workflowPath = this.getNodeParameter('workflowPath', itemIndex);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
workflowJson = await (0, promises_1.readFile)(workflowPath, { encoding: 'utf8' });
|
|
25
|
-
}
|
|
26
|
-
catch (error) {
|
|
27
|
-
if (error.code === 'ENOENT') {
|
|
22
|
+
const handleFileError = (error) => {
|
|
23
|
+
if (error && typeof error === 'object' && 'code' in error && error.code === 'ENOENT') {
|
|
28
24
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The file "${workflowPath}" could not be found, [item ${itemIndex}]`);
|
|
29
25
|
}
|
|
30
26
|
throw error;
|
|
27
|
+
};
|
|
28
|
+
const resolvedPath = await this.helpers.resolvePath(workflowPath).catch(handleFileError);
|
|
29
|
+
if (this.helpers.isFilePathBlocked(resolvedPath)) {
|
|
30
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Access to the workflow file path is not allowed');
|
|
31
31
|
}
|
|
32
|
+
const workflowJson = await (0, promises_1.readFile)(resolvedPath, { encoding: 'utf8' }).catch(handleFileError);
|
|
32
33
|
workflowInfo.code = (0, n8n_workflow_1.jsonParse)(workflowJson, {
|
|
33
34
|
errorMessage: 'The file content is not valid JSON', // pass a custom error message to not expose the file contents
|
|
34
35
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../../nodes/ExecuteWorkflow/ExecuteWorkflow/GenericFunctions.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../../nodes/ExecuteWorkflow/ExecuteWorkflow/GenericFunctions.ts"],"names":[],"mappings":";;AASA,0CAoEC;AA7ED,0CAAqD;AACrD,+CAA6D;AAQtD,KAAK,UAAU,eAAe,CAA0B,MAAc,EAAE,SAAS,GAAG,CAAC;IAC3F,MAAM,YAAY,GAAyB,EAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC;IAC/C,IAAI,MAAM,KAAK,U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