Comparing version 0.6.11 to 0.6.12
@@ -146,2 +146,3 @@ (function() { | ||
var tmp = null; | ||
if (child.children !== void 0 && | ||
@@ -160,3 +161,13 @@ child.children.length !== 0) { | ||
{ | ||
if (!_.isArray(data[getName(child.name)])) data[getName(child.name)] = []; | ||
if (!_.isArray(data[getName(child.name)])) { | ||
if (_.isObject(data[getName(child.name)])) { | ||
tmp = data[getName(child.name)]; | ||
data[getName(child.name)] = []; | ||
data[getName(child.name)].push(tmp); | ||
} else { | ||
data[getName(child.name)] = []; | ||
} | ||
} | ||
if (childToExtract.attr !== void 0 && | ||
@@ -183,3 +194,3 @@ !_.isEmpty(childToExtract.attr)) { | ||
if (!_.isArray(data[getName(child.name)])) { | ||
var tmp = data[getName(child.name)]; | ||
tmp = data[getName(child.name)]; | ||
data[getName(child.name)] = []; | ||
@@ -186,0 +197,0 @@ data[getName(child.name)].push(tmp); |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.6.11", | ||
"version": "0.6.12", | ||
"main": "./index", | ||
@@ -11,0 +11,0 @@ "dependencies": { |
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
33591
653