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

joi

Package Overview
Dependencies
Maintainers
6
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.9.2 to 17.10.0

10

lib/types/binary.js

@@ -17,9 +17,11 @@ 'use strict';

coerce: {
from: 'string',
from: ['string', 'object'],
method(value, { schema }) {
try {
return { value: Buffer.from(value, schema._flags.encoding) };
if (typeof value === 'string' || (value !== null && value.type === 'Buffer')) {
try {
return { value: Buffer.from(value, schema._flags.encoding) };
}
catch (ignoreErr) { }
}
catch (ignoreErr) { }
}

@@ -26,0 +28,0 @@ },

@@ -42,3 +42,6 @@ 'use strict';

uuidv4: '4',
uuidv5: '5'
uuidv5: '5',
uuidv6: '6',
uuidv7: '7',
uuidv8: '8'
},

@@ -45,0 +48,0 @@ guidSeparators: new Set([undefined, true, false, '-', ':']),

2

package.json
{
"name": "joi",
"description": "Object schema validation",
"version": "17.9.2",
"version": "17.10.0",
"repository": "git://github.com/hapijs/joi",

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

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

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