schema-utils
Advanced tools
Comparing version 0.1.0 to 0.2.1
@@ -5,2 +5,16 @@ # Change Log | ||
<a name="0.2.1"></a> | ||
## [0.2.1](https://github.com/webpack-contrib/schema-utils/compare/v0.2.0...v0.2.1) (2017-03-13) | ||
### Bug Fixes | ||
* Include .babelrc to `files` ([28f0363](https://github.com/webpack-contrib/schema-utils/commit/28f0363)) | ||
* Include source to `files` ([43b0f2f](https://github.com/webpack-contrib/schema-utils/commit/43b0f2f)) | ||
<a name="0.2.0"></a> | ||
# [0.2.0](https://github.com/webpack-contrib/schema-utils/compare/v0.1.0...v0.2.0) (2017-03-12) | ||
<a name="0.1.0"></a> | ||
@@ -7,0 +21,0 @@ # 0.1.0 (2017-03-07) |
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.validateOptions = undefined; | ||
var _validateOptions = require('./lib/validate-options'); | ||
exports.default = _validateOptions.validateOptions; | ||
var _validateOptions2 = _interopRequireDefault(_validateOptions); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.validateOptions = _validateOptions2.default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "schema-utils", | ||
"version": "0.1.0", | ||
"version": "0.2.1", | ||
"description": "Webpack Schema Validation Utilities", | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist" | ||
"dist", | ||
"lib", | ||
"src", | ||
".babelrc" | ||
], | ||
@@ -24,2 +27,3 @@ "scripts": { | ||
"lint-staged": "lint-staged", | ||
"postinstall": "node lib/post_install.js", | ||
"prepublish": "yarn run build", | ||
@@ -26,0 +30,0 @@ "release": "yarn run standard-version" |
@@ -31,3 +31,18 @@ [![npm][npm]][npm-url] | ||
```javascript | ||
const { validateSchema } = require('schema-utils'); | ||
... | ||
// This injects possible default values to options | ||
const validation = validateSchema(jsonSchema, options); | ||
if(validation.isValid) { | ||
throw new Error(validation.error); | ||
} | ||
// options are ok to use now | ||
``` | ||
<h2 align="center">Maintainers</h2> | ||
@@ -34,0 +49,0 @@ |
Sorry, the diff of this file is not supported yet
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
13314
13
180
84
1
2
2