@kubb/plugin-client 4.12.7 → 4.12.8

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.
@@ -1,4 +1,4 @@
1
- import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-BqsMSZBS.cjs";
1
+ import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-Dpu9XKqG.cjs";
2
2
  import { FunctionParams } from "@kubb/react-fabric";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-ms-ddFpz.js";
1
+ import { i as OperationSchemas, n as PluginClient, o as Operation } from "./types-CdFtT1i3.js";
2
2
  import { FunctionParams } from "@kubb/react-fabric";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { n as PluginClient, r as ReactGenerator } from "./types-BqsMSZBS.cjs";
1
+ import { n as PluginClient, r as ReactGenerator } from "./types-Dpu9XKqG.cjs";
2
2
 
3
3
  //#region src/generators/classClientGenerator.d.ts
4
4
  declare const classClientGenerator: ReactGenerator<PluginClient>;
@@ -1,4 +1,4 @@
1
- import { n as PluginClient, r as ReactGenerator } from "./types-ms-ddFpz.js";
1
+ import { n as PluginClient, r as ReactGenerator } from "./types-CdFtT1i3.js";
2
2
 
3
3
  //#region src/generators/classClientGenerator.d.ts
4
4
  declare const classClientGenerator: ReactGenerator<PluginClient>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-BqsMSZBS.cjs";
1
+ import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-Dpu9XKqG.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginClientName = "plugin-client";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-ms-ddFpz.js";
1
+ import { a as UserPluginWithLifeCycle, n as PluginClient, t as Options } from "./types-CdFtT1i3.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginClientName = "plugin-client";
@@ -169,21 +169,21 @@ interface KubbEvents {
169
169
  */
170
170
  'hooks:end': [];
171
171
  /**
172
- * Emitted when a single hook execution starts.
173
- */
174
- 'hook:start': [command: string];
175
- /**
176
- * Emitted to execute a hook command (e.g., format or lint).
172
+ * Emitted when a single hook execution starts. (e.g., format or lint).
177
173
  * The callback should be invoked when the command completes.
178
174
  */
179
- 'hook:execute': [{
180
- command: string | URL;
175
+ 'hook:start': [{
176
+ id?: string;
177
+ command: string;
181
178
  args?: readonly string[];
182
- }, cb: () => void];
179
+ }];
183
180
  /**
184
181
  * Emitted when a single hook execution completes.
185
182
  */
186
- 'hook:end': [command: string];
183
+ 'hook:end': [{
184
+ id?: string;
185
+ command: string;
186
+ }];
187
187
  /**
188
188
  * Emitted when a new version of Kubb is available.
189
189
  */
@@ -1291,4 +1291,4 @@ type ResolvedOptions = {
1291
1291
  type PluginClient = PluginFactoryOptions<'plugin-client', Options, ResolvedOptions, never, ResolvePathOptions>;
1292
1292
  //#endregion
1293
1293
  export { UserPluginWithLifeCycle as a, OperationSchemas as i, PluginClient as n, Operation$1 as o, ReactGenerator as r, Options as t };
1294
- //# sourceMappingURL=types-ms-ddFpz.d.ts.map
1294
+ //# sourceMappingURL=types-CdFtT1i3.d.ts.map
@@ -169,21 +169,21 @@ interface KubbEvents {
169
169
  */
170
170
  'hooks:end': [];
171
171
  /**
172
- * Emitted when a single hook execution starts.
173
- */
174
- 'hook:start': [command: string];
175
- /**
176
- * Emitted to execute a hook command (e.g., format or lint).
172
+ * Emitted when a single hook execution starts. (e.g., format or lint).
177
173
  * The callback should be invoked when the command completes.
178
174
  */
179
- 'hook:execute': [{
180
- command: string | URL;
175
+ 'hook:start': [{
176
+ id?: string;
177
+ command: string;
181
178
  args?: readonly string[];
182
- }, cb: () => void];
179
+ }];
183
180
  /**
184
181
  * Emitted when a single hook execution completes.
185
182
  */
186
- 'hook:end': [command: string];
183
+ 'hook:end': [{
184
+ id?: string;
185
+ command: string;
186
+ }];
187
187
  /**
188
188
  * Emitted when a new version of Kubb is available.
189
189
  */
@@ -1291,4 +1291,4 @@ type ResolvedOptions = {
1291
1291
  type PluginClient = PluginFactoryOptions<'plugin-client', Options, ResolvedOptions, never, ResolvePathOptions>;
1292
1292
  //#endregion
1293
1293
  export { UserPluginWithLifeCycle as a, OperationSchemas as i, PluginClient as n, Operation$1 as o, ReactGenerator as r, Options as t };
1294
- //# sourceMappingURL=types-BqsMSZBS.d.cts.map
1294
+ //# sourceMappingURL=types-Dpu9XKqG.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-client",
3
- "version": "4.12.7",
3
+ "version": "4.12.8",
4
4
  "description": "API client generator plugin for Kubb, creating type-safe HTTP clients (Axios, Fetch) from OpenAPI specifications for making API requests.",
5
5
  "keywords": [
6
6
  "api-client",
@@ -86,18 +86,18 @@
86
86
  }
87
87
  ],
88
88
  "dependencies": {
89
- "@kubb/react-fabric": "0.7.2",
90
- "@kubb/core": "4.12.7",
91
- "@kubb/oas": "4.12.7",
92
- "@kubb/plugin-oas": "4.12.7",
93
- "@kubb/plugin-ts": "4.12.7",
94
- "@kubb/plugin-zod": "4.12.7"
89
+ "@kubb/react-fabric": "0.7.4",
90
+ "@kubb/core": "4.12.8",
91
+ "@kubb/oas": "4.12.8",
92
+ "@kubb/plugin-oas": "4.12.8",
93
+ "@kubb/plugin-ts": "4.12.8",
94
+ "@kubb/plugin-zod": "4.12.8"
95
95
  },
96
96
  "devDependencies": {
97
97
  "axios": "^1.13.2"
98
98
  },
99
99
  "peerDependencies": {
100
- "@kubb/react-fabric": "0.7.2",
100
+ "@kubb/react-fabric": "0.7.4",
101
101
  "axios": "^1.7.2"
102
102
  },
103
103
  "peerDependenciesMeta": {