schema-utils
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -5,2 +5,16 @@ # Changelog | ||
## [2.1.0](https://github.com/webpack-contrib/schema-utils/compare/v2.0.1...v2.1.0) (2019-08-07) | ||
### Bug Fixes | ||
* throw error on sparse arrays ([#47](https://github.com/webpack-contrib/schema-utils/issues/47)) ([b85ac38](https://github.com/webpack-contrib/schema-utils/commit/b85ac38)) | ||
### Features | ||
* export `ValidateError` ([#46](https://github.com/webpack-contrib/schema-utils/issues/46)) ([ff781d7](https://github.com/webpack-contrib/schema-utils/commit/ff781d7)) | ||
### [2.0.1](https://github.com/webpack-contrib/schema-utils/compare/v2.0.0...v2.0.1) (2019-07-18) | ||
@@ -7,0 +21,0 @@ |
@@ -5,2 +5,5 @@ "use strict"; | ||
module.exports = validate.default; | ||
const validateError = require('./ValidationError'); | ||
module.exports = validate.default; | ||
module.exports.ValidateError = validateError.default; |
@@ -30,3 +30,3 @@ "use strict"; | ||
if (Array.isArray(options)) { | ||
errors = options.map(nestedOptions => validateObject(schema, nestedOptions)); | ||
errors = Array.from(options).map(nestedOptions => validateObject(schema, nestedOptions)); | ||
errors.forEach((list, idx) => { | ||
@@ -33,0 +33,0 @@ const applyPrefix = error => { |
{ | ||
"name": "schema-utils", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "webpack Validation Utils", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
40043
571