@markuplint/spec-generator 4.6.4 → 4.6.6

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/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [4.6.4](https://github.com/markuplint/markuplint/compare/@markuplint/spec-generator@4.6.3...@markuplint/spec-generator@4.6.4) (2024-06-09)
6
+ ## [4.6.6](https://github.com/markuplint/markuplint/compare/@markuplint/spec-generator@4.6.5...@markuplint/spec-generator@4.6.6) (2024-09-02)
7
7
 
8
8
  **Note:** Version bump only for package @markuplint/spec-generator
9
9
 
@@ -11,6 +11,14 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
+ ## [4.6.5](https://github.com/markuplint/markuplint/compare/@markuplint/spec-generator@4.6.4...@markuplint/spec-generator@4.6.5) (2024-06-25)
15
+
16
+ **Note:** Version bump only for package @markuplint/spec-generator
17
+
18
+ ## [4.6.4](https://github.com/markuplint/markuplint/compare/@markuplint/spec-generator@4.6.3...@markuplint/spec-generator@4.6.4) (2024-06-09)
19
+
20
+ **Note:** Version bump only for package @markuplint/spec-generator
21
+
14
22
  ## [4.6.3](https://github.com/markuplint/markuplint/compare/@markuplint/spec-generator@4.6.2...@markuplint/spec-generator@4.6.3) (2024-05-28)
15
23
 
16
24
  **Note:** Version bump only for package @markuplint/spec-generator
package/lib/fetch.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="cheerio" />
2
1
  export declare function fetch(url: string): Promise<cheerio.Root>;
3
2
  export declare function fetchText(url: string): Promise<string>;
4
3
  export declare function getReferences(): string[];
package/lib/fetch.js CHANGED
@@ -1,4 +1,4 @@
1
- import cheerio from 'cheerio';
1
+ import * as cheerio from 'cheerio';
2
2
  import { Bar, Presets } from 'cli-progress';
3
3
  const cache = new Map();
4
4
  const domCache = new Map();
package/lib/scraping.js CHANGED
@@ -152,7 +152,6 @@ $, heading, tagName) {
152
152
  const $dt = $(dt);
153
153
  const name = $dt.find('code').text().trim();
154
154
  if (!name) {
155
- null;
156
155
  continue;
157
156
  }
158
157
  const $myHeading = getItsHeading($dt);
package/lib/utils.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="cheerio" />
2
1
  type HasName = {
3
2
  readonly name: string;
4
3
  };
package/lib/utils.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* global cheerio */
2
2
  export function nameCompare(a, b) {
3
- const nameA = typeof a === 'string' ? a : a.name?.toUpperCase() ?? String(a);
4
- const nameB = typeof b === 'string' ? b : b.name?.toUpperCase() ?? String(b);
3
+ const nameA = typeof a === 'string' ? a : (a.name?.toUpperCase() ?? String(a));
4
+ const nameB = typeof b === 'string' ? b : (b.name?.toUpperCase() ?? String(b));
5
5
  if (nameA < nameB) {
6
6
  return -1;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/spec-generator",
3
- "version": "4.6.4",
3
+ "version": "4.6.6",
4
4
  "description": "Generates @markuplint/html-spec",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -22,18 +22,18 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@types/cheerio": "0.22.35",
25
- "ajv": "8.16.0",
26
- "cheerio": "1.0.0-rc.12",
25
+ "ajv": "8.17.1",
26
+ "cheerio": "1.0.0",
27
27
  "cli-progress": "3.12.0",
28
- "fast-xml-parser": "4.4.0",
29
- "glob": "10.4.1",
28
+ "fast-xml-parser": "4.4.1",
29
+ "glob": "11.0.0",
30
30
  "strip-json-comments": "5.0.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@markuplint/ml-spec": "4.6.2",
34
- "@markuplint/test-tools": "4.5.4",
35
- "@types/cli-progress": "3.11.5",
36
- "type-fest": "4.20.0"
33
+ "@markuplint/ml-spec": "4.6.4",
34
+ "@markuplint/test-tools": "4.5.6",
35
+ "@types/cli-progress": "3.11.6",
36
+ "type-fest": "4.26.0"
37
37
  },
38
- "gitHead": "0200dc1f7b1ffa7455b889696153e25dbae8241f"
38
+ "gitHead": "77cd5a25d5cf28c83253b7bfe02cd25b54e236b0"
39
39
  }