Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "pixl-xml", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A simple module for parsing and composing XML.", | ||
@@ -5,0 +5,0 @@ "author": "Joseph Huckaby <jhuckaby@gmail.com>", |
@@ -9,3 +9,3 @@ # Overview | ||
* Fully synchronous operation, no callbacks | ||
* Can parse XML strings or load from files | ||
* Can parse XML strings, Buffers or load from files | ||
* Can preserve or flatten attributes | ||
@@ -12,0 +12,0 @@ * Can convert all keys to lower-case |
@@ -43,2 +43,7 @@ /* | ||
// stringify buffers | ||
if (this.text instanceof Buffer) { | ||
this.text = this.text.toString(); | ||
} | ||
if (!this.text.match(/^\s*</)) { | ||
@@ -45,0 +50,0 @@ // try as file path |
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
26571
506