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

goodeggs-json-schema-validator

Package Overview
Dependencies
Maintainers
5
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

goodeggs-json-schema-validator - npm Package Compare versions

Comparing version 4.2.3 to 4.3.0

5

index.js

@@ -61,6 +61,9 @@ 'use strict';

module.exports.assertValid = function (data, schema, errorMessage) {
var _ref = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : { banUnknownProperties: true },
banUnknownProperties = _ref.banUnknownProperties;
(0, _assert2.default)((typeof schema === 'undefined' ? 'undefined' : _typeof(schema)) === 'object', 'schema must be an object');
if (errorMessage != null) (0, _assert2.default)(typeof errorMessage === 'string', 'errorMessage must be a string');
var _tv4$validateResult = _tv2.default.validateResult(data, schema, null, true),
var _tv4$validateResult = _tv2.default.validateResult(data, schema, null, banUnknownProperties),
valid = _tv4$validateResult.valid,

@@ -67,0 +70,0 @@ error = _tv4$validateResult.error;

2

package.json
{
"name": "goodeggs-json-schema-validator",
"version": "4.2.3",
"version": "4.3.0",
"description": "Good Eggs JSON Schema Validator",

@@ -5,0 +5,0 @@ "author": "Good Eggs <open-source@goodeggs.com>",

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