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.3 to 0.5.4

2

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

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

@@ -26,3 +26,3 @@ var cloneDeep = require('lodash/cloneDeep')

var isTrue = (val) => val === true
var schemaResolver = (compacted, key, mergeSchemas, totalSchemas, parent) => mergeSchemas(compacted, compacted[0])
var schemaResolver = (compacted, key, mergeSchemas) => mergeSchemas(compacted)
var stringArray = (values) => sortBy(uniq(flattenDeep(values)))

@@ -394,3 +394,2 @@ var notUndefined = (val) => val !== undefined

defaultResolvers.exclusiveMinimum = maximumValue
defaultResolvers.first = first
defaultResolvers.maximum = minimumValue

@@ -479,3 +478,2 @@ defaultResolvers.maxItems = minimumValue

// TODO check if addToAllOf was called or not, and throw if undefined returnvalue and not called
if (merged[key] === undefined && !calledWithArray) {

@@ -482,0 +480,0 @@ throwIncompatible(compacted, key)

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