html-entities
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -70,2 +70,3 @@ "use strict"; | ||
var fromCharCode = String.fromCharCode; | ||
var outOfBoundsChar = fromCharCode(65533); | ||
function decode(text, _a) { | ||
@@ -88,3 +89,3 @@ var _b = _a === void 0 ? defaultDecodeOptions : _a, _c = _b.level, level = _c === void 0 ? 'all' : _c, _d = _b.scope, scope = _d === void 0 ? level === 'xml' ? 'strict' : 'body' : _d; | ||
return code >= 0x10ffff | ||
? entity | ||
? outOfBoundsChar | ||
: code > 65535 | ||
@@ -91,0 +92,0 @@ ? surrogate_pairs_1.fromCodePoint(code) |
{ | ||
"name": "html-entities", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Fastest HTML entities encode/decode library.", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"chai": "^4.2.0", | ||
"entities": "^2.1.0", | ||
"entities": "^2.2.0", | ||
"eslint": "^7.12.1", | ||
@@ -32,0 +32,0 @@ "eslint-config-prettier": "^6.15.0", |
152930
4564