Comparing version 1.6.5 to 1.6.6
@@ -63,3 +63,3 @@ var helper = require('./options-helper'); | ||
for (key in attributes) { | ||
if (attributes.hasOwnProperty(key)) { | ||
if (attributes.hasOwnProperty(key) && attributes[key] !== null && attributes[key] !== undefined) { | ||
quote = options.noQuotesForNativeAttributes && typeof attributes[key] !== 'string' ? '' : '"'; | ||
@@ -66,0 +66,0 @@ attr = '' + attributes[key]; // ensure number and boolean are converted to String |
{ | ||
"name": "xml-js", | ||
"version": "1.6.5", | ||
"version": "1.6.6", | ||
"description": "A convertor between XML text and Javascript object / JSON text.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
197786