Comparing version 0.4.9 to 0.4.10
@@ -1,3 +0,4 @@ | ||
// Generated by CoffeeScript 1.9.2 | ||
// Generated by CoffeeScript 1.9.3 | ||
(function() { | ||
"use strict"; | ||
var xml2js; | ||
@@ -4,0 +5,0 @@ |
@@ -1,3 +0,4 @@ | ||
// Generated by CoffeeScript 1.9.2 | ||
// Generated by CoffeeScript 1.9.3 | ||
(function() { | ||
"use strict"; | ||
var prefixMatch; | ||
@@ -26,2 +27,9 @@ | ||
exports.parseBooleans = function(str) { | ||
if (/^(?:true|false)$/i.test(str)) { | ||
str = str.toLowerCase() === 'true'; | ||
} | ||
return str; | ||
}; | ||
}).call(this); |
@@ -1,3 +0,4 @@ | ||
// Generated by CoffeeScript 1.9.2 | ||
// Generated by CoffeeScript 1.9.3 | ||
(function() { | ||
"use strict"; | ||
var bom, builder, escapeCDATA, events, isEmpty, processName, processors, requiresCDATA, sax, wrapCDATA, | ||
@@ -185,7 +186,7 @@ extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, | ||
} else { | ||
element = arguments.callee(element.ele(key), entry).up(); | ||
element = render(element.ele(key), entry).up(); | ||
} | ||
} | ||
} else if (typeof child === "object") { | ||
element = arguments.callee(element.ele(key), child).up(); | ||
element = render(element.ele(key), child).up(); | ||
} else { | ||
@@ -192,0 +193,0 @@ if (typeof child === 'string' && _this.options.cdata && requiresCDATA(child)) { |
@@ -9,3 +9,3 @@ { | ||
"homepage": "https://github.com/Leonidas-from-XIV/node-xml2js", | ||
"version": "0.4.9", | ||
"version": "0.4.10", | ||
"author": "Marek Kubica <marek@xivilization.net> (http://xivilization.net)", | ||
@@ -47,3 +47,5 @@ "contributors": [ | ||
"Eric Laberge <e.laberge@gmail.com> (https://github.com/elaberge)", | ||
"Benjamin E. Coe <ben@npmjs.com> (https://twitter.com/benjamincoe)" | ||
"Benjamin E. Coe <ben@npmjs.com> (https://twitter.com/benjamincoe)", | ||
"Stephen Cresswell (https://github.com/cressie176)", | ||
"Pascal Ehlert <pascal@hacksrus.net> (http://www.hacksrus.net/)" | ||
], | ||
@@ -64,3 +66,3 @@ "main": "./lib/xml2js", | ||
"dependencies": { | ||
"sax": "0.6.x", | ||
"sax": ">=0.6.0", | ||
"xmlbuilder": ">=2.4.6" | ||
@@ -74,5 +76,5 @@ }, | ||
"nyc": "^2.2.1", | ||
"zap": ">=0.2.6" | ||
"zap": ">=0.2.9" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -143,3 +143,3 @@ node-xml2js | ||
You might wonder why, using `console.dir` or `console.log` the output at some | ||
level is only `[Object]`. Don't worry, this is not because xml2js got lazy. | ||
level is only `[Object]`. Don't worry, this is not because `xml2js` got lazy. | ||
That's because Node uses `util.inspect` to convert the object into strings and | ||
@@ -220,5 +220,8 @@ that function stops after `depth=2` which is a bit low for most XML. | ||
- `parseNumbers`: parsers integer-like strings as integers and float-like strings as floats | ||
- `parseNumbers`: parses integer-like strings as integers and float-like strings as floats | ||
E.g. "0" becomes 0 and "15.56" becomes 15.56 | ||
- `parseBooleans`: parses boolean-like strings to booleans | ||
E.g. "true" becomes true and "False" becomes false | ||
Options | ||
@@ -273,4 +276,4 @@ ======= | ||
an incompatible change if your code depends on sync execution of callbacks. | ||
xml2js 0.3 might change this default, so the recommendation is to not | ||
depend on sync execution anyway. Added in 0.2.6. | ||
Future versions of `xml2js` might change this default, so the recommendation | ||
is to not depend on sync execution anyway. Added in 0.2.6. | ||
* `strict` (default `true`): Set sax-js to strict or non-strict parsing mode. | ||
@@ -346,3 +349,3 @@ Defaults to `true` which is *highly* recommended, since parsing HTML which | ||
`xml2js.defaults["0.1"]` in the same place. This provides you with enough time | ||
to migrate to the saner way of parsing in xml2js 0.2. We try to make the | ||
to migrate to the saner way of parsing in `xml2js` 0.2. We try to make the | ||
migration as simple and gentle as possible, but some breakage cannot be | ||
@@ -353,3 +356,3 @@ avoided. | ||
the XML in a more universal and sane way. So we disabled `normalize` and `trim` | ||
so xml2js does not cut out any text content. You can reenable this at will of | ||
so `xml2js` does not cut out any text content. You can reenable this at will of | ||
course. A more important change is that we return the root tag in the resulting | ||
@@ -376,7 +379,7 @@ JavaScript structure via the `explicitRoot` setting, so you need to access the | ||
If you like to contribute, keep in mind that xml2js is written in CoffeeScript, | ||
so don't develop on the JavaScript files that are checked into the repository | ||
for convenience reasons. Also, please write some unit test to check your | ||
behaviour and if it is some user-facing thing, add some documentation to this | ||
README, so people will know it exists. Thanks in advance! | ||
If you like to contribute, keep in mind that `xml2js` is written in | ||
CoffeeScript, so don't develop on the JavaScript files that are checked into | ||
the repository for convenience reasons. Also, please write some unit test to | ||
check your behaviour and if it is some user-facing thing, add some | ||
documentation to this README, so people will know it exists. Thanks in advance! | ||
@@ -388,7 +391,7 @@ Getting support | ||
README. If you read this far, thanks, you're good. Then, please make sure your | ||
problem really is with xml2js. It is? Okay, then I'll look at it. Send me a | ||
problem really is with `xml2js`. It is? Okay, then I'll look at it. Send me a | ||
mail and we can talk. Please don't open issues, as I don't think that is the | ||
proper forum for support problems. Some problems might as well really be bugs | ||
in xml2js, if so I'll let you know to open an issue instead :) | ||
in `xml2js`, if so I'll let you know to open an issue instead :) | ||
But if you know you really found a bug, feel free to open an issue instead. |
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
110920
580
391
+ Addedsax@1.4.1(transitive)
- Removedsax@0.6.1(transitive)
Updatedsax@>=0.6.0