Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

schema-utils

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schema-utils - npm Package Compare versions

Comparing version 0.1.0 to 0.2.1

.babelrc

14

CHANGELOG.md

@@ -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)

7

dist/index.js
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

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc