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

micromark-util-decode-numeric-character-reference

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micromark-util-decode-numeric-character-reference - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

13

dev/index.js

@@ -1,3 +0,2 @@

import {codes} from 'micromark-util-symbol/codes.js'
import {values} from 'micromark-util-symbol/values.js'
import {codes, values} from 'micromark-util-symbol'

@@ -29,11 +28,11 @@ /**

// Lone high surrogates and low surrogates.
(code > 55295 && code < 57344) ||
(code > 55_295 && code < 57_344) ||
// Noncharacters.
(code > 64975 && code < 65008) ||
(code > 64_975 && code < 65_008) ||
/* eslint-disable no-bitwise */
(code & 65535) === 65535 ||
(code & 65535) === 65534 ||
(code & 65_535) === 65_535 ||
(code & 65_535) === 65_534 ||
/* eslint-enable no-bitwise */
// Out of range
code > 1114111
code > 1_114_111
) {

@@ -40,0 +39,0 @@ return values.replacementCharacter

@@ -25,9 +25,9 @@ /**

// Lone high surrogates and low surrogates.
(code > 55295 && code < 57344) ||
(code > 55_295 && code < 57_344) ||
// Noncharacters.
(code > 64975 && code < 65008) /* eslint-disable no-bitwise */ ||
(code & 65535) === 65535 ||
(code & 65535) === 65534 /* eslint-enable no-bitwise */ ||
(code > 64_975 && code < 65_008) /* eslint-disable no-bitwise */ ||
(code & 65_535) === 65_535 ||
(code & 65_535) === 65_534 /* eslint-enable no-bitwise */ ||
// Out of range
code > 1114111
code > 1_114_111
) {

@@ -34,0 +34,0 @@ return '\uFFFD'

{
"name": "micromark-util-decode-numeric-character-reference",
"version": "1.1.0",
"version": "2.0.0",
"description": "micromark utility to decode numeric character references",

@@ -34,4 +34,2 @@ "license": "MIT",

"type": "module",
"main": "index.js",
"types": "dev/index.d.ts",
"files": [

@@ -43,3 +41,2 @@ "dev/",

"exports": {
"types": "./dev/index.d.ts",
"development": "./dev/index.js",

@@ -49,3 +46,3 @@ "default": "./index.js"

"dependencies": {
"micromark-util-symbol": "^1.0.0"
"micromark-util-symbol": "^2.0.0"
},

@@ -55,9 +52,3 @@ "scripts": {

},
"xo": false,
"typeCoverage": {
"atLeast": 100,
"detail": true,
"strict": true,
"ignoreCatch": true
}
"xo": false
}

@@ -102,8 +102,11 @@ # micromark-util-decode-numeric-character-reference

Projects maintained by the unified collective are compatible with all maintained
Projects maintained by the unified collective are compatible with maintained
versions of Node.js.
As of now, that is Node.js 16+.
Our projects sometimes work with older versions, but this is not guaranteed.
This package works with `micromark` version 3+.
When we cut a new major release, we drop support for unmaintained versions of
Node.
This means we try to keep the current release line,
`micromark-util-decode-numeric-character-reference@^2`, compatible with
Node.js 16.
This package works with `micromark@^3`.

@@ -110,0 +113,0 @@ ## Security

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