Socket
Socket
Sign inDemoInstall

joi

Package Overview
Dependencies
Maintainers
1
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 17.5.0 to 17.6.0

17

lib/template.js

@@ -388,2 +388,19 @@ 'use strict';

length(item) {
if (typeof item === 'string') {
return item.length;
}
if (!item || typeof item !== 'object') {
return null;
}
if (Array.isArray(item)) {
return item.length;
}
return Object.keys(item).length;
},
msg(code) {

@@ -390,0 +407,0 @@

2

package.json
{
"name": "joi",
"description": "Object schema validation",
"version": "17.5.0",
"version": "17.6.0",
"repository": "git://github.com/sideway/joi",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is too big to display

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