@markuplint/ml-core 3.6.0 → 3.6.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 +11 -22
- package/package.json +8 -8
package/lib/ml-core.d.ts
CHANGED
|
@@ -3,28 +3,17 @@ import type { PlainData, RuleConfigValue, Violation } from '@markuplint/ml-confi
|
|
|
3
3
|
import { ParserError } from '@markuplint/parser-utils';
|
|
4
4
|
import { Document } from './ml-dom';
|
|
5
5
|
export type MLCoreParams = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
readonly sourceCode: string;
|
|
7
|
+
readonly filename: string;
|
|
8
|
+
readonly debug?: boolean;
|
|
9
9
|
} & MLFabric;
|
|
10
10
|
export declare class MLCore {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
parserOptions,
|
|
20
|
-
pretenders,
|
|
21
|
-
filename,
|
|
22
|
-
debug,
|
|
23
|
-
}: MLCoreParams);
|
|
24
|
-
get document(): ParserError | Document<RuleConfigValue, PlainData>;
|
|
25
|
-
setCode(sourceCode: string): void;
|
|
26
|
-
update({ parser, ruleset, rules, locale, schemas, parserOptions }: Partial<MLFabric>): void;
|
|
27
|
-
verify(fix?: boolean): Promise<Violation[]>;
|
|
28
|
-
private _createDocument;
|
|
29
|
-
private _parse;
|
|
11
|
+
#private;
|
|
12
|
+
constructor({ parser, sourceCode, ruleset, rules, locale, schemas, parserOptions, pretenders, filename, debug, }: MLCoreParams);
|
|
13
|
+
get document(): ParserError | Document<RuleConfigValue, PlainData>;
|
|
14
|
+
setCode(sourceCode: string): void;
|
|
15
|
+
update({ parser, ruleset, rules, locale, schemas, parserOptions }: Partial<MLFabric>): void;
|
|
16
|
+
verify(fix?: boolean): Promise<Violation[]>;
|
|
17
|
+
private _createDocument;
|
|
18
|
+
private _parse;
|
|
30
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/ml-core",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.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>",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@markuplint/config-presets": "3.5.0",
|
|
27
|
-
"@markuplint/html-parser": "3.6.
|
|
28
|
-
"@markuplint/html-spec": "3.6.
|
|
27
|
+
"@markuplint/html-parser": "3.6.1",
|
|
28
|
+
"@markuplint/html-spec": "3.6.1",
|
|
29
29
|
"@markuplint/i18n": "3.6.0",
|
|
30
30
|
"@markuplint/ml-ast": "3.1.0",
|
|
31
|
-
"@markuplint/ml-config": "3.6.
|
|
32
|
-
"@markuplint/ml-spec": "3.6.
|
|
33
|
-
"@markuplint/parser-utils": "3.6.
|
|
34
|
-
"@markuplint/selector": "3.6.
|
|
31
|
+
"@markuplint/ml-config": "3.6.1",
|
|
32
|
+
"@markuplint/ml-spec": "3.6.1",
|
|
33
|
+
"@markuplint/parser-utils": "3.6.1",
|
|
34
|
+
"@markuplint/selector": "3.6.1",
|
|
35
35
|
"debug": "^4.3.4",
|
|
36
36
|
"is-plain-object": "^5.0.0",
|
|
37
37
|
"tslib": "^2.4.1"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@types/debug": "^4.1.7",
|
|
41
41
|
"type-fest": "^3.6.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "3cdf5a088b2da03773d5d4461d0e65ec32290a00"
|
|
44
44
|
}
|