New:Socket for Asana Is Now Available.Learn more
Get Started

@7nohe/openapi-react-query-codegen

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@7nohe/openapi-react-query-codegen - npm Package Compare versions

Comparing version
3.0.0
to
3.0.1
+2
-0
dist/tsmorph/projectFactory.d.mts

@@ -28,2 +28,4 @@ import { type ImportDeclarationStructure, Project } from "ts-morph";

* Build import structure for models.
* Emitted as a type-only import so generated code compiles under
* `verbatimModuleSyntax` (enabled by default in recent Vite templates).
*/

@@ -30,0 +32,0 @@ export declare function buildModelImport(ctx: GenerationContext): ImportDeclarationStructure | null;

+11
-8

@@ -46,10 +46,10 @@ import { IndentationText, NewLineKind, Project, QuoteKind, StructureKind, } from "ts-morph";

{ name: "useMutation" },
{ name: "UseQueryResult" },
{ name: "UseQueryOptions" },
{ name: "UseInfiniteQueryOptions" },
{ name: "UseSuspenseInfiniteQueryOptions" },
{ name: "UseMutationOptions" },
{ name: "UseMutationResult" },
{ name: "UseSuspenseQueryOptions" },
{ name: "InfiniteData" },
{ name: "UseQueryResult", isTypeOnly: true },
{ name: "UseQueryOptions", isTypeOnly: true },
{ name: "UseInfiniteQueryOptions", isTypeOnly: true },
{ name: "UseSuspenseInfiniteQueryOptions", isTypeOnly: true },
{ name: "UseMutationOptions", isTypeOnly: true },
{ name: "UseMutationResult", isTypeOnly: true },
{ name: "UseSuspenseQueryOptions", isTypeOnly: true },
{ name: "InfiniteData", isTypeOnly: true },
{ name: "FetchQueryOptions", isTypeOnly: true },

@@ -83,2 +83,4 @@ { name: "FetchInfiniteQueryOptions", isTypeOnly: true },

* Build import structure for models.
* Emitted as a type-only import so generated code compiles under
* `verbatimModuleSyntax` (enabled by default in recent Vite templates).
*/

@@ -92,2 +94,3 @@ export function buildModelImport(ctx) {

moduleSpecifier: "../requests/types.gen",
isTypeOnly: true,
namedImports: ctx.modelNames.map((name) => ({ name })),

@@ -94,0 +97,0 @@ };

{
"name": "@7nohe/openapi-react-query-codegen",
"version": "3.0.0",
"version": "3.0.1",
"description": "OpenAPI React Query Codegen",

@@ -5,0 +5,0 @@ "bin": {