New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

json-schema-library

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-library - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

8

lib/getTemplate.js
/* eslint quote-props: 0 */
const resolveOneOfFuzzy = require("./resolveOneOf.fuzzy");
const getTypeOf = require("./getTypeOf");

@@ -34,2 +35,9 @@

}
if (data != null && getTypeOf(data) !== schema.type) {
// reset invalid type
console.error("Schema does not match data", data, "schema:", schema);
data = null;
}
// eslint-disable-next-line no-use-before-define

@@ -36,0 +44,0 @@ if (TYPE[schema.type] == null) {

4

package.json
{
"name": "json-schema-library",
"version": "2.3.0",
"version": "2.3.1",
"description": "Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation",

@@ -37,2 +37,2 @@ "main": "index.js",

}
}
}
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