schema-utils
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [2.3.0](https://github.com/webpack/schema-utils/compare/v2.2.0...v2.3.0) (2019-09-26) | ||
### Features | ||
* support `not` keyword ([#53](https://github.com/webpack/schema-utils/issues/53)) ([765f458](https://github.com/webpack/schema-utils/commit/765f458)) | ||
## [2.2.0](https://github.com/webpack/schema-utils/compare/v2.1.0...v2.2.0) (2019-09-02) | ||
@@ -7,0 +14,0 @@ |
@@ -224,5 +224,9 @@ "use strict"; | ||
return this.formatSchema(innerSchema, prevSchemas.concat(schema)); | ||
}; // eslint-disable-next-line default-case | ||
}; | ||
if (schema.not && !likeObject(schema)) { | ||
return `non ${formatInnerSchema(schema.not)}`; | ||
} // eslint-disable-next-line default-case | ||
switch (schema.instanceof) { | ||
@@ -617,2 +621,5 @@ case 'Function': | ||
case 'not': | ||
return `${dataPath} should not be ${this.getSchemaPartText(error.schema)}${likeObject(error.parentSchema) ? `\n${this.getSchemaPartText(error.parentSchema)}` : ''}`; | ||
case 'oneOf': | ||
@@ -619,0 +626,0 @@ case 'anyOf': |
{ | ||
"name": "schema-utils", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "webpack Validation Utils", | ||
@@ -41,7 +41,7 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@babel/cli": "^7.5.5", | ||
"@babel/core": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
"@commitlint/cli": "^8.0.0", | ||
"@commitlint/config-conventional": "^8.0.0", | ||
"@babel/cli": "^7.6.2", | ||
"@babel/core": "^7.6.2", | ||
"@babel/preset-env": "^7.6.2", | ||
"@commitlint/cli": "^8.2.0", | ||
"@commitlint/config-conventional": "^8.2.0", | ||
"@webpack-contrib/defaults": "^5.0.2", | ||
@@ -51,7 +51,7 @@ "@webpack-contrib/eslint-config-webpack": "^3.0.0", | ||
"commitlint-azure-pipelines-cli": "^1.0.2", | ||
"cross-env": "^5.2.1", | ||
"cross-env": "^6.0.0", | ||
"del": "^5.1.0", | ||
"del-cli": "^2.0.0", | ||
"eslint": "^6.3.0", | ||
"eslint-config-prettier": "^6.1.0", | ||
"del-cli": "^3.0.0", | ||
"eslint": "^6.4.0", | ||
"eslint-config-prettier": "^6.3.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
@@ -61,3 +61,3 @@ "husky": "^3.0.5", | ||
"jest-junit": "^8.0.0", | ||
"lint-staged": "^9.2.5", | ||
"lint-staged": "^9.4.0", | ||
"npm-run-all": "^4.1.5", | ||
@@ -64,0 +64,0 @@ "prettier": "^1.18.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42752
644