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

json-schema-merge-allof

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-merge-allof - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

package.json
{
"name": "json-schema-merge-allof",
"version": "0.5.0",
"version": "0.5.1",
"description": "Simplify your schema by combining allOf into the root schema, safely.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -1,2 +0,1 @@

var Ajv = require('ajv')
var cloneDeep = require('lodash/cloneDeep')

@@ -431,3 +430,2 @@ var compare = require('json-schema-compare')

totalSchemas = totalSchemas || []
var ajv = new Ajv()
options = defaults(options, {

@@ -568,15 +566,2 @@ ignoreAdditionalProperties: false,

// TODO consider having this here as a feature or just while developing
try {
var isValid = ajv.validateSchema(merged)
if (!isValid) {
throw new Error('Schema returned by resolver isn\'t valid.')
}
} catch (e) {
if (!/stack/i.test(e.message)) {
throw e
}
}
return merged

@@ -583,0 +568,0 @@ }

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