@kubb/plugin-svelte-query 4.12.5 → 4.12.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/generators.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{types-nK7WksPk.d.ts → types-CmMcbRGF.d.cts} +13 -5
- package/dist/{types-BeFuGbGB.d.cts → types-Fb1lyxgY.d.ts} +13 -5
- package/package.json +9 -9
package/dist/components.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as OperationSchemas, n as PluginSvelteQuery, r as Transformer, s as Operation } from "./types-
|
|
1
|
+
import { a as OperationSchemas, n as PluginSvelteQuery, r as Transformer, s as Operation } from "./types-CmMcbRGF.cjs";
|
|
2
2
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
3
3
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
4
4
|
|
package/dist/components.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as OperationSchemas, n as PluginSvelteQuery, r as Transformer, s as Operation } from "./types-
|
|
1
|
+
import { a as OperationSchemas, n as PluginSvelteQuery, r as Transformer, s as Operation } from "./types-Fb1lyxgY.js";
|
|
2
2
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
3
3
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
4
4
|
|
package/dist/generators.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ReactGenerator, n as PluginSvelteQuery } from "./types-
|
|
1
|
+
import { i as ReactGenerator, n as PluginSvelteQuery } from "./types-CmMcbRGF.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/generators/mutationGenerator.d.ts
|
|
4
4
|
declare const mutationGenerator: ReactGenerator<PluginSvelteQuery>;
|
package/dist/generators.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ReactGenerator, n as PluginSvelteQuery } from "./types-
|
|
1
|
+
import { i as ReactGenerator, n as PluginSvelteQuery } from "./types-Fb1lyxgY.js";
|
|
2
2
|
|
|
3
3
|
//#region src/generators/mutationGenerator.d.ts
|
|
4
4
|
declare const mutationGenerator: ReactGenerator<PluginSvelteQuery>;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PluginSvelteQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-
|
|
1
|
+
import { n as PluginSvelteQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-CmMcbRGF.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginSvelteQueryName = "plugin-svelte-query";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PluginSvelteQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-
|
|
1
|
+
import { n as PluginSvelteQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-Fb1lyxgY.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginSvelteQueryName = "plugin-svelte-query";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Fabric } from "@kubb/react-fabric";
|
|
2
1
|
import * as OasTypes from "oas/types";
|
|
3
2
|
import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
|
|
4
3
|
import { Operation, Operation as Operation$1 } from "oas/operation";
|
|
@@ -6,6 +5,7 @@ import { OpenAPIV3 } from "openapi-types";
|
|
|
6
5
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
7
6
|
import BaseOas from "oas";
|
|
8
7
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
8
|
+
import { Fabric } from "@kubb/react-fabric";
|
|
9
9
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
10
10
|
|
|
11
11
|
//#region ../oas/src/types.d.ts
|
|
@@ -100,7 +100,7 @@ type ExecutedMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
|
100
100
|
* console.log('Starting Kubb generation')
|
|
101
101
|
* })
|
|
102
102
|
*
|
|
103
|
-
* events.on('plugin:end', (plugin, duration) => {
|
|
103
|
+
* events.on('plugin:end', (plugin, { duration }) => {
|
|
104
104
|
* console.log(`Plugin ${plugin.name} completed in ${duration}ms`)
|
|
105
105
|
* })
|
|
106
106
|
* ```
|
|
@@ -246,8 +246,13 @@ interface KubbEvents {
|
|
|
246
246
|
'plugin:start': [plugin: Plugin];
|
|
247
247
|
/**
|
|
248
248
|
* Emitted when a plugin completes execution.
|
|
249
|
+
* Duration in ms
|
|
249
250
|
*/
|
|
250
|
-
'plugin:end': [plugin: Plugin,
|
|
251
|
+
'plugin:end': [plugin: Plugin, meta: {
|
|
252
|
+
duration: number;
|
|
253
|
+
success: boolean;
|
|
254
|
+
error?: Error;
|
|
255
|
+
}];
|
|
251
256
|
/**
|
|
252
257
|
* Emitted when plugin hook progress tracking starts.
|
|
253
258
|
* Contains the hook name and list of plugins to execute.
|
|
@@ -706,8 +711,11 @@ type FileMetaBase = {
|
|
|
706
711
|
};
|
|
707
712
|
//#endregion
|
|
708
713
|
//#region ../plugin-oas/src/types.d.ts
|
|
714
|
+
type GetOasOptions = {
|
|
715
|
+
validate?: boolean;
|
|
716
|
+
};
|
|
709
717
|
type Context$2 = {
|
|
710
|
-
getOas(): Promise<Oas>;
|
|
718
|
+
getOas(options?: GetOasOptions): Promise<Oas>;
|
|
711
719
|
getBaseURL(): Promise<string | undefined>;
|
|
712
720
|
};
|
|
713
721
|
declare global {
|
|
@@ -1416,4 +1424,4 @@ type ResolvedOptions = {
|
|
|
1416
1424
|
type PluginSvelteQuery = PluginFactoryOptions<'plugin-svelte-query', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1417
1425
|
//#endregion
|
|
1418
1426
|
export { OperationSchemas as a, ReactGenerator as i, PluginSvelteQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
|
|
1419
|
-
//# sourceMappingURL=types-
|
|
1427
|
+
//# sourceMappingURL=types-CmMcbRGF.d.cts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Fabric } from "@kubb/react-fabric";
|
|
1
2
|
import * as OasTypes from "oas/types";
|
|
2
3
|
import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
|
|
3
4
|
import { Operation, Operation as Operation$1 } from "oas/operation";
|
|
@@ -5,7 +6,6 @@ import { OpenAPIV3 } from "openapi-types";
|
|
|
5
6
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
6
7
|
import BaseOas from "oas";
|
|
7
8
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
8
|
-
import { Fabric } from "@kubb/react-fabric";
|
|
9
9
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
10
10
|
|
|
11
11
|
//#region ../oas/src/types.d.ts
|
|
@@ -100,7 +100,7 @@ type ExecutedMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
|
100
100
|
* console.log('Starting Kubb generation')
|
|
101
101
|
* })
|
|
102
102
|
*
|
|
103
|
-
* events.on('plugin:end', (plugin, duration) => {
|
|
103
|
+
* events.on('plugin:end', (plugin, { duration }) => {
|
|
104
104
|
* console.log(`Plugin ${plugin.name} completed in ${duration}ms`)
|
|
105
105
|
* })
|
|
106
106
|
* ```
|
|
@@ -246,8 +246,13 @@ interface KubbEvents {
|
|
|
246
246
|
'plugin:start': [plugin: Plugin];
|
|
247
247
|
/**
|
|
248
248
|
* Emitted when a plugin completes execution.
|
|
249
|
+
* Duration in ms
|
|
249
250
|
*/
|
|
250
|
-
'plugin:end': [plugin: Plugin,
|
|
251
|
+
'plugin:end': [plugin: Plugin, meta: {
|
|
252
|
+
duration: number;
|
|
253
|
+
success: boolean;
|
|
254
|
+
error?: Error;
|
|
255
|
+
}];
|
|
251
256
|
/**
|
|
252
257
|
* Emitted when plugin hook progress tracking starts.
|
|
253
258
|
* Contains the hook name and list of plugins to execute.
|
|
@@ -706,8 +711,11 @@ type FileMetaBase = {
|
|
|
706
711
|
};
|
|
707
712
|
//#endregion
|
|
708
713
|
//#region ../plugin-oas/src/types.d.ts
|
|
714
|
+
type GetOasOptions = {
|
|
715
|
+
validate?: boolean;
|
|
716
|
+
};
|
|
709
717
|
type Context$2 = {
|
|
710
|
-
getOas(): Promise<Oas>;
|
|
718
|
+
getOas(options?: GetOasOptions): Promise<Oas>;
|
|
711
719
|
getBaseURL(): Promise<string | undefined>;
|
|
712
720
|
};
|
|
713
721
|
declare global {
|
|
@@ -1416,4 +1424,4 @@ type ResolvedOptions = {
|
|
|
1416
1424
|
type PluginSvelteQuery = PluginFactoryOptions<'plugin-svelte-query', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1417
1425
|
//#endregion
|
|
1418
1426
|
export { OperationSchemas as a, ReactGenerator as i, PluginSvelteQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
|
|
1419
|
-
//# sourceMappingURL=types-
|
|
1427
|
+
//# sourceMappingURL=types-Fb1lyxgY.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-svelte-query",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.7",
|
|
4
4
|
"description": "Svelte Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for Svelte applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"svelte-query",
|
|
@@ -67,17 +67,17 @@
|
|
|
67
67
|
}
|
|
68
68
|
],
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@kubb/react-fabric": "0.7.
|
|
70
|
+
"@kubb/react-fabric": "0.7.2",
|
|
71
71
|
"remeda": "^2.32.0",
|
|
72
|
-
"@kubb/core": "4.12.
|
|
73
|
-
"@kubb/oas": "4.12.
|
|
74
|
-
"@kubb/plugin-client": "4.12.
|
|
75
|
-
"@kubb/plugin-oas": "4.12.
|
|
76
|
-
"@kubb/plugin-ts": "4.12.
|
|
77
|
-
"@kubb/plugin-zod": "4.12.
|
|
72
|
+
"@kubb/core": "4.12.7",
|
|
73
|
+
"@kubb/oas": "4.12.7",
|
|
74
|
+
"@kubb/plugin-client": "4.12.7",
|
|
75
|
+
"@kubb/plugin-oas": "4.12.7",
|
|
76
|
+
"@kubb/plugin-ts": "4.12.7",
|
|
77
|
+
"@kubb/plugin-zod": "4.12.7"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@kubb/react-fabric": "0.7.
|
|
80
|
+
"@kubb/react-fabric": "0.7.2"
|
|
81
81
|
},
|
|
82
82
|
"engines": {
|
|
83
83
|
"node": ">=20"
|