html-validate 8.19.1 → 8.20.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/dist/cjs/core.js +35 -1
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/jest-diff.js.map +1 -1
- package/dist/cjs/tsdoc-metadata.json +1 -1
- package/dist/es/core.js +35 -1
- package/dist/es/core.js.map +1 -1
- package/dist/es/jest-diff.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/types/browser.d.ts +25 -1
- package/dist/types/index.d.ts +25 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jest-diff.js","sources":["../../src/jest/utils/diff.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/ban-ts-comment -- this code needs to work\n * with multiple different versions of jest and it does verification of which\n * one is actually present but the other variants will cause errors, as is expected */\n
|
|
1
|
+
{"version":3,"file":"jest-diff.js","sources":["../../src/jest/utils/diff.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/ban-ts-comment -- this code needs to work\n * with multiple different versions of jest and it does verification of which\n * one is actually present but the other variants will cause errors, as is expected */\n\nimport jestDiffDefault, * as jestDiff from \"jest-diff\";\n\n/**\n * @internal\n */\nexport interface DiffOptions {\n\taAnnotation?: string;\n\tbAnnotation?: string;\n\texpand?: boolean;\n}\n\n/**\n * @internal\n */\nexport type DiffFunction = (a: any, b: any, options?: DiffOptions) => string | null;\n\n/* ignore typing for compatibility so it will seem \"impossible\" but different\n * version will yield different source */\n/* istanbul ignore next: this is covered by integration tests */\nconst diffCandidates: Array<DiffFunction | undefined> = [\n\t// @ts-ignore\n\tjestDiffDefault?.diff,\n\t// @ts-ignore\n\tjestDiffDefault,\n\t// @ts-ignore\n\tjestDiff?.diff,\n\t// @ts-ignore\n\tjestDiff,\n];\n\nconst isFunction = (fn: unknown): boolean => typeof fn === \"function\";\n\n/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- assume\n * one of the candidate matches, there will be a reasonable error later on if\n * not */\nexport const diff: DiffFunction = diffCandidates.find(isFunction)!;\n"],"names":["jestDiffDefault","jestDiff"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAA,EAAA,CAAA;AAuBA,MAAM,cAAkD,GAAA;AAAA;AAAA,EAAA,CAEvD,EAAiB,GAAAA,2BAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA;AAAA;AAAA,EAEjBA,2BAAA;AAAA;AAAA,EAEAC,mBAAU,IAAA,IAAA,GAAA,KAAA,CAAA,GAAAA,mBAAA,CAAA,IAAA;AAAA;AAAA,EAEVA,mBAAA;AACD,CAAA,CAAA;AAEA,MAAM,UAAa,GAAA,CAAC,EAAyB,KAAA,OAAO,EAAO,KAAA,UAAA,CAAA;AAK9C,MAAA,IAAA,GAAqB,cAAe,CAAA,IAAA,CAAK,UAAU;;;;"}
|
package/dist/es/core.js
CHANGED
|
@@ -12313,6 +12313,18 @@ class StaticConfigLoader extends ConfigLoader {
|
|
|
12313
12313
|
super(defaultResolvers, config);
|
|
12314
12314
|
}
|
|
12315
12315
|
}
|
|
12316
|
+
/**
|
|
12317
|
+
* Set a new configuration for this loader.
|
|
12318
|
+
*
|
|
12319
|
+
* @public
|
|
12320
|
+
* @since 8.20.0
|
|
12321
|
+
* @param config - New configuration to use.
|
|
12322
|
+
*/
|
|
12323
|
+
/* istanbul ignore next -- not testing setters/getters */
|
|
12324
|
+
setConfig(config) {
|
|
12325
|
+
const defaults = Config.empty();
|
|
12326
|
+
this.globalConfig = defaults.merge(this.resolvers, this.loadFromObject(config));
|
|
12327
|
+
}
|
|
12316
12328
|
getConfigFor(_handle, configOverride) {
|
|
12317
12329
|
const override = this.loadFromObject(configOverride ?? {});
|
|
12318
12330
|
if (override.isRootFound()) {
|
|
@@ -12702,6 +12714,28 @@ class HtmlValidate {
|
|
|
12702
12714
|
getConfigForSync(filename, configOverride) {
|
|
12703
12715
|
return this.configLoader.getConfigFor(filename, configOverride);
|
|
12704
12716
|
}
|
|
12717
|
+
/**
|
|
12718
|
+
* Get current configuration loader.
|
|
12719
|
+
*
|
|
12720
|
+
* @public
|
|
12721
|
+
* @since %version%
|
|
12722
|
+
* @returns Current configuration loader.
|
|
12723
|
+
*/
|
|
12724
|
+
/* istanbul ignore next -- not testing setters/getters */
|
|
12725
|
+
getConfigLoader() {
|
|
12726
|
+
return this.configLoader;
|
|
12727
|
+
}
|
|
12728
|
+
/**
|
|
12729
|
+
* Set configuration loader.
|
|
12730
|
+
*
|
|
12731
|
+
* @public
|
|
12732
|
+
* @since %version%
|
|
12733
|
+
* @param loader - New configuration loader to use.
|
|
12734
|
+
*/
|
|
12735
|
+
/* istanbul ignore next -- not testing setters/getters */
|
|
12736
|
+
setConfigLoader(loader) {
|
|
12737
|
+
this.configLoader = loader;
|
|
12738
|
+
}
|
|
12705
12739
|
/**
|
|
12706
12740
|
* Flush configuration cache. Clears full cache unless a filename is given.
|
|
12707
12741
|
*
|
|
@@ -12716,7 +12750,7 @@ class HtmlValidate {
|
|
|
12716
12750
|
}
|
|
12717
12751
|
|
|
12718
12752
|
const name = "html-validate";
|
|
12719
|
-
const version = "8.
|
|
12753
|
+
const version = "8.20.0";
|
|
12720
12754
|
const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
|
|
12721
12755
|
|
|
12722
12756
|
function definePlugin(plugin) {
|