Comparing version 4.1.0 to 4.1.1
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.encodeHTMLTrieRe = exports.getCodePoint = void 0; | ||
var encode_html_1 = __importDefault(require("./generated/encode-html")); | ||
var encode_html_js_1 = __importDefault(require("./generated/encode-html.js")); | ||
function isHighSurrugate(c) { | ||
@@ -34,3 +34,3 @@ return (c & 64512 /* Mask */) === 55296 /* High */; | ||
var char = str.charCodeAt(i); | ||
var next = encode_html_1.default.get(char); | ||
var next = encode_html_js_1.default.get(char); | ||
if (next != null) { | ||
@@ -37,0 +37,0 @@ if (typeof next !== "string") { |
@@ -1,2 +0,2 @@ | ||
import htmlTrie from "./generated/encode-html"; | ||
import htmlTrie from "./generated/encode-html.js"; | ||
function isHighSurrugate(c) { | ||
@@ -3,0 +3,0 @@ return (c & 64512 /* Mask */) === 55296 /* High */; |
{ | ||
"name": "entities", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Encode & decode XML and HTML entities with ease & speed", | ||
@@ -5,0 +5,0 @@ "author": "Felix Boehm <me@feedic.com>", |
@@ -7,3 +7,3 @@ # entities [![NPM version](http://img.shields.io/npm/v/entities.svg)](https://npmjs.org/package/entities) [![Downloads](https://img.shields.io/npm/dm/entities.svg)](https://npmjs.org/package/entities) [![Build Status](http://img.shields.io/travis/fb55/entities.svg)](http://travis-ci.org/fb55/entities) [![Coverage](http://img.shields.io/coveralls/fb55/entities.svg)](https://coveralls.io/r/fb55/entities) | ||
- ⚔️ Battle tested: `entities` is used by many popular libraries; eg. | ||
- 😇 Tried and true: `entities` is used by many popular libraries; eg. | ||
[`htmlparser2`](https://github.com/fb55/htmlparser2), the official | ||
@@ -10,0 +10,0 @@ [AWS SDK](https://github.com/aws/aws-sdk-js-v3) and |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
724845