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

schema-llama

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schema-llama - npm Package Compare versions

Comparing version 0.0.3-0 to 0.0.3-1

2

package.json
{
"name": "schema-llama",
"version": "0.0.3-0",
"version": "0.0.3-1",
"description": "A more purely javascript es6 class generator. Takes the work out of validation, type checking, and more.",

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

@@ -65,3 +65,6 @@ import { TypeError, ValidationError, Error } from './errors';

}
if(!Primitive && value.constructor !== schemaItem) {
if(!Primitive && !schemaItem.prototype && value.constructor !== schemaItem) {
value = schemaItem(value);
}
if(!Primitive && schemaItem.prototype && value.constructor !== schemaItem) {
throw error(value, schemaItem, key);

@@ -68,0 +71,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