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

zod-search-params

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zod-search-params - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

8

lib/index.js

@@ -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);

2

package.json
{
"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",

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