zod-search-params
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -23,2 +23,5 @@ "use strict"; | ||
} | ||
if (zodType._def.typeName === 'ZodEffects') { | ||
return modifySchema(zodType._def.schema, key, object); | ||
} | ||
if ('coerce' in zodType._def) { | ||
@@ -56,2 +59,5 @@ if (!object || object[key] === undefined) { | ||
} | ||
if (zodType._def.typeName === 'ZodEffects') { | ||
return expectsArray(zodType._def.schema); | ||
} | ||
if ('options' in zodType._def) { | ||
@@ -92,3 +98,3 @@ return zodType._def.options.some(expectsArray); | ||
var _a; | ||
var object = (_a = (isSearchParams(searchParams) ? urlSearchParamsToObject(searchParams) : searchParams)) !== null && _a !== void 0 ? _a : {}; | ||
var object = structuredClone((_a = (isSearchParams(searchParams) ? urlSearchParamsToObject(searchParams) : searchParams)) !== null && _a !== void 0 ? _a : {}); | ||
var shape = schema._def.shape(); | ||
@@ -95,0 +101,0 @@ var allTypes = Object.entries(shape); |
{ | ||
"name": "zod-search-params", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Zod utility for parsing search params", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12182
145