Socket
Socket
Sign inDemoInstall

joi

Package Overview
Dependencies
Maintainers
4
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joi - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

4

lib/object.js

@@ -66,3 +66,3 @@ // Load modules

for (var n = 0, nl = configs.length; n < nl; ++n) {
var config = (configs[n] instanceof Any ? configs[n] : new internals.Object(configs[n]));
var config = (typeof configs[n].describe === 'function' ? configs[n] : new internals.Object(configs[n]));
if (nl > 1) {

@@ -163,3 +163,3 @@ description.children[key] = description.children[key] || [];

for (var c = 0, cl = configs.length; c < cl; ++c) {
var config = (configs[c] instanceof Any ? configs[c] : new internals.Object(configs[c]));
var config = (typeof configs[c]._validate === 'function' ? configs[c] : new internals.Object(configs[c]));
var err = config._validate(item, { parent: value, key: key, path: (state.path ? state.path + '.' : '') + key, renamed: state.renamed }, options);

@@ -166,0 +166,0 @@ if (!err) { // Found a valid match

{
"name": "joi",
"description": "Object schema validation",
"version": "2.3.0",
"version": "2.3.1",
"repository": "git://github.com/spumko/joi",

@@ -6,0 +6,0 @@ "main": "index",

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