Comparing version 1.1.4 to 1.1.5
@@ -971,2 +971,10 @@ ;(function (sax) { // wrapper for non-node envs | ||
function charAt (chunk, i) { | ||
var result = '' | ||
if (i < chunk.length) { | ||
result = chunk.charAt(i) | ||
} | ||
return result | ||
} | ||
function write (chunk) { | ||
@@ -987,3 +995,3 @@ var parser = this | ||
while (true) { | ||
c = chunk.charAt(i++) | ||
c = charAt(chunk, i++) | ||
parser.c = c | ||
@@ -1019,3 +1027,3 @@ if (!c) { | ||
while (c && c !== '<' && c !== '&') { | ||
c = chunk.charAt(i++) | ||
c = charAt(chunk, i++) | ||
if (c && parser.trackPosition) { | ||
@@ -1022,0 +1030,0 @@ parser.position++ |
@@ -5,9 +5,8 @@ { | ||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"main": "lib/sax.js", | ||
"license": "ISC", | ||
"scripts": { | ||
"test": "tap test/*.js", | ||
"posttest": "npm run lint", | ||
"lint": "standard -F test/*.js lib/*.js" | ||
"test": "tap test/*.js --cov", | ||
"posttest": "standard -F test/*.js lib/*.js" | ||
}, | ||
@@ -23,4 +22,4 @@ "repository": "git://github.com/isaacs/sax-js.git", | ||
"standard": "^5.3.1", | ||
"tap": "^2.1.1" | ||
"tap": "^5.2.0" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
66349
1442
0