Comparing version 1.0.0 to 1.0.1
@@ -132,5 +132,5 @@ //copyright Ryan Day 2010 <http://ryanday.org>, Joscha Feth 2013 <http://www.feth.com> [MIT Licensed] | ||
var Buffer = this.Buffer || function Buffer () {}; | ||
var Buf = typeof Buffer !== 'undefined' ? Buffer : function Buffer () {}; | ||
if(typeof obj == 'string' || obj instanceof Buffer) { | ||
if(typeof obj == 'string' || obj instanceof Buf) { | ||
try{ | ||
@@ -137,0 +137,0 @@ obj = JSON.parse(obj.toString()); |
{ | ||
"name": "jsontoxml", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"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/ken-franken/node-jsontoxml", |
@@ -78,3 +78,3 @@ //copyright Ryan Day 2010 <http://ryanday.org> [MIT Licensed] | ||
var expected = expected_no_element_substitution; | ||
var buffer = new Buffer(JSON.stringify(input)); | ||
var buffer = Buffer.from?Buffer.from(JSON.stringify(input)):new Buffer(JSON.stringify(input)); | ||
@@ -81,0 +81,0 @@ test("creates correct object from buffer",function(t){ |
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
13864