Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typetree

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typetree - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

4

lib/validate-object.js

@@ -225,3 +225,5 @@ "use strict";

source.forEach((s, k) => {
_iterate(s, definition[0], current + `[${k}]`, null);
if (definition[0]) {
_iterate(s, definition[0], current + `[${k}]`, null);
}
});

@@ -228,0 +230,0 @@ }

{
"name": "typetree",
"version": "0.5.1",
"version": "0.5.2",
"description": "Object validation using a type tree definition.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -104,2 +104,5 @@ "use strict";

errors = validateObject(validObject, [{}]);
assert.isUndefined(errors);
errors = validateObject(validObject, 1);

@@ -106,0 +109,0 @@ assert.lengthOf(errors, 1);

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