@markuplint/ml-core 3.6.1 → 3.7.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.
Files changed (2) hide show
  1. package/lib/ml-core.d.ts +22 -11
  2. package/package.json +3 -3
package/lib/ml-core.d.ts CHANGED
@@ -3,17 +3,28 @@ 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
- readonly sourceCode: string;
7
- readonly filename: string;
8
- readonly debug?: boolean;
6
+ readonly sourceCode: string;
7
+ readonly filename: string;
8
+ readonly debug?: boolean;
9
9
  } & MLFabric;
10
10
  export declare class MLCore {
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;
11
+ #private;
12
+ constructor({
13
+ parser,
14
+ sourceCode,
15
+ ruleset,
16
+ rules,
17
+ locale,
18
+ schemas,
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;
19
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/ml-core",
3
- "version": "3.6.1",
3
+ "version": "3.7.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>",
@@ -26,7 +26,7 @@
26
26
  "@markuplint/config-presets": "3.5.0",
27
27
  "@markuplint/html-parser": "3.6.1",
28
28
  "@markuplint/html-spec": "3.6.1",
29
- "@markuplint/i18n": "3.6.0",
29
+ "@markuplint/i18n": "3.7.0",
30
30
  "@markuplint/ml-ast": "3.1.0",
31
31
  "@markuplint/ml-config": "3.6.1",
32
32
  "@markuplint/ml-spec": "3.6.1",
@@ -40,5 +40,5 @@
40
40
  "@types/debug": "^4.1.7",
41
41
  "type-fest": "^3.6.1"
42
42
  },
43
- "gitHead": "3cdf5a088b2da03773d5d4461d0e65ec32290a00"
43
+ "gitHead": "884e8dbf60ec2a350761d5cda3cdc0725881b9dc"
44
44
  }