We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8a312a commit b4c4d6dCopy full SHA for b4c4d6d
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "strontium",
3
- "version": "2.9.0",
+ "version": "2.9.1",
4
"description": "Strontium is a TypeScript toolkit for High Performance API servers built for Production not Projects.",
5
"main": "lib/src/index.js",
6
"types": "lib/src/index.d.ts",
src/validation/drivers/validators/isUUID.ts
@@ -3,8 +3,8 @@ import { UUID } from "../../../utils/types"
import { isUUID as uuidValidator } from "validator"
-export const isUUID = (i: string): UUID => {
7
- if (uuidValidator(i)) {
+export const isUUID = (i: unknown): UUID => {
+ if (typeof i === "string" && uuidValidator(i)) {
8
return i
9
}
10
0 commit comments