all-named-html-entities 2.1.13 → 2.1.14

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": "2.1.13",
3
+ "version": "2.1.14",
4
4
  "description": "List of all named HTML entities",
5
5
  "keywords": [
6
6
  "all",
@@ -41,7 +41,7 @@
41
41
  "examples": "node '../../ops/scripts/run-examples.js'",
42
42
  "lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
43
43
  "letspublish": "yarn publish || :",
44
- "lint": "eslint . --fix",
44
+ "lint": "eslint . --ext .js --ext .ts --fix",
45
45
  "perf": "node perf/check.js",
46
46
  "prepare": "echo 'ready'",
47
47
  "prettier": "prettier",
@@ -1,22 +0,0 @@
1
- /* eslint-disable no-unused-vars */
2
- // Quick Take
3
-
4
- import { strict as assert } from "assert";
5
-
6
- import {
7
- allNamedEntities,
8
- allNamedEntitiesSetOnly,
9
- allNamedEntitiesSetOnlyCaseInsensitive,
10
- entStartsWith,
11
- entEndsWith,
12
- entStartsWithCaseInsensitive,
13
- entEndsWithCaseInsensitive,
14
- brokenNamedEntities,
15
- decode,
16
- minLength,
17
- maxLength,
18
- uncertain,
19
- } from "../dist/all-named-html-entities.esm.js";
20
-
21
- assert.equal(Object.keys(allNamedEntities).length, 2125);
22
- assert.equal(entStartsWith.A.E[0], "AElig");
@@ -1,14 +0,0 @@
1
- // `allNamedEntities`
2
-
3
- import { strict as assert } from "assert";
4
-
5
- import { allNamedEntities } from "../dist/all-named-html-entities.esm.js";
6
-
7
- // total named entities count:
8
- assert.equal(Object.keys(allNamedEntities).length, 2125);
9
-
10
- // show the first-one:
11
- assert.equal(Object.keys(allNamedEntities).sort()[0], "AElig");
12
-
13
- // Æ decoded:
14
- assert.equal(allNamedEntities.AElig, "Æ");
@@ -1,14 +0,0 @@
1
- // `entEndsWith`
2
-
3
- import { strict as assert } from "assert";
4
-
5
- import { entEndsWith } from "../dist/all-named-html-entities.esm.js";
6
-
7
- // here's list of named HTML entities which end with character "2":
8
- assert.deepEqual(entEndsWith["2"], {
9
- 1: ["blk12", "frac12"],
10
- p: ["sup2"],
11
- });
12
-
13
- // query directly
14
- assert.equal(entEndsWith["2"].p[0], "sup2");
@@ -1,28 +0,0 @@
1
- // `entStartsWith`
2
-
3
- import { strict as assert } from "assert";
4
-
5
- import { entStartsWith } from "../dist/all-named-html-entities.esm.js";
6
-
7
- // for perf reasons, they're pre-grouped by first two letters
8
- assert.deepEqual(entStartsWith.A, {
9
- a: ["Aacute"],
10
- b: ["Abreve"],
11
- c: ["Acirc", "Acy"],
12
- E: ["AElig"],
13
- f: ["Afr"],
14
- g: ["Agrave"],
15
- l: ["Alpha"],
16
- m: ["Amacr"],
17
- M: ["AMP"],
18
- n: ["And"],
19
- o: ["Aogon", "Aopf"],
20
- p: ["ApplyFunction"],
21
- r: ["Aring"],
22
- s: ["Ascr", "Assign"],
23
- t: ["Atilde"],
24
- u: ["Auml"],
25
- });
26
-
27
- // query directly
28
- assert.equal(entStartsWith.A.E[0], "AElig");
@@ -1,18 +0,0 @@
1
- // `entStartsWithCaseInsensitive`
2
-
3
- import { strict as assert } from "assert";
4
-
5
- import { entStartsWithCaseInsensitive } from "../dist/all-named-html-entities.esm.js";
6
-
7
- // case-insensitive "entStartsWithCaseInsensitive" is useful
8
- // when looking for possibly mis-typed entities; emlint uses it
9
-
10
- // which entities, lowercased, start with "j"?
11
- assert.deepEqual(entStartsWithCaseInsensitive.j, {
12
- c: ["jcirc", "jcy"],
13
- f: ["jfr"],
14
- m: ["jmath"],
15
- o: ["jopf"],
16
- s: ["jscr", "jsercy"],
17
- u: ["jukcy"],
18
- });