Socket
Socket
Sign inDemoInstall

jsontoxml

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsontoxml - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

jsontoxml.js

@@ -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){

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc