New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@cushin/api-codegen

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cushin/api-codegen - npm Package Compare versions

Comparing version
5.0.2
to
5.0.3
+4
-4
dist/cli.js

@@ -492,7 +492,7 @@ #!/usr/bin/env node

types.push(
`export type ${cap}Response = z.infer<typeof apiConfig.endpoints.${name}.response>;`
`export type ${cap}Response = z.infer<NonNullable<typeof apiConfig.endpoints.${name}.response>>;`
);
if (endpoint.body) {
types.push(
`export type ${cap}Input = z.infer<typeof apiConfig.endpoints.${name}.body>;`
`export type ${cap}Input = z.infer<NonNullable<typeof apiConfig.endpoints.${name}.body>>;`
);

@@ -502,3 +502,3 @@ }

types.push(
`export type ${cap}Query = z.infer<typeof apiConfig.endpoints.${name}.query>;`
`export type ${cap}Query = z.infer<NonNullable<typeof apiConfig.endpoints.${name}.query>>;`
);

@@ -508,3 +508,3 @@ }

types.push(
`export type ${cap}Params = z.infer<typeof apiConfig.endpoints.${name}.params>;`
`export type ${cap}Params = z.infer<NonNullable<typeof apiConfig.endpoints.${name}.params>>;`
);

@@ -511,0 +511,0 @@ }

@@ -489,7 +489,7 @@ // src/index.ts

types.push(
`export type ${cap}Response = z.infer<typeof apiConfig.endpoints.${name}.response>;`
`export type ${cap}Response = z.infer<NonNullable<typeof apiConfig.endpoints.${name}.response>>;`
);
if (endpoint.body) {
types.push(
`export type ${cap}Input = z.infer<typeof apiConfig.endpoints.${name}.body>;`
`export type ${cap}Input = z.infer<NonNullable<typeof apiConfig.endpoints.${name}.body>>;`
);

@@ -499,3 +499,3 @@ }

types.push(
`export type ${cap}Query = z.infer<typeof apiConfig.endpoints.${name}.query>;`
`export type ${cap}Query = z.infer<NonNullable<typeof apiConfig.endpoints.${name}.query>>;`
);

@@ -505,3 +505,3 @@ }

types.push(
`export type ${cap}Params = z.infer<typeof apiConfig.endpoints.${name}.params>;`
`export type ${cap}Params = z.infer<NonNullable<typeof apiConfig.endpoints.${name}.params>>;`
);

@@ -508,0 +508,0 @@ }

{
"name": "@cushin/api-codegen",
"version": "5.0.2",
"version": "5.0.3",
"description": "Type-safe API client generator for React/Next.js with automatic hooks and server actions generation",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display