Updated to v1.9.9

This commit is contained in:
Henry Whitaker
2020-11-07 15:27:50 +00:00
parent 15d3583423
commit 8d811862a0
6349 changed files with 338454 additions and 213438 deletions

View File

@@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [2.7.1](https://github.com/webpack/schema-utils/compare/v2.7.0...v2.7.1) (2020-08-31)
### Bug Fixes
* remove esModuleInterop from tsconfig ([#110](https://github.com/webpack/schema-utils/issues/110)) ([#111](https://github.com/webpack/schema-utils/issues/111)) ([2f40154](https://github.com/webpack/schema-utils/commit/2f40154b91e45b393258ae9dd8f10cc3b8590b7d))
## [2.7.0](https://github.com/webpack/schema-utils/compare/v2.6.6...v2.7.0) (2020-05-29)

View File

@@ -38,7 +38,7 @@ npm install schema-utils
"type": "object",
"properties": {
"option": {
"type": ["boolean"]
"type": "boolean"
}
},
"additionalProperties": false
@@ -272,5 +272,5 @@ Please take a moment to read our contributing guidelines if you haven't yet done
[cover-url]: https://codecov.io/gh/webpack/schema-utils
[chat]: https://badges.gitter.im/webpack/webpack.svg
[chat-url]: https://gitter.im/webpack/webpack
[size]: https://packagephobia.now.sh/badge?p=schema-utils
[size-url]: https://packagephobia.now.sh/result?p=schema-utils
[size]: https://packagephobia.com/badge?p=schema-utils
[size-url]: https://packagephobia.com/result?p=schema-utils

View File

@@ -52,13 +52,13 @@ declare class Range {
* @return {RangeValue} computed value and it's exclusive flag
*/
static getRangeValue(
values: Array<RangeValue>,
values: Array<[number, boolean]>,
logic: boolean
): [number, boolean];
/** @type {Array<RangeValue>} */
_left: Array<RangeValue>;
_left: Array<[number, boolean]>;
/** @type {Array<RangeValue>} */
_right: Array<RangeValue>;
_right: Array<[number, boolean]>;
/**
* @param {number} value
* @param {boolean=} exclusive

View File

@@ -2,7 +2,7 @@ export default validate;
export type JSONSchema4 = import('json-schema').JSONSchema4;
export type JSONSchema6 = import('json-schema').JSONSchema6;
export type JSONSchema7 = import('json-schema').JSONSchema7;
export type ErrorObject = Ajv.ErrorObject;
export type ErrorObject = import('ajv').ErrorObject;
export type Extend = {
formatMinimum?: number | undefined;
formatMaximum?: number | undefined;
@@ -13,8 +13,8 @@ export type Schema =
| (import('json-schema').JSONSchema4 & Extend)
| (import('json-schema').JSONSchema6 & Extend)
| (import('json-schema').JSONSchema7 & Extend);
export type SchemaUtilErrorObject = Ajv.ErrorObject & {
children?: Ajv.ErrorObject[] | undefined;
export type SchemaUtilErrorObject = import('ajv').ErrorObject & {
children?: import('ajv').ErrorObject[] | undefined;
};
export type PostFormatter = (
formattedError: string,
@@ -40,5 +40,4 @@ declare namespace validate {
export { ValidationError };
export { ValidationError as ValidateError };
}
import Ajv from 'ajv';
import ValidationError from './ValidationError';

View File

@@ -5,16 +5,16 @@ Object.defineProperty(exports, "__esModule", {
});
exports.default = void 0;
var _ajv = _interopRequireDefault(require("ajv"));
var _ajvKeywords = _interopRequireDefault(require("ajv-keywords"));
var _absolutePath = _interopRequireDefault(require("./keywords/absolutePath"));
var _ValidationError = _interopRequireDefault(require("./ValidationError"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// Use CommonJS require for ajv libs so TypeScript consumers aren't locked into esModuleInterop (see #110).
const Ajv = require('ajv');
const ajvKeywords = require('ajv-keywords');
/** @typedef {import("json-schema").JSONSchema4} JSONSchema4 */
/** @typedef {import("json-schema").JSONSchema6} JSONSchema6 */
@@ -48,12 +48,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
* @property {string=} baseDataPath
* @property {PostFormatter=} postFormatter
*/
const ajv = new _ajv.default({
const ajv = new Ajv({
allErrors: true,
verbose: true,
$data: true
});
(0, _ajvKeywords.default)(ajv, ['instanceof', 'formatMinimum', 'formatMaximum', 'patternRequired']); // Custom keywords
ajvKeywords(ajv, ['instanceof', 'formatMinimum', 'formatMaximum', 'patternRequired']); // Custom keywords
(0, _absolutePath.default)(ajv);
/**

View File

@@ -1,33 +1,33 @@
{
"_args": [
[
"schema-utils@2.7.0",
"schema-utils@2.7.1",
"/home/henry/Documents/git/Speedtest-tracker-docker/conf/site"
]
],
"_development": true,
"_from": "schema-utils@2.7.0",
"_id": "schema-utils@2.7.0",
"_from": "schema-utils@2.7.1",
"_id": "schema-utils@2.7.1",
"_inBundle": false,
"_integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==",
"_integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==",
"_location": "/schema-utils",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "schema-utils@2.7.0",
"raw": "schema-utils@2.7.1",
"name": "schema-utils",
"escapedName": "schema-utils",
"rawSpec": "2.7.0",
"rawSpec": "2.7.1",
"saveSpec": null,
"fetchSpec": "2.7.0"
"fetchSpec": "2.7.1"
},
"_requiredBy": [
"/babel-loader",
"/terser-webpack-plugin"
],
"_resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz",
"_spec": "2.7.0",
"_resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz",
"_spec": "2.7.1",
"_where": "/home/henry/Documents/git/Speedtest-tracker-docker/conf/site",
"author": {
"name": "webpack Contrib",
@@ -37,33 +37,33 @@
"url": "https://github.com/webpack/schema-utils/issues"
},
"dependencies": {
"@types/json-schema": "^7.0.4",
"ajv": "^6.12.2",
"ajv-keywords": "^3.4.1"
"@types/json-schema": "^7.0.5",
"ajv": "^6.12.4",
"ajv-keywords": "^3.5.2"
},
"description": "webpack Validation Utils",
"devDependencies": {
"@babel/cli": "^7.10.1",
"@babel/core": "^7.10.1",
"@babel/preset-env": "^7.10.1",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.4",
"@babel/preset-env": "^7.11.0",
"@commitlint/cli": "^10.0.0",
"@commitlint/config-conventional": "^10.0.0",
"@webpack-contrib/defaults": "^6.3.0",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^25.5.1",
"cross-env": "^6.0.3",
"del": "^5.1.0",
"del-cli": "^3.0.1",
"eslint": "^6.8.0",
"eslint": "^7.7.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-import": "^2.22.0",
"husky": "^4.2.5",
"jest": "^25.5.4",
"lint-staged": "^10.2.7",
"lint-staged": "^10.2.13",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"standard-version": "^8.0.0",
"typescript": "^3.9.3"
"standard-version": "^9.0.0",
"typescript": "^4.0.2"
},
"engines": {
"node": ">= 8.9.0"
@@ -110,5 +110,5 @@
"test:watch": "npm run test:only -- --watch"
},
"types": "declarations/index.d.ts",
"version": "2.7.0"
"version": "2.7.1"
}