Comparing version 0.4.2 to 0.4.3
@@ -86,3 +86,4 @@ // Generated by CoffeeScript 1.7.1 | ||
'newline': '\n' | ||
} | ||
}, | ||
headless: false | ||
} | ||
@@ -165,3 +166,5 @@ }; | ||
}; | ||
rootElement = builder.create(rootName, this.options.xmldec, this.options.doctype); | ||
rootElement = builder.create(rootName, this.options.xmldec, this.options.doctype, { | ||
headless: this.options.headless | ||
}); | ||
return render(rootElement, rootObj).end(this.options.renderOpts); | ||
@@ -168,0 +171,0 @@ }; |
@@ -6,3 +6,3 @@ { | ||
"homepage" : "https://github.com/Leonidas-from-XIV/node-xml2js", | ||
"version" : "0.4.2", | ||
"version" : "0.4.3", | ||
"author" : "Marek Kubica <marek@xivilization.net> (http://xivilization.net)", | ||
@@ -33,3 +33,4 @@ "contributors" : [ | ||
"Taylor Gautier (https://github.com/tsgautier)", | ||
"Todd Bryan (https://github.com/toddrbryan)" | ||
"Todd Bryan (https://github.com/toddrbryan)", | ||
"Leore Avidar <leore.avidar@gmail.com> (http://leoreavidar.com/)" | ||
], | ||
@@ -48,4 +49,4 @@ "main" : "./lib/xml2js", | ||
"dependencies" : { | ||
"sax" : "0.5.x", | ||
"xmlbuilder" : ">=0.4.2" | ||
"sax" : "0.6.x", | ||
"xmlbuilder" : ">=1.0.0" | ||
}, | ||
@@ -52,0 +53,0 @@ "devDependencies" : { |
@@ -293,4 +293,6 @@ node-xml2js | ||
* `doctype` (default `null`): optional DTD. Eg. `{'ext': 'hello.dtd'}` | ||
* `headless` (default: `false`): omit the XML header. Added in 0.4.3. | ||
renderOpts, xmldec and doctype pass through to [xmlbuilder-js](https://github.com/oozcitak/xmlbuilder-js) | ||
`renderOpts`, `xmldec`,`doctype` and `headless` pass through to | ||
[xmlbuilder-js](https://github.com/oozcitak/xmlbuilder-js). | ||
@@ -297,0 +299,0 @@ Updating to new version |
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
102137
462
344
+ Addedsax@0.6.1(transitive)
- Removedsax@0.5.8(transitive)
Updatedsax@0.6.x
Updatedxmlbuilder@>=1.0.0