xmlbuilder
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -5,3 +5,3 @@ // Generated by CoffeeScript 1.6.3 | ||
assign = require('lodash.assign'); | ||
assign = require('lodash-node/modern/objects/assign'); | ||
@@ -8,0 +8,0 @@ XMLBuilder = require('./XMLBuilder'); |
@@ -5,3 +5,3 @@ // Generated by CoffeeScript 1.6.3 | ||
create = require('lodash.create'); | ||
create = require('lodash-node/modern/objects/create'); | ||
@@ -8,0 +8,0 @@ module.exports = XMLAttribute = (function() { |
@@ -7,3 +7,3 @@ // Generated by CoffeeScript 1.6.3 | ||
create = require('lodash.create'); | ||
create = require('lodash-node/modern/objects/create'); | ||
@@ -10,0 +10,0 @@ XMLNode = require('./XMLNode'); |
@@ -7,3 +7,3 @@ // Generated by CoffeeScript 1.6.3 | ||
create = require('lodash.create'); | ||
create = require('lodash-node/modern/objects/create'); | ||
@@ -10,0 +10,0 @@ XMLNode = require('./XMLNode'); |
@@ -7,5 +7,5 @@ // Generated by CoffeeScript 1.6.3 | ||
create = require('lodash.create'); | ||
create = require('lodash-node/modern/objects/create'); | ||
isObject = require('lodash.isobject'); | ||
isObject = require('lodash-node/modern/objects/isObject'); | ||
@@ -12,0 +12,0 @@ XMLNode = require('./XMLNode'); |
@@ -5,5 +5,5 @@ // Generated by CoffeeScript 1.6.3 | ||
create = require('lodash.create'); | ||
create = require('lodash-node/modern/objects/create'); | ||
isObject = require('lodash.isobject'); | ||
isObject = require('lodash-node/modern/objects/isObject'); | ||
@@ -10,0 +10,0 @@ module.exports = XMLDocType = (function() { |
@@ -5,3 +5,3 @@ // Generated by CoffeeScript 1.6.3 | ||
create = require('lodash.create'); | ||
create = require('lodash-node/modern/objects/create'); | ||
@@ -8,0 +8,0 @@ module.exports = XMLDTDAttList = (function() { |
@@ -5,5 +5,5 @@ // Generated by CoffeeScript 1.6.3 | ||
create = require('lodash.create'); | ||
create = require('lodash-node/modern/objects/create'); | ||
isArray = require('lodash.isarray'); | ||
isArray = require('lodash-node/modern/objects/isArray'); | ||
@@ -10,0 +10,0 @@ module.exports = XMLDTDElement = (function() { |
@@ -5,5 +5,5 @@ // Generated by CoffeeScript 1.6.3 | ||
create = require('lodash.create'); | ||
create = require('lodash-node/modern/objects/create'); | ||
isObject = require('lodash.isobject'); | ||
isObject = require('lodash-node/modern/objects/isObject'); | ||
@@ -10,0 +10,0 @@ module.exports = XMLDTDEntity = (function() { |
@@ -5,3 +5,3 @@ // Generated by CoffeeScript 1.6.3 | ||
create = require('lodash.create'); | ||
create = require('lodash-node/modern/objects/create'); | ||
@@ -8,0 +8,0 @@ module.exports = XMLDTDNotation = (function() { |
@@ -7,9 +7,9 @@ // Generated by CoffeeScript 1.6.3 | ||
create = require('lodash.create'); | ||
create = require('lodash-node/modern/objects/create'); | ||
isObject = require('lodash.isobject'); | ||
isObject = require('lodash-node/modern/objects/isObject'); | ||
isArray = require('lodash.isarray'); | ||
isArray = require('lodash-node/modern/objects/isArray'); | ||
isFunction = require('lodash.isfunction'); | ||
isFunction = require('lodash-node/modern/objects/isFunction'); | ||
@@ -16,0 +16,0 @@ XMLNode = require('./XMLNode'); |
@@ -6,9 +6,9 @@ // Generated by CoffeeScript 1.6.3 | ||
isObject = require('lodash.isobject'); | ||
isObject = require('lodash-node/modern/objects/isObject'); | ||
isArray = require('lodash.isarray'); | ||
isArray = require('lodash-node/modern/objects/isArray'); | ||
isFunction = require('lodash.isfunction'); | ||
isFunction = require('lodash-node/modern/objects/isFunction'); | ||
isEmpty = require('lodash.isempty'); | ||
isEmpty = require('lodash-node/modern/objects/isEmpty'); | ||
@@ -15,0 +15,0 @@ module.exports = XMLNode = (function() { |
@@ -5,3 +5,3 @@ // Generated by CoffeeScript 1.6.3 | ||
create = require('lodash.create'); | ||
create = require('lodash-node/modern/objects/create'); | ||
@@ -8,0 +8,0 @@ module.exports = XMLProcessingInstruction = (function() { |
@@ -7,3 +7,3 @@ // Generated by CoffeeScript 1.6.3 | ||
create = require('lodash.create'); | ||
create = require('lodash-node/modern/objects/create'); | ||
@@ -10,0 +10,0 @@ XMLNode = require('./XMLNode'); |
@@ -27,3 +27,3 @@ // Generated by CoffeeScript 1.6.3 | ||
val = '' + val || ''; | ||
return this.assertLegalChar(this.escape(val)); | ||
return this.assertLegalChar(this.elEscape(val)); | ||
}; | ||
@@ -44,3 +44,3 @@ | ||
} | ||
return this.assertLegalChar(this.escape(val)); | ||
return this.assertLegalChar(val); | ||
}; | ||
@@ -58,3 +58,3 @@ | ||
val = '' + val || ''; | ||
return this.escape(val); | ||
return this.attEscape(val); | ||
}; | ||
@@ -158,6 +158,10 @@ | ||
XMLStringifier.prototype.escape = function(str) { | ||
return str.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/'/g, ''').replace(/"/g, '"'); | ||
XMLStringifier.prototype.elEscape = function(str) { | ||
return str.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/\r/g, '
'); | ||
}; | ||
XMLStringifier.prototype.attEscape = function(str) { | ||
return str.replace(/&/g, '&').replace(/</g, '<').replace(/"/g, '"').replace(/\t/g, '	').replace(/\n/g, '
').replace(/\r/g, '
'); | ||
}; | ||
return XMLStringifier; | ||
@@ -164,0 +168,0 @@ |
@@ -7,3 +7,3 @@ // Generated by CoffeeScript 1.6.3 | ||
create = require('lodash.create'); | ||
create = require('lodash-node/modern/objects/create'); | ||
@@ -10,0 +10,0 @@ XMLNode = require('./XMLNode'); |
{ | ||
"name": "xmlbuilder", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"keywords": [ | ||
@@ -29,8 +29,3 @@ "xml", | ||
"dependencies": { | ||
"lodash.assign": "~2.4.1", | ||
"lodash.create": "~2.4.1", | ||
"lodash.isobject": "~2.4.1", | ||
"lodash.isarray": "~2.4.1", | ||
"lodash.isfunction": "~2.4.1", | ||
"lodash.isempty": "~2.4.1" | ||
"lodash-node": "~2.4.1" | ||
}, | ||
@@ -37,0 +32,0 @@ "devDependencies": { |
# xmlbuilder-js | ||
An XML builder for [node.js](http://nodejs.org/) similar to | ||
[java-xmlbuilder](http://code.google.com/p/java-xmlbuilder/). | ||
[java-xmlbuilder](https://github.com/jmurty/java-xmlbuilder). | ||
@@ -6,0 +6,0 @@ [![NPM version](https://badge.fury.io/js/xmlbuilder.png)](http://badge.fury.io/js/xmlbuilder) |
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
51717
1
1344
+ Addedlodash-node@~2.4.1
+ Addedlodash-node@2.4.1(transitive)
- Removedlodash.assign@~2.4.1
- Removedlodash.create@~2.4.1
- Removedlodash.isarray@~2.4.1
- Removedlodash.isempty@~2.4.1
- Removedlodash.isfunction@~2.4.1
- Removedlodash.isobject@~2.4.1
- Removedlodash._basebind@2.4.1(transitive)
- Removedlodash._basecreate@2.4.1(transitive)
- Removedlodash._basecreatecallback@2.4.1(transitive)
- Removedlodash._basecreatewrapper@2.4.1(transitive)
- Removedlodash._createwrapper@2.4.1(transitive)
- Removedlodash._isnative@2.4.1(transitive)
- Removedlodash._objecttypes@2.4.1(transitive)
- Removedlodash._setbinddata@2.4.1(transitive)
- Removedlodash._shimkeys@2.4.1(transitive)
- Removedlodash._slice@2.4.1(transitive)
- Removedlodash.assign@2.4.1(transitive)
- Removedlodash.bind@2.4.1(transitive)
- Removedlodash.create@2.4.1(transitive)
- Removedlodash.forown@2.4.1(transitive)
- Removedlodash.identity@2.4.1(transitive)
- Removedlodash.isarray@2.4.1(transitive)
- Removedlodash.isempty@2.4.1(transitive)
- Removedlodash.isfunction@2.4.1(transitive)
- Removedlodash.isobject@2.4.1(transitive)
- Removedlodash.keys@2.4.1(transitive)
- Removedlodash.noop@2.4.1(transitive)
- Removedlodash.support@2.4.1(transitive)