Socket
Socket
Sign inDemoInstall

json-struct

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-struct - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

4

lib/Schema.js

@@ -78,12 +78,12 @@ /**

let key = validator.path[validator.path.length - 1];
let success = null;
let message = null;
let key = null;
try {
success = validator.test(value);
key = validator.path[validator.path.length - 1]
message = `${key} ${validator.assert}`;
} catch (e) {
success = false;
message = `Error running validation function for key: ${key}`;
}

@@ -90,0 +90,0 @@

{
"name": "json-struct",
"version": "0.0.8",
"version": "0.0.9",
"description": "Simple JSON schema validation",

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