Socket
Socket
Sign inDemoInstall

sax

Package Overview
Dependencies
0
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.4 to 1.3.0

17

lib/sax.js

@@ -167,2 +167,3 @@ ;(function (sax) { // wrapper for non-node envs

}
if (!Stream) Stream = function () {}

@@ -1486,5 +1487,12 @@ var streamWraps = sax.EVENTS.filter(function (ev) {

if (c === ';') {
parser[buffer] += parseEntity(parser)
parser.entity = ''
parser.state = returnState
if (parser.opt.unparsedEntities) {
var parsedEntity = parseEntity(parser)
parser.entity = ''
parser.state = returnState
parser.write(parsedEntity)
} else {
parser[buffer] += parseEntity(parser)
parser.entity = ''
parser.state = returnState
}
} else if (isMatch(parser.entity.length ? entityBody : entityStart, c)) {

@@ -1501,4 +1509,5 @@ parser.entity += c

default:
default: /* istanbul ignore next */ {
throw new Error(parser, 'Unknown state: ' + parser.state)
}
}

@@ -1505,0 +1514,0 @@ } // while

@@ -5,3 +5,3 @@ {

"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"version": "1.2.4",
"version": "1.3.0",
"main": "lib/sax.js",

@@ -11,3 +11,2 @@ "license": "ISC",

"test": "tap test/*.js --cov -j4",
"posttest": "standard -F test/*.js lib/*.js",
"preversion": "npm test",

@@ -24,5 +23,10 @@ "postversion": "npm publish",

"devDependencies": {
"standard": "^8.6.0",
"tap": "^10.5.1"
"tap": "^15.1.6"
},
"tap": {
"statements": 79,
"branches": 75,
"functions": 80,
"lines": 79
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc