n8n-workflow
Advanced tools
Comparing version 0.98.0 to 0.99.0
@@ -372,2 +372,3 @@ "use strict"; | ||
function getNodeParameters(nodePropertiesArray, nodeValues, returnDefaults, returnNoneDisplayed, node, onlySimpleTypes = false, dataIsResolved = false, nodeValuesRoot, parentType, parameterDependencies) { | ||
var _a, _b; | ||
if (parameterDependencies === undefined) { | ||
@@ -480,2 +481,8 @@ parameterDependencies = getParamterDependencies(nodePropertiesArray); | ||
} | ||
if (!returnDefaults && | ||
((_a = nodeProperties.typeOptions) === null || _a === void 0 ? void 0 : _a.multipleValues) === false && | ||
propertyValues && | ||
Object.keys(propertyValues).length === 0) { | ||
return nodeValues; | ||
} | ||
for (const itemName of Object.keys(propertyValues || {})) { | ||
@@ -513,2 +520,15 @@ if (nodeProperties.typeOptions !== undefined && | ||
} | ||
if (!returnDefaults && | ||
((_b = nodeProperties.typeOptions) === null || _b === void 0 ? void 0 : _b.multipleValues) === false && | ||
collectionValues && | ||
Object.keys(collectionValues).length === 0 && | ||
propertyValues && | ||
(propertyValues === null || propertyValues === void 0 ? void 0 : propertyValues.constructor.name) === 'Object' && | ||
Object.keys(propertyValues).length !== 0) { | ||
const returnValue = {}; | ||
Object.keys(propertyValues || {}).forEach((value) => { | ||
returnValue[value] = {}; | ||
}); | ||
return { [nodeProperties.name]: returnValue }; | ||
} | ||
if (Object.keys(collectionValues).length !== 0 || returnDefaults) { | ||
@@ -515,0 +535,0 @@ if (returnDefaults) { |
{ | ||
"name": "n8n-workflow", | ||
"version": "0.98.0", | ||
"version": "0.99.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
Sorry, the diff of this file is too big to display
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
700781
10924