all-named-html-entities 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "all-named-html-entities",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "List of all named HTML entities",
5
5
  "keywords": [
6
6
  "all",
@@ -26,6 +26,7 @@
26
26
  "email": "roy@codsen.com",
27
27
  "url": "https://codsen.com"
28
28
  },
29
+ "sideEffects": false,
29
30
  "type": "module",
30
31
  "exports": {
31
32
  "types": "./types/index.d.ts",
@@ -40,8 +41,10 @@
40
41
  "devtest": "c8 npm run unit && npm run examples && npm run lint",
41
42
  "dts": "rollup -c && biome format --write --config-path=../../biome.json --vcs-enabled=false --use-editorconfig=false types/index.d.ts",
42
43
  "examples": "node '../../ops/scripts/run-examples.js'",
43
- "lect": "node '../../ops/lect/lect.js'",
44
- "lect:check": "node '../../ops/lect/lect.js' --check",
44
+ "generate": "node scripts/generate.js",
45
+ "generate:check": "node scripts/generate.js --check",
46
+ "lect": "node '../../ops/lect/lect.js' && npm run generate",
47
+ "lect:check": "node '../../ops/lect/lect.js' --check && npm run generate:check",
45
48
  "lint": "biome lint --error-on-warnings . && npm run typecheck",
46
49
  "lint:fix": "biome lint --write --error-on-warnings . && npm run typecheck",
47
50
  "perf": "node perf/check.js",
package/types/index.d.ts CHANGED
@@ -1,3 +1,40 @@
1
+ /*!
2
+ * Generated from WHATWG HTML entities.json (2026-09-05).
3
+ * Source: https://html.spec.whatwg.org/entities.json
4
+ * SHA-256: d741d877ac77c4194c4ad526b5b4a19aef8dfe411ab840a466891cdbb9f362e6
5
+ * Copyright © WHATWG (Apple, Google, Mozilla, Microsoft).
6
+ * BSD 3-Clause License
7
+ *
8
+ * Redistribution and use in source and binary forms, with or without
9
+ * modification, are permitted provided that the following conditions are met:
10
+ *
11
+ * 1. Redistributions of source code must retain the above copyright notice, this
12
+ * list of conditions and the following disclaimer.
13
+ *
14
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
15
+ * this list of conditions and the following disclaimer in the documentation
16
+ * and/or other materials provided with the distribution.
17
+ *
18
+ * 3. Neither the name of the copyright holder nor the names of its
19
+ * contributors may be used to endorse or promote products derived from
20
+ * this software without specific prior written permission.
21
+ *
22
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
26
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
+ */
33
+ declare const allNamedEntitiesSetOnly: Set<string>;
34
+ declare const allNamedEntitiesSetOnlyCaseInsensitive: Set<string>;
35
+ declare const minLength = 2;
36
+ declare const maxLength = 31;
37
+
1
38
  type EntityLookup = Record<string, string>;
2
39
  type EntityAffixLookup = Record<string, Record<string, string[]>>;
3
40
  type UncertainEntityLookup = Record<
@@ -15,11 +52,7 @@ declare const entEndsWith: EntityAffixLookup;
15
52
  declare const entStartsWithCaseInsensitive: EntityAffixLookup;
16
53
  declare const entEndsWithCaseInsensitive: EntityAffixLookup;
17
54
  declare const uncertain: UncertainEntityLookup;
18
- declare const allNamedEntitiesSetOnly: Set<string>;
19
- declare const allNamedEntitiesSetOnlyCaseInsensitive: Set<string>;
20
55
  declare function decode(ent: string): string | null;
21
- declare const minLength = 2;
22
- declare const maxLength = 31;
23
56
 
24
57
  export {
25
58
  allNamedEntities,