Socket
Socket
Sign inDemoInstall

schema-utils

Package Overview
Dependencies
310
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.2 to 0.4.3

11

CHANGELOG.md

@@ -5,2 +5,13 @@ # Change Log

<a name="0.4.3"></a>
## [0.4.3](https://github.com/webpack-contrib/schema-utils/compare/v0.4.2...v0.4.3) (2017-12-14)
### Bug Fixes
* **validateOptions:** throw `err` instead of `process.exit(1)` ([#17](https://github.com/webpack-contrib/schema-utils/issues/17)) ([c595eda](https://github.com/webpack-contrib/schema-utils/commit/c595eda))
* **ValidationError:** never return `this` in the ctor ([#16](https://github.com/webpack-contrib/schema-utils/issues/16)) ([c723791](https://github.com/webpack-contrib/schema-utils/commit/c723791))
<a name="0.4.2"></a>

@@ -7,0 +18,0 @@ ## [0.4.2](https://github.com/webpack-contrib/schema-utils/compare/v0.4.1...v0.4.2) (2017-11-09)

29

dist/validateOptions.js

@@ -15,6 +15,2 @@ 'use strict';

var _chalk = require('chalk');
var _chalk2 = _interopRequireDefault(_chalk);
var _ajv = require('ajv');

@@ -34,7 +30,2 @@

/* eslint-disable
import/order,
no-param-reassign,
array-bracket-spacing,
*/
var ajv = new _ajv2.default({

@@ -44,4 +35,9 @@ allErrors: true,

errorDataPath: 'property'
});
}); /* eslint-disable
import/order,
no-param-reassign,
array-bracket-spacing,
*/
(0, _ajvKeywords2.default)(ajv, ['instanceof', 'typeof']);

@@ -56,14 +52,3 @@

if (!ajv.validate(schema, options)) {
try {
throw new _ValidationError2.default(ajv.errors, name);
} catch (err) {
console.error(_chalk2.default.bold.red(`\n${err.message}\n`));
// rethrow {Error} for testing only
if (process.env.JEST) {
throw err;
}
process.exit(1);
}
throw new _ValidationError2.default(ajv.errors, name);
}

@@ -70,0 +55,0 @@

@@ -17,4 +17,2 @@ 'use strict';

function ValidationError(errors, name) {
var _ret;
_classCallCheck(this, ValidationError);

@@ -35,4 +33,3 @@

Error.captureStackTrace(_this, _this.constructor);
return _ret = _this, _possibleConstructorReturn(_this, _ret);
return _this;
}

@@ -39,0 +36,0 @@

{
"name": "schema-utils",
"version": "0.4.2",
"version": "0.4.3",
"description": "Webpack Schema Validation Utilities",
"license": "MIT",
"main": "dist/cjs.js",
"engines": {
"node": ">= 4.8 < 5.0.0 || >= 5.10"
},
"files": [
"dist"
],
"author": "Webpack Contrib (https://github.com/webpack-contrib)",
"contributors": [
"Juho Vepsäläinen <@bebraw>",
"Joshua Wiens <@d3viant0ne>",
"Michael Ciniawsky <@michael-ciniawsky>"
],
"scripts": {

@@ -24,5 +21,5 @@ "start": "npm run build -- -w",

"security": "nsp check",
"test": "cross-env JEST=true jest",
"test:watch": "cross-env JEST=true jest --watch",
"test:coverage": "cross-env JEST=true jest --collectCoverageFrom='src/**/*.js' --coverage",
"test": "cross-env jest",
"test:watch": "cross-env jest --watch",
"test:coverage": "cross-env jest --collectCoverageFrom='src/**/*.js' --coverage",
"travis:lint": "npm run lint && npm run security",

@@ -38,4 +35,3 @@ "travis:test": "npm run test -- --runInBand",

"ajv": "^5.0.0",
"ajv-keywords": "^2.1.0",
"chalk": "^2.3.0"
"ajv-keywords": "^2.1.0"
},

@@ -58,3 +54,3 @@ "devDependencies": {

"standard-version": "^4.0.0",
"webpack": "^3.8.1",
"webpack": "^3.0.0",
"webpack-defaults": "^1.6.0"

@@ -65,5 +61,14 @@ },

},
"engines": {
"node": ">= 4.8 < 5.0.0 || >= 5.10"
},
"keywords": [
"webpack",
"webpack-plugin",
"schema-utils",
"loader"
],
"author": "Webpack Contrib (https://github.com/webpack-contrib)",
"contributors": [
"Juho Vepsäläinen <@bebraw>",
"Joshua Wiens <@d3viant0ne>",
"Michael Ciniawsky <@michael-ciniawsky>"
],
"repository": "https://github.com/webpack-contrib/schema-utils.git",

@@ -78,9 +83,3 @@ "bugs": "https://github.com/webpack-contrib/schema-utils/issues",

]
},
"keywords": [
"webpack",
"webpack-plugin",
"schema-utils",
"loader"
]
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc