Huge News!Announcing our $40M Series B led by Abstract Ventures.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.4 to 0.0.5

12

dist/index.js

@@ -38,5 +38,15 @@ 'use strict';

for (const key of propKeys) {
if (this[key] == null) {
object[key] = null;
continue;
}
if (this[key] == undefined) {
continue;
}
if (this[key].toJSON === Function) {
object[key] = this[key].toJSON();
} else if (this[key].constructor === Array) {
} else if (this[key] && this[key].constructor === Array) {
object[key] = this[key].map(toJSONHelper);

@@ -43,0 +53,0 @@ } else {

2

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

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

@@ -30,5 +30,15 @@ import { TypeError, ValidationError, Error } from './errors';

for(const key of propKeys) {
if(this[key] == null) {
object[key] = null;
continue;
}
if(this[key] == undefined) {
continue;
}
if(this[key].toJSON === Function) {
object[key] = this[key].toJSON();
} else if(this[key].constructor === Array) {
} else if(this[key] && this[key].constructor === Array) {
object[key] = this[key].map(toJSONHelper);

@@ -35,0 +45,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