all-named-html-entities 2.0.10 → 2.0.13

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.0.10",
3
+ "version": "2.0.13",
4
4
  "description": "List of all named HTML entities",
5
5
  "keywords": [
6
6
  "all",
@@ -35,15 +35,18 @@
35
35
  "scripts": {
36
36
  "build": "node '../../ops/scripts/esbuild.js' && yarn run dts",
37
37
  "dev": "DEV=true node '../../ops/scripts/esbuild.js' && yarn run dts",
38
- "dts": "rollup -c",
38
+ "devtest": "c8 yarn run unit && yarn run examples && yarn run lint",
39
+ "dts": "rollup -c && yarn run prettier 'types/index.d.ts' --write",
39
40
  "examples": "node '../../ops/scripts/run-examples.js'",
40
- "lect": "node '../../ops/lect/lect.js'",
41
+ "lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
41
42
  "letspublish": "yarn publish || :",
42
43
  "lint": "eslint . --fix",
43
44
  "perf": "node perf/check.js",
44
45
  "prepare": "echo 'ready'",
46
+ "prettier": "prettier",
47
+ "prettier:format": "prettier --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern",
45
48
  "pretest": "yarn run lect && yarn run build",
46
- "test": "c8 yarn run unit && yarn run examples && yarn run lint",
49
+ "test": "yarn run devtest",
47
50
  "unit": "uvu test"
48
51
  },
49
52
  "engines": {
@@ -64,6 +67,6 @@
64
67
  }
65
68
  },
66
69
  "devDependencies": {
67
- "type-fest": "^2.8.0"
70
+ "type-fest": "^2.12.2"
68
71
  }
69
72
  }
package/types/index.d.ts CHANGED
@@ -1,6 +1,12 @@
1
- declare type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
1
+ declare type JsonValue =
2
+ | string
3
+ | number
4
+ | boolean
5
+ | null
6
+ | JsonObject
7
+ | JsonArray;
2
8
  declare type JsonObject = {
3
- [Key in string]?: JsonValue;
9
+ [Key in string]?: JsonValue;
4
10
  };
5
11
  declare type JsonArray = JsonValue[];
6
12
  declare const version: string;
@@ -17,4 +23,18 @@ declare function decode(ent: string): string | null;
17
23
  declare const minLength = 2;
18
24
  declare const maxLength = 31;
19
25
 
20
- export { allNamedEntities, allNamedEntitiesSetOnly, allNamedEntitiesSetOnlyCaseInsensitive, brokenNamedEntities, decode, entEndsWith, entEndsWithCaseInsensitive, entStartsWith, entStartsWithCaseInsensitive, maxLength, minLength, uncertain, version };
26
+ export {
27
+ allNamedEntities,
28
+ allNamedEntitiesSetOnly,
29
+ allNamedEntitiesSetOnlyCaseInsensitive,
30
+ brokenNamedEntities,
31
+ decode,
32
+ entEndsWith,
33
+ entEndsWithCaseInsensitive,
34
+ entStartsWith,
35
+ entStartsWithCaseInsensitive,
36
+ maxLength,
37
+ minLength,
38
+ uncertain,
39
+ version,
40
+ };