n8n-workflow
Advanced tools
Comparing version 0.21.0 to 0.22.0
@@ -434,8 +434,10 @@ "use strict"; | ||
const returnValue = tmpl.tmpl(parameterValue, dataProxy.getDataProxy()); | ||
if (typeof returnValue === 'object' && Object.keys(returnValue).length === 0) { | ||
throw new Error('Expression is not valid.'); | ||
if (returnValue !== null && typeof returnValue === 'object') { | ||
if (Object.keys(returnValue).length === 0) { | ||
throw new Error('Expression is not valid.'); | ||
} | ||
if (returnObjectAsString === true) { | ||
return this.convertObjectValueToString(returnValue); | ||
} | ||
} | ||
if (returnObjectAsString === true && typeof returnValue === 'object') { | ||
return this.convertObjectValueToString(returnValue); | ||
} | ||
return returnValue; | ||
@@ -442,0 +444,0 @@ } |
{ | ||
"name": "n8n-workflow", | ||
"version": "0.21.0", | ||
"version": "0.22.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
398648
6356