You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

joi

Package Overview
Dependencies
Maintainers
6
Versions
241
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
18.0.1
to
18.0.2
+2
-1
lib/types/boolean.js

@@ -48,3 +48,4 @@ 'use strict';

if (typeof value === 'string') {
const normalized = schema._flags.sensitive ? value : value.toLowerCase();
const trimmedValue = value.trim();
const normalized = schema._flags.sensitive ? trimmedValue : trimmedValue.toLowerCase();
value = normalized === 'true' ? true : (normalized === 'false' ? false : value);

@@ -51,0 +52,0 @@ }

{
"name": "joi",
"description": "Object schema validation",
"version": "18.0.1",
"version": "18.0.2",
"repository": {

@@ -6,0 +6,0 @@ "url": "git://github.com/hapijs/joi",

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