@markuplint/ml-core 4.0.0-dev.23 → 4.0.0-rc.0

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.
@@ -1,10 +1,12 @@
1
1
  export async function getPreset(name) {
2
- const res = await fetch(`@markuplint/config-presets/preset.${name}.json`).catch(() =>
3
- // eslint-disable-next-line unicorn/error-message
4
- new Error());
5
- if (res instanceof Error) {
6
- throw new ReferenceError(`Preset markuplint:${name} is not found`);
7
- }
8
- const json = await res.json();
9
- return json;
2
+ const res = await fetch(`@markuplint/config-presets/preset.${name}.json`).catch(
3
+ () =>
4
+ // eslint-disable-next-line unicorn/error-message
5
+ new Error(),
6
+ );
7
+ if (res instanceof Error) {
8
+ throw new ReferenceError(`Preset markuplint:${name} is not found`);
9
+ }
10
+ const json = await res.json();
11
+ return json;
10
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/ml-core",
3
- "version": "4.0.0-dev.23+d6f2aa9bc",
3
+ "version": "4.0.0-rc.0",
4
4
  "description": "The core module of markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -28,19 +28,19 @@
28
28
  "./lib/configs.js": "./lib/configs.browser.js"
29
29
  },
30
30
  "dependencies": {
31
- "@markuplint/config-presets": "4.0.0-dev.23+d6f2aa9bc",
32
- "@markuplint/html-parser": "4.0.0-dev.23+d6f2aa9bc",
33
- "@markuplint/html-spec": "4.0.0-dev.23+d6f2aa9bc",
34
- "@markuplint/i18n": "4.0.0-dev.23+d6f2aa9bc",
35
- "@markuplint/ml-ast": "4.0.0-dev.23+d6f2aa9bc",
36
- "@markuplint/ml-config": "4.0.0-dev.23+d6f2aa9bc",
37
- "@markuplint/ml-spec": "4.0.0-dev.23+d6f2aa9bc",
38
- "@markuplint/parser-utils": "4.0.0-dev.23+d6f2aa9bc",
39
- "@markuplint/selector": "4.0.0-dev.23+d6f2aa9bc",
31
+ "@markuplint/config-presets": "4.0.0-rc.0",
32
+ "@markuplint/html-parser": "4.0.0-rc.0",
33
+ "@markuplint/html-spec": "4.0.0-rc.0",
34
+ "@markuplint/i18n": "4.0.0-rc.0",
35
+ "@markuplint/ml-ast": "4.0.0-rc.0",
36
+ "@markuplint/ml-config": "4.0.0-rc.0",
37
+ "@markuplint/ml-spec": "4.0.0-rc.0",
38
+ "@markuplint/parser-utils": "4.0.0-rc.0",
39
+ "@markuplint/selector": "4.0.0-rc.0",
40
40
  "@types/debug": "^4.1.12",
41
41
  "debug": "^4.3.4",
42
42
  "is-plain-object": "^5.0.0",
43
- "type-fest": "^4.9.0"
43
+ "type-fest": "^4.10.2"
44
44
  },
45
- "gitHead": "d6f2aa9bc287768466f23b5340e4e0eecfa30d59"
45
+ "gitHead": "3fdeb45cb69ed52b3a215a7520cea1181601443f"
46
46
  }