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

schema-inspector

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schema-inspector - npm Package Compare versions

Comparing version 1.4.9 to 1.5.0

2

lib/schema-inspector.js

@@ -400,3 +400,3 @@ /*

strict: function (schema, candidate) {
if (schema.strict !== true || !_typeIs.object(candidate)) {
if (schema.strict !== true || !_typeIs.object(candidate) || !_typeIs.object(schema.properties)) {
return;

@@ -403,0 +403,0 @@ }

@@ -30,1 +30,6 @@ if (typeof require === 'function') {

});
var schema = { strict: true };
var obj = {};
var result = SchemaInspector.validate(schema, obj);
console.log(result);
{
"name": "schema-inspector",
"description": "Schema-Inspector is a powerful tool to sanitize and validate JS objects.",
"version": "1.4.9",
"version": "1.5.0",
"main": "index.js",

@@ -6,0 +6,0 @@ "author": {

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