markuplint 3.10.0 → 3.11.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.
- package/lib/api/ml-engine.js +18 -2
- package/package.json +17 -17
package/lib/api/ml-engine.js
CHANGED
|
@@ -151,7 +151,23 @@ class MLEngine extends strict_event_emitter_1.Emitter {
|
|
|
151
151
|
}
|
|
152
152
|
async provide(cache = true) {
|
|
153
153
|
var _a, _b, _c, _d;
|
|
154
|
-
|
|
154
|
+
let configSet;
|
|
155
|
+
try {
|
|
156
|
+
configSet = await this.resolveConfig(cache);
|
|
157
|
+
}
|
|
158
|
+
catch (error) {
|
|
159
|
+
if (error instanceof Error) {
|
|
160
|
+
configSet = {
|
|
161
|
+
config: {},
|
|
162
|
+
plugins: [],
|
|
163
|
+
files: new Set(),
|
|
164
|
+
errs: [error],
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
throw error;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
155
171
|
fileLog('Fetched Config files: %O', configSet.files);
|
|
156
172
|
fileLog('Resolved Config: %O', configSet.config);
|
|
157
173
|
fileLog('Resolved Plugins: %O', configSet.plugins);
|
|
@@ -283,5 +299,5 @@ class MLEngine extends strict_event_emitter_1.Emitter {
|
|
|
283
299
|
return this.createCore(fabric);
|
|
284
300
|
}
|
|
285
301
|
}
|
|
286
|
-
exports.default = MLEngine;
|
|
287
302
|
_MLEngine_configProvider = new WeakMap(), _MLEngine_core = new WeakMap(), _MLEngine_file = new WeakMap(), _MLEngine_options = new WeakMap(), _MLEngine_watcher = new WeakMap();
|
|
303
|
+
exports.default = MLEngine;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markuplint",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.0",
|
|
4
4
|
"description": "An HTML linter for all markup developers",
|
|
5
5
|
"author": "Yusuke Hirao",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,22 +20,22 @@
|
|
|
20
20
|
"clean": "tsc --build --clean"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@markuplint/create-rule-helper": "3.
|
|
24
|
-
"@markuplint/file-resolver": "3.
|
|
25
|
-
"@markuplint/html-parser": "3.
|
|
26
|
-
"@markuplint/html-spec": "3.
|
|
27
|
-
"@markuplint/i18n": "3.
|
|
28
|
-
"@markuplint/ml-ast": "3.
|
|
29
|
-
"@markuplint/ml-config": "3.
|
|
30
|
-
"@markuplint/ml-core": "3.
|
|
31
|
-
"@markuplint/ml-spec": "3.
|
|
32
|
-
"@markuplint/rules": "3.
|
|
33
|
-
"@markuplint/shared": "3.
|
|
23
|
+
"@markuplint/create-rule-helper": "3.11.0",
|
|
24
|
+
"@markuplint/file-resolver": "3.11.0",
|
|
25
|
+
"@markuplint/html-parser": "3.9.0",
|
|
26
|
+
"@markuplint/html-spec": "3.10.0",
|
|
27
|
+
"@markuplint/i18n": "3.9.0",
|
|
28
|
+
"@markuplint/ml-ast": "3.2.0",
|
|
29
|
+
"@markuplint/ml-config": "3.10.0",
|
|
30
|
+
"@markuplint/ml-core": "3.11.0",
|
|
31
|
+
"@markuplint/ml-spec": "3.10.0",
|
|
32
|
+
"@markuplint/rules": "3.11.0",
|
|
33
|
+
"@markuplint/shared": "3.7.0",
|
|
34
34
|
"@types/cli-color": "^2.0.2",
|
|
35
|
-
"@types/debug": "^4.1.
|
|
35
|
+
"@types/debug": "^4.1.8",
|
|
36
36
|
"@types/has-yarn": "^1.0.1",
|
|
37
37
|
"@types/meow": "^6.0.0",
|
|
38
|
-
"@types/uuid": "^9.0.
|
|
38
|
+
"@types/uuid": "^9.0.2",
|
|
39
39
|
"chokidar": "^3.5.3",
|
|
40
40
|
"cli-color": "^2.0.3",
|
|
41
41
|
"debug": "^4.3.4",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"os-locale": "5",
|
|
51
51
|
"strict-event-emitter": "^0.5.0",
|
|
52
52
|
"strip-ansi": "6",
|
|
53
|
-
"tslib": "^2.5.
|
|
54
|
-
"type-fest": "^3.
|
|
53
|
+
"tslib": "^2.5.3",
|
|
54
|
+
"type-fest": "^3.11.1",
|
|
55
55
|
"uuid": "^9.0.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "9547b8dca20736a93e4d01af2d61bee314ba5718"
|
|
58
58
|
}
|