@@ -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 @@ } |
+1
-1
| { | ||
| "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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
557336
0.01%10334
0.01%