Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

entities

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

entities - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

4

lib/encode-trie.js

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc