New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@navios/navios-zod

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@navios/navios-zod - npm Package Compare versions

Comparing version 0.4.0-alpha.2 to 0.4.0-alpha.3

9

dist/index.d.ts

@@ -53,4 +53,5 @@ import * as navios from 'navios';

type OptionalRequestEndpoint<Config extends EndpointConfig | EndpointWithDataConfig> = (request?: NaviosZodRequest<Config>) => Promise<z.infer<EndpointResponseSchema<Config>>>;
type Endpoint<Config extends EndpointConfig | EndpointWithDataConfig> = UrlHasParams<Config['url']> extends true ? RequiredRequestEndpoint<Config> : Config extends EndpointWithDataConfig ? RequiredRequestEndpoint<Config> : Config['querySchema'] extends AnyZodObject ? RequiredRequestEndpoint<Config> : OptionalRequestEndpoint<Config>;
type DataEndpointType<RequestSchema extends AnyZodObject, ResponseSchema extends AnyZodObject | ZodDiscriminatedUnion<any, any>, QuerySchema extends AnyZodObject | undefined = undefined> = QuerySchema extends undefined ? Endpoint<{
type EndpointWithoutQuery<Config extends EndpointConfig | EndpointWithDataConfig> = UrlHasParams<Config['url']> extends true ? RequiredRequestEndpoint<Config> : Config extends EndpointWithDataConfig ? RequiredRequestEndpoint<Config> : OptionalRequestEndpoint<Config>;
type Endpoint<Config extends EndpointConfig | EndpointWithDataConfig> = Config['querySchema'] extends AnyZodObject ? RequiredRequestEndpoint<Config> : EndpointWithoutQuery<Config>;
type DataEndpointType<RequestSchema extends AnyZodObject, ResponseSchema extends AnyZodObject | ZodDiscriminatedUnion<any, any>, QuerySchema extends AnyZodObject | undefined = undefined> = QuerySchema extends undefined ? EndpointWithoutQuery<{
method: 'POST' | 'PUT' | 'PATCH';

@@ -67,3 +68,3 @@ requestSchema: RequestSchema;

}>;
type EndpointType<ResponseSchema extends AnyZodObject | ZodDiscriminatedUnion<any, any>, QuerySchema extends AnyZodObject | undefined = undefined> = QuerySchema extends undefined ? Endpoint<{
type EndpointType<ResponseSchema extends AnyZodObject | ZodDiscriminatedUnion<any, any>, QuerySchema extends AnyZodObject | undefined = undefined> = QuerySchema extends undefined ? EndpointWithoutQuery<{
method: HttpMethod;

@@ -135,2 +136,2 @@ responseSchema: ResponseSchema;

export { type APIConfig, type DataEndpointType, type DeclareAPIConfig, type Endpoint, type EndpointConfig, type EndpointMethod, type EndpointQuerySchema, type EndpointRequestSchema, type EndpointResponseSchema, type EndpointType, type EndpointURL, type EndpointWithDataConfig, type IsEndpointWithData, type NaviosZodRequest, type NaviosZodRequestBase, type OptionalRequestEndpoint, type ParsePathParams, type RequiredRequestEndpoint, type UrlHasParams, type UrlParams, createAPI, declareAPI };
export { type APIConfig, type DataEndpointType, type DeclareAPIConfig, type Endpoint, type EndpointConfig, type EndpointMethod, type EndpointQuerySchema, type EndpointRequestSchema, type EndpointResponseSchema, type EndpointType, type EndpointURL, type EndpointWithDataConfig, type EndpointWithoutQuery, type IsEndpointWithData, type NaviosZodRequest, type NaviosZodRequestBase, type OptionalRequestEndpoint, type ParsePathParams, type RequiredRequestEndpoint, type UrlHasParams, type UrlParams, createAPI, declareAPI };
{
"name": "@navios/navios-zod",
"version": "0.4.0-alpha.2",
"version": "0.4.0-alpha.3",
"author": {

@@ -5,0 +5,0 @@ "name": "Oleksandr Hanzha",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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