@markuplint/ml-core 4.0.0 → 4.0.1
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/lib/ml-core.d.ts +1 -1
- package/package.json +3 -3
- package/lib/configs.browser.d.ts +0 -2
- package/lib/configs.browser.js +0 -12
package/lib/ml-core.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type MLCoreParams = {
|
|
|
10
10
|
export declare class MLCore {
|
|
11
11
|
#private;
|
|
12
12
|
constructor({ parser, sourceCode, ruleset, rules, locale, schemas, parserOptions, pretenders, filename, debug, configErrors, }: MLCoreParams);
|
|
13
|
-
get document():
|
|
13
|
+
get document(): Document<RuleConfigValue, PlainData> | ParserError;
|
|
14
14
|
setCode(sourceCode: string): void;
|
|
15
15
|
update({ parser, ruleset, rules, locale, schemas, parserOptions, configErrors }: Partial<MLFabric>): void;
|
|
16
16
|
verify(fix?: boolean): Promise<Violation[]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/ml-core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
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>",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@markuplint/config-presets": "4.0.0",
|
|
32
32
|
"@markuplint/html-parser": "4.0.0",
|
|
33
|
-
"@markuplint/html-spec": "4.0.
|
|
33
|
+
"@markuplint/html-spec": "4.0.1",
|
|
34
34
|
"@markuplint/i18n": "4.0.0",
|
|
35
35
|
"@markuplint/ml-ast": "4.0.0",
|
|
36
36
|
"@markuplint/ml-config": "4.0.0",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"is-plain-object": "^5.0.0",
|
|
43
43
|
"type-fest": "^4.10.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "21cc70a0ea8456cd53de9aaf242aa8f0452f0490"
|
|
46
46
|
}
|
package/lib/configs.browser.d.ts
DELETED
package/lib/configs.browser.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export async function getPreset(name) {
|
|
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;
|
|
12
|
-
}
|