Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xml

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml - npm Package Compare versions

Comparing version 0.0.12 to 1.0.0

2

lib/xml.js

@@ -143,3 +143,3 @@ var escapeForXML = require('./escapeForXML');

if (values._elem) {
if (values && values._elem) {
values._elem.name = name;

@@ -146,0 +146,0 @@ values._elem.icount = indent_count;

{
"name": "xml",
"version": "0.0.12",
"version": "1.0.0",
"description": "Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.",

@@ -20,3 +20,4 @@ "homepage": "http://github.com/dylang/node-xml",

"carolineBda (https://github.com/carolineBda)",
"Eric Vantillard https://github.com/evantill"
"Eric Vantillard https://github.com/evantill",
"Sean Dwyer https://github.com/reywood"
],

@@ -28,22 +29,13 @@ "repository": {

"bugs": {
"mail": "dylang@gmail.com",
"url": "http://github.com/dylang/node-xml/issues"
},
"devDependencies": {
"chai": "~1.8.1",
"mocha": "~1.17.1"
"chai": "~1.9.0",
"mocha": "~1.21.4"
},
"scripts": {
"test": "./node_modules/.bin/mocha --reporter spec"
"test": "mocha --reporter spec"
},
"main": "lib/xml.js",
"engines": {
"node": ">=0.4.0"
},
"licenses": [
{
"type": "MIT",
"url": "http://github.com/dylang/node-xml/raw/master/LICENSE"
}
]
"license": "MIT"
}

@@ -191,3 +191,3 @@ # XML for Node [![Build Status](https://secure.travis-ci.org/dylang/node-xml.png)](http://travis-ci.org/dylang/node-xml)

Copyright (c) 2011-2013 Dylan Greene <dylang@gmail.com>
Copyright (c) 2011-2014 Dylan Greene <dylang@gmail.com>

@@ -211,2 +211,2 @@ Permission is hereby granted, free of charge, to any person obtaining

TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@@ -22,2 +22,3 @@ /*

expect(xml([ { a: {} }])).to.equal('<a/>');
expect(xml([ { a: null }])).to.equal('<a/>');
expect(xml([ { a: [] }])).to.equal('<a></a>');

@@ -28,2 +29,3 @@ expect(xml([ { a: -1 }])).to.equal('<a>-1</a>');

expect(xml( { a: {} })).to.equal('<a/>');
expect(xml( { a: null })).to.equal('<a/>');
expect(xml( { a: [] })).to.equal('<a></a>');

@@ -30,0 +32,0 @@ expect(xml( { a: -1 })).to.equal('<a>-1</a>');

Sorry, the diff of this file is not supported yet

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