diff --git a/package-lock.json b/package-lock.json index 26a9cf47..169ace89 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "domelementtype": "^2.3.0", "domhandler": "^5.0.3", "domutils": "^3.1.0", - "entities": "^5.0.0" + "entities": "^6.0.0" }, "devDependencies": { "@types/node": "^22.10.2", @@ -2007,10 +2007,9 @@ } }, "node_modules/entities": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-5.0.0.tgz", - "integrity": "sha512-BeJFvFRJddxobhvEdm5GqHzRV/X+ACeuw0/BuuxsCh1EUZcAIz8+kYmBp/LrQuloy6K1f3a0M7+IhmZ7QnkISA==", - "license": "BSD-2-Clause", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.0.tgz", + "integrity": "sha512-aKstq2TDOndCn4diEyp9Uq/Flu2i1GlLkc6XIDQSDMuaFE3OPW5OphLCyQ5SpSJZTb4reN+kTcYru5yIfXoRPw==", "engines": { "node": ">=0.12" }, diff --git a/package.json b/package.json index 48083c8b..be544892 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "domelementtype": "^2.3.0", "domhandler": "^5.0.3", "domutils": "^3.1.0", - "entities": "^5.0.0" + "entities": "^6.0.0" }, "devDependencies": { "@types/node": "^22.10.2", diff --git a/src/Parser.ts b/src/Parser.ts index e23d530f..ee390c11 100644 --- a/src/Parser.ts +++ b/src/Parser.ts @@ -1,5 +1,5 @@ import Tokenizer, { type Callbacks, QuoteType } from "./Tokenizer.js"; -import { fromCodePoint } from "entities/dist/decode.js"; +import { fromCodePoint } from "entities/decode"; const formTags = new Set([ "input", diff --git a/src/Tokenizer.ts b/src/Tokenizer.ts index 453a4fef..d5db624d 100644 --- a/src/Tokenizer.ts +++ b/src/Tokenizer.ts @@ -3,7 +3,7 @@ import { DecodingMode, htmlDecodeTree, xmlDecodeTree, -} from "entities/dist/decode.js"; +} from "entities/decode"; const enum CharCodes { Tab = 0x9, // "\t"