html-validate 8.22.0 → 9.0.0-rc.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/dist/cjs/core.js +6 -2
- package/dist/cjs/core.js.map +1 -1
- package/dist/es/core.js +6 -2
- package/dist/es/core.js.map +1 -1
- package/dist/types/browser.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/cjs/core.js
CHANGED
|
@@ -12805,7 +12805,11 @@ class HtmlValidate {
|
|
|
12805
12805
|
* @param configOverride - Configuration to apply last.
|
|
12806
12806
|
*/
|
|
12807
12807
|
getConfigForSync(filename, configOverride) {
|
|
12808
|
-
|
|
12808
|
+
const config = this.configLoader.getConfigFor(filename, configOverride);
|
|
12809
|
+
if (isThenable(config)) {
|
|
12810
|
+
throw new UserError("Cannot use asynchronous config loader with synchronous api");
|
|
12811
|
+
}
|
|
12812
|
+
return config;
|
|
12809
12813
|
}
|
|
12810
12814
|
/**
|
|
12811
12815
|
* Get current configuration loader.
|
|
@@ -12843,7 +12847,7 @@ class HtmlValidate {
|
|
|
12843
12847
|
}
|
|
12844
12848
|
|
|
12845
12849
|
const name = "html-validate";
|
|
12846
|
-
const version = "
|
|
12850
|
+
const version = "9.0.0-rc.1";
|
|
12847
12851
|
const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
|
|
12848
12852
|
|
|
12849
12853
|
function definePlugin(plugin) {
|