@markuplint/spec-generator 4.6.5 → 4.6.7

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,15 @@
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.5](https://github.com/markuplint/markuplint/compare/@markuplint/spec-generator@4.6.4...@markuplint/spec-generator@4.6.5) (2024-06-25)
6
+ ## [4.6.7](https://github.com/markuplint/markuplint/compare/@markuplint/spec-generator@4.6.6...@markuplint/spec-generator@4.6.7) (2024-09-23)
7
+
8
+ **Note:** Version bump only for package @markuplint/spec-generator
9
+
10
+
11
+
12
+
13
+
14
+ ## [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
15
 
8
16
  **Note:** Version bump only for package @markuplint/spec-generator
9
17
 
@@ -11,6 +19,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
19
 
12
20
 
13
21
 
22
+ ## [4.6.5](https://github.com/markuplint/markuplint/compare/@markuplint/spec-generator@4.6.4...@markuplint/spec-generator@4.6.5) (2024-06-25)
23
+
24
+ **Note:** Version bump only for package @markuplint/spec-generator
25
+
14
26
  ## [4.6.4](https://github.com/markuplint/markuplint/compare/@markuplint/spec-generator@4.6.3...@markuplint/spec-generator@4.6.4) (2024-06-09)
15
27
 
16
28
  **Note:** Version bump only for package @markuplint/spec-generator
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.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.5",
3
+ "version": "4.6.7",
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.2",
28
+ "fast-xml-parser": "4.5.0",
29
+ "glob": "11.0.0",
30
30
  "strip-json-comments": "5.0.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@markuplint/ml-spec": "4.6.3",
34
- "@markuplint/test-tools": "4.5.5",
35
- "@types/cli-progress": "3.11.5",
36
- "type-fest": "4.20.1"
33
+ "@markuplint/ml-spec": "4.7.0",
34
+ "@markuplint/test-tools": "4.5.7",
35
+ "@types/cli-progress": "3.11.6",
36
+ "type-fest": "4.26.1"
37
37
  },
38
- "gitHead": "05fdca254661ec335ff0cae4c6a11db164b032b9"
38
+ "gitHead": "05d2eabfcc41b67847c24049f12dd2b9f5ca6485"
39
39
  }