sax 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/sax.js +3 -0
  2. package/package.json +1 -1
package/lib/sax.js CHANGED
@@ -988,6 +988,9 @@
988
988
  if (chunk === null) {
989
989
  return end(parser)
990
990
  }
991
+ if (typeof chunk === 'object') {
992
+ chunk = chunk.toString()
993
+ }
991
994
  var i = 0
992
995
  var c = ''
993
996
  while (true) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "sax",
3
3
  "description": "An evented streaming XML parser in JavaScript",
4
4
  "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
5
- "version": "1.1.5",
5
+ "version": "1.1.6",
6
6
  "main": "lib/sax.js",
7
7
  "license": "ISC",
8
8
  "scripts": {