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

@handy-tools/validator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@handy-tools/validator - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

7

dist/cjs/index.js

@@ -117,2 +117,9 @@ var __defProp = Object.defineProperty;

this.count++;
const objectKeys = Object.keys(obj);
const schemaKeys = Object.keys(schema);
const incompatibleKeys = schemaKeys.filter((key) => !objectKeys.includes(key));
if (incompatibleKeys.length) {
const errors2 = incompatibleKeys.map((key) => `Object is incompatible with scheme: hasn't this '${key}' field`);
return { result: false, errors: errors2 };
}
if (this.count > this.maxDepth) {

@@ -119,0 +126,0 @@ throw new Error(`

@@ -92,2 +92,9 @@ // src/constants.ts

this.count++;
const objectKeys = Object.keys(obj);
const schemaKeys = Object.keys(schema);
const incompatibleKeys = schemaKeys.filter((key) => !objectKeys.includes(key));
if (incompatibleKeys.length) {
const errors2 = incompatibleKeys.map((key) => `Object is incompatible with scheme: hasn't this '${key}' field`);
return { result: false, errors: errors2 };
}
if (this.count > this.maxDepth) {

@@ -94,0 +101,0 @@ throw new Error(`

2

package.json
{
"name": "@handy-tools/validator",
"version": "0.1.1",
"version": "0.1.2",
"description": "fancy validate objects",

@@ -5,0 +5,0 @@ "main": "dist/cjs/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