n8n-workflow
Advanced tools
Comparing version 0.25.0 to 0.26.0
@@ -68,3 +68,4 @@ "use strict"; | ||
convertObjectValueToString(value) { | ||
return `[Object: ${JSON.stringify(value)}]`; | ||
const typeName = Array.isArray(value) ? 'Array' : 'Object'; | ||
return `[${typeName}: ${JSON.stringify(value)}]`; | ||
} | ||
@@ -439,5 +440,2 @@ checkIfWorkflowCanBeActivated(ignoreNodeTypes) { | ||
if (returnValue !== null && typeof returnValue === 'object') { | ||
if (Object.keys(returnValue).length === 0) { | ||
throw new Error('Expression is not valid.'); | ||
} | ||
if (returnObjectAsString === true) { | ||
@@ -450,3 +448,3 @@ return this.convertObjectValueToString(returnValue); | ||
catch (e) { | ||
throw new Error('Expression is not valid.'); | ||
throw new Error(`Expression is not valid: ${e.message}`); | ||
} | ||
@@ -453,0 +451,0 @@ } |
{ | ||
"name": "n8n-workflow", | ||
"version": "0.25.0", | ||
"version": "0.26.0", | ||
"description": "Workflow base code of n8n", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.md", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
401731
6414