From 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 18:09:58 +0800
Subject: [PATCH] 上报转运调试
---
node_modules/entities/package.json | 170 +++++++++++++++++++++++++++++++++-----------------------
1 files changed, 100 insertions(+), 70 deletions(-)
diff --git a/node_modules/entities/package.json b/node_modules/entities/package.json
index 2e857f8..646220f 100644
--- a/node_modules/entities/package.json
+++ b/node_modules/entities/package.json
@@ -1,90 +1,120 @@
{
"name": "entities",
- "version": "4.5.0",
+ "version": "7.0.1",
"description": "Encode & decode XML and HTML entities with ease & speed",
- "author": "Felix Boehm <me@feedic.com>",
- "funding": "https://github.com/fb55/entities?sponsor=1",
- "sideEffects": false,
"keywords": [
- "entity",
- "decoding",
- "encoding",
- "html",
- "xml",
- "html entities"
+ "html entities",
+ "entity decoder",
+ "entity encoding",
+ "html decoding",
+ "html encoding",
+ "xml decoding",
+ "xml encoding"
],
- "directories": {
- "lib": "lib/"
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/fb55/entities.git"
},
- "main": "lib/index.js",
- "types": "lib/index.d.ts",
- "module": "lib/esm/index.js",
+ "funding": "https://github.com/fb55/entities?sponsor=1",
+ "license": "BSD-2-Clause",
+ "author": "Felix Boehm <me@feedic.com>",
+ "sideEffects": false,
+ "type": "module",
"exports": {
".": {
- "require": "./lib/index.js",
- "import": "./lib/esm/index.js"
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
},
- "./lib/decode.js": {
- "require": "./lib/decode.js",
- "import": "./lib/esm/decode.js"
+ "./decode": {
+ "import": {
+ "types": "./dist/esm/decode.d.ts",
+ "default": "./dist/esm/decode.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/decode.d.ts",
+ "default": "./dist/commonjs/decode.js"
+ }
},
- "./lib/escape.js": {
- "require": "./lib/escape.js",
- "import": "./lib/esm/escape.js"
+ "./escape": {
+ "import": {
+ "types": "./dist/esm/escape.d.ts",
+ "default": "./dist/esm/escape.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/escape.d.ts",
+ "default": "./dist/commonjs/escape.js"
+ }
}
},
+ "main": "./dist/commonjs/index.js",
+ "module": "./dist/esm/index.js",
+ "types": "./dist/commonjs/index.d.ts",
"files": [
- "lib/**/*"
+ "decode.js",
+ "decode.d.ts",
+ "escape.js",
+ "escape.d.ts",
+ "dist",
+ "src",
+ "!**/*.spec.ts"
],
+ "scripts": {
+ "build:docs": "typedoc --hideGenerator src/index.ts",
+ "build:encode-trie": "node --import=tsx scripts/write-encode-map.ts",
+ "build:trie": "node --import=tsx scripts/write-decode-map.ts",
+ "benchmark": "node --import=tsx scripts/benchmark.ts",
+ "format": "npm run format:es && npm run format:biome",
+ "format:es": "npm run lint:es -- --fix",
+ "format:biome": "biome check --fix .",
+ "lint": "npm run lint:es && npm run lint:ts && npm run lint:biome",
+ "lint:es": "eslint . --ignore-path .gitignore",
+ "lint:biome": "biome check .",
+ "lint:ts": "tsc --noEmit",
+ "prepublishOnly": "tshy",
+ "test": "npm run test:vi && npm run lint",
+ "test:vi": "vitest run"
+ },
+ "devDependencies": {
+ "@biomejs/biome": "^2.3.11",
+ "@types/node": "^25.0.9",
+ "@typescript-eslint/eslint-plugin": "^8.53.1",
+ "@typescript-eslint/parser": "^8.53.1",
+ "@vitest/coverage-v8": "^3.2.4",
+ "@types/he": "^1.2.3",
+ "eslint": "^8.57.1",
+ "eslint-config-biome": "^2.1.3",
+ "eslint-plugin-n": "^17.23.2",
+ "eslint-plugin-unicorn": "^56.0.1",
+ "he": "^1.2.0",
+ "html-entities": "^2.6.0",
+ "parse-entities": "^4.0.2",
+ "tinybench": "^5.1.0",
+ "tshy": "^3.1.0",
+ "tsx": "^4.21.0",
+ "typedoc": "^0.28.16",
+ "typescript": "^5.9.3",
+ "vitest": "^3.2.4"
+ },
"engines": {
"node": ">=0.12"
},
- "devDependencies": {
- "@types/jest": "^28.1.8",
- "@types/node": "^18.15.11",
- "@typescript-eslint/eslint-plugin": "^5.58.0",
- "@typescript-eslint/parser": "^5.58.0",
- "eslint": "^8.38.0",
- "eslint-config-prettier": "^8.8.0",
- "eslint-plugin-node": "^11.1.0",
- "jest": "^28.1.3",
- "prettier": "^2.8.7",
- "ts-jest": "^28.0.8",
- "typedoc": "^0.24.1",
- "typescript": "^5.0.4"
- },
- "scripts": {
- "test": "npm run test:jest && npm run lint",
- "test:jest": "jest",
- "lint": "npm run lint:es && npm run lint:prettier",
- "lint:es": "eslint .",
- "lint:prettier": "npm run prettier -- --check",
- "format": "npm run format:es && npm run format:prettier",
- "format:es": "npm run lint:es -- --fix",
- "format:prettier": "npm run prettier -- --write",
- "prettier": "prettier '**/*.{ts,md,json,yml}'",
- "build": "npm run build:cjs && npm run build:esm",
- "build:cjs": "tsc --sourceRoot https://raw.githubusercontent.com/fb55/entities/$(git rev-parse HEAD)/src/",
- "build:esm": "npm run build:cjs -- --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
- "build:docs": "typedoc --hideGenerator src/index.ts",
- "build:trie": "ts-node scripts/write-decode-map.ts",
- "build:encode-trie": "ts-node scripts/write-encode-map.ts",
- "prepare": "npm run build"
- },
- "repository": {
- "type": "git",
- "url": "git://github.com/fb55/entities.git"
- },
- "license": "BSD-2-Clause",
- "jest": {
- "preset": "ts-jest",
- "coverageProvider": "v8",
- "moduleNameMapper": {
- "^(.*)\\.js$": "$1"
+ "tshy": {
+ "exclude": [
+ "**/*.spec.ts",
+ "**/__fixtures__/*",
+ "**/__tests__/*",
+ "**/__snapshots__/*"
+ ],
+ "exports": {
+ ".": "./src/index.ts",
+ "./decode": "./src/decode.ts",
+ "./escape": "./src/escape.ts"
}
- },
- "prettier": {
- "tabWidth": 4,
- "proseWrap": "always"
}
}
--
Gitblit v1.9.3