Comparing version 0.0.12 to 1.0.0
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
421
0
211
24633