Comparing version 0.0.5 to 0.0.6
@@ -124,5 +124,3 @@ //copyright Ryan Day 2010 <http://ryanday.org>, Joscha Feth 2013 <http://www.feth.com> [MIT Licensed] | ||
var Buffer = this.Buffer || function Buffer () {}; | ||
if(typeof obj == 'string' || obj instanceof Buffer) { | ||
if(typeof obj == 'string' || isBuffer(obj)) { | ||
try{ | ||
@@ -159,3 +157,3 @@ obj = JSON.parse(obj.toString()); | ||
(options.prettyPrint && docType ? '\n' : ''), | ||
docType, | ||
docType, | ||
process_to_xml(obj,options) | ||
@@ -185,3 +183,9 @@ ]; | ||
function isBuffer(b){ | ||
try{ | ||
return (b instanceof Buffer); | ||
} catch(e) { | ||
return false; | ||
} | ||
} | ||
{ | ||
"name":"jsontoxml", | ||
"version":"0.0.5", | ||
"version":"0.0.6", | ||
"description":"This is a library designed to render js objects as xml. Its not made to parse or otherwise edit existing xml/html structures.", | ||
@@ -5,0 +5,0 @@ "homepage":"http://github.com/soldair/node-jsontoxml", |
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
10991
206
79816