html-validate 8.19.0 → 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 +53 -22
- 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 +53 -22
- 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 +11 -11
package/dist/es/jest-diff.js.map
CHANGED
|
@@ -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"],"mappings":";;;AAAA,IAAA,EAAA,CAAA;AAuBA,MAAM,cAAkD,GAAA;AAAA;AAAA,EAAA,CAEvD,EAAiB,GAAAA,iBAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA;AAAA;AAAA,EAEjBA,iBAAA;AAAA;AAAA,EAEA,QAAU,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,QAAA,CAAA,IAAA;AAAA;AAAA,EAEV,QAAA;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/tsdoc-metadata.json
CHANGED
package/dist/types/browser.d.ts
CHANGED
|
@@ -345,7 +345,7 @@ export declare class ConfigError extends UserError {
|
|
|
345
345
|
*/
|
|
346
346
|
export declare abstract class ConfigLoader {
|
|
347
347
|
protected readonly resolvers: Resolver[];
|
|
348
|
-
protected
|
|
348
|
+
protected globalConfig: Config;
|
|
349
349
|
constructor(resolvers: Resolver[], config?: ConfigData);
|
|
350
350
|
/**
|
|
351
351
|
* Get configuration for given handle.
|
|
@@ -1271,6 +1271,22 @@ export declare class HtmlValidate {
|
|
|
1271
1271
|
* @param configOverride - Configuration to apply last.
|
|
1272
1272
|
*/
|
|
1273
1273
|
getConfigForSync(filename: string, configOverride?: ConfigData): ResolvedConfig;
|
|
1274
|
+
/**
|
|
1275
|
+
* Get current configuration loader.
|
|
1276
|
+
*
|
|
1277
|
+
* @public
|
|
1278
|
+
* @since %version%
|
|
1279
|
+
* @returns Current configuration loader.
|
|
1280
|
+
*/
|
|
1281
|
+
getConfigLoader(): ConfigLoader;
|
|
1282
|
+
/**
|
|
1283
|
+
* Set configuration loader.
|
|
1284
|
+
*
|
|
1285
|
+
* @public
|
|
1286
|
+
* @since %version%
|
|
1287
|
+
* @param loader - New configuration loader to use.
|
|
1288
|
+
*/
|
|
1289
|
+
setConfigLoader(loader: ConfigLoader): void;
|
|
1274
1290
|
/**
|
|
1275
1291
|
* Flush configuration cache. Clears full cache unless a filename is given.
|
|
1276
1292
|
*
|
|
@@ -2452,6 +2468,14 @@ export declare class StaticConfigLoader extends ConfigLoader {
|
|
|
2452
2468
|
* @param configFactory - Optional configuration factory
|
|
2453
2469
|
*/
|
|
2454
2470
|
constructor(resolvers: Resolver[], config?: ConfigData);
|
|
2471
|
+
/**
|
|
2472
|
+
* Set a new configuration for this loader.
|
|
2473
|
+
*
|
|
2474
|
+
* @public
|
|
2475
|
+
* @since 8.20.0
|
|
2476
|
+
* @param config - New configuration to use.
|
|
2477
|
+
*/
|
|
2478
|
+
setConfig(config: ConfigData): void;
|
|
2455
2479
|
getConfigFor(_handle: string, configOverride?: ConfigData): ResolvedConfig;
|
|
2456
2480
|
flushCache(): void;
|
|
2457
2481
|
protected defaultConfig(): Config;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -441,7 +441,7 @@ export declare class ConfigError extends UserError {
|
|
|
441
441
|
*/
|
|
442
442
|
export declare abstract class ConfigLoader {
|
|
443
443
|
protected readonly resolvers: Resolver[];
|
|
444
|
-
protected
|
|
444
|
+
protected globalConfig: Config;
|
|
445
445
|
constructor(resolvers: Resolver[], config?: ConfigData);
|
|
446
446
|
/**
|
|
447
447
|
* Get configuration for given handle.
|
|
@@ -1489,6 +1489,22 @@ export declare class HtmlValidate {
|
|
|
1489
1489
|
* @param configOverride - Configuration to apply last.
|
|
1490
1490
|
*/
|
|
1491
1491
|
getConfigForSync(filename: string, configOverride?: ConfigData): ResolvedConfig;
|
|
1492
|
+
/**
|
|
1493
|
+
* Get current configuration loader.
|
|
1494
|
+
*
|
|
1495
|
+
* @public
|
|
1496
|
+
* @since %version%
|
|
1497
|
+
* @returns Current configuration loader.
|
|
1498
|
+
*/
|
|
1499
|
+
getConfigLoader(): ConfigLoader;
|
|
1500
|
+
/**
|
|
1501
|
+
* Set configuration loader.
|
|
1502
|
+
*
|
|
1503
|
+
* @public
|
|
1504
|
+
* @since %version%
|
|
1505
|
+
* @param loader - New configuration loader to use.
|
|
1506
|
+
*/
|
|
1507
|
+
setConfigLoader(loader: ConfigLoader): void;
|
|
1492
1508
|
/**
|
|
1493
1509
|
* Flush configuration cache. Clears full cache unless a filename is given.
|
|
1494
1510
|
*
|
|
@@ -2702,6 +2718,14 @@ export declare class StaticConfigLoader extends ConfigLoader {
|
|
|
2702
2718
|
* @param configFactory - Optional configuration factory
|
|
2703
2719
|
*/
|
|
2704
2720
|
constructor(resolvers: Resolver[], config?: ConfigData);
|
|
2721
|
+
/**
|
|
2722
|
+
* Set a new configuration for this loader.
|
|
2723
|
+
*
|
|
2724
|
+
* @public
|
|
2725
|
+
* @since 8.20.0
|
|
2726
|
+
* @param config - New configuration to use.
|
|
2727
|
+
*/
|
|
2728
|
+
setConfig(config: ConfigData): void;
|
|
2705
2729
|
getConfigFor(_handle: string, configOverride?: ConfigData): ResolvedConfig;
|
|
2706
2730
|
flushCache(): void;
|
|
2707
2731
|
protected defaultConfig(): Config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-validate",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.20.0",
|
|
4
4
|
"description": "Offline html5 validator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"html",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "https://gitlab.com/html-validate/html-validate.git"
|
|
17
|
+
"url": "git+https://gitlab.com/html-validate/html-validate.git"
|
|
18
18
|
},
|
|
19
19
|
"funding": [
|
|
20
20
|
{
|
|
@@ -208,15 +208,15 @@
|
|
|
208
208
|
},
|
|
209
209
|
"devDependencies": {
|
|
210
210
|
"@html-validate/commitlint-config": "3.2.5",
|
|
211
|
-
"@html-validate/eslint-config": "5.20.
|
|
211
|
+
"@html-validate/eslint-config": "5.20.3",
|
|
212
212
|
"@html-validate/eslint-config-jest": "5.20.0",
|
|
213
|
-
"@html-validate/eslint-config-typescript": "5.20.
|
|
214
|
-
"@html-validate/eslint-config-typescript-typeinfo": "5.20.
|
|
213
|
+
"@html-validate/eslint-config-typescript": "5.20.3",
|
|
214
|
+
"@html-validate/eslint-config-typescript-typeinfo": "5.20.3",
|
|
215
215
|
"@html-validate/jest-config": "3.10.0",
|
|
216
|
-
"@html-validate/prettier-config": "2.4.
|
|
216
|
+
"@html-validate/prettier-config": "2.4.14",
|
|
217
217
|
"@html-validate/release-scripts": "6.4.0",
|
|
218
|
-
"@microsoft/api-extractor": "7.
|
|
219
|
-
"@rollup/plugin-commonjs": "25.0.
|
|
218
|
+
"@microsoft/api-extractor": "7.46.2",
|
|
219
|
+
"@rollup/plugin-commonjs": "25.0.8",
|
|
220
220
|
"@rollup/plugin-json": "6.1.0",
|
|
221
221
|
"@rollup/plugin-node-resolve": "15.2.3",
|
|
222
222
|
"@rollup/plugin-replace": "5.0.5",
|
|
@@ -239,12 +239,12 @@
|
|
|
239
239
|
"jsdom": "20.0.3",
|
|
240
240
|
"marked": "12.0.2",
|
|
241
241
|
"memfs": "4.9.2",
|
|
242
|
-
"npm-pkg-lint": "
|
|
242
|
+
"npm-pkg-lint": "3.6.1",
|
|
243
243
|
"npm-run-all2": "6.2.0",
|
|
244
|
-
"rollup": "4.
|
|
244
|
+
"rollup": "4.18.0",
|
|
245
245
|
"rollup-plugin-esbuild": "6.1.1",
|
|
246
246
|
"stream-buffers": "3.0.2",
|
|
247
|
-
"ts-jest": "29.1.
|
|
247
|
+
"ts-jest": "29.1.4",
|
|
248
248
|
"typescript": "5.4.5",
|
|
249
249
|
"vite": "4.5.3"
|
|
250
250
|
},
|