@kubb/plugin-faker 4.12.7 → 4.12.9

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 Schema, n as PluginFaker } from "./types-CD44APnc.cjs";
1
+ import { i as Schema, n as PluginFaker } from "./types-Dn3FgEts.cjs";
2
2
  import { KubbNode } from "@kubb/react-fabric/types";
3
3
 
4
4
  //#region src/components/Faker.d.ts
@@ -1,4 +1,4 @@
1
- import { i as Schema, n as PluginFaker } from "./types-Cy9W-7-6.js";
1
+ import { i as Schema, n as PluginFaker } from "./types-CtFqK5F5.js";
2
2
  import { KubbNode } from "@kubb/react-fabric/types";
3
3
 
4
4
  //#region src/components/Faker.d.ts
@@ -1,4 +1,4 @@
1
- import { n as PluginFaker, r as ReactGenerator } from "./types-CD44APnc.cjs";
1
+ import { n as PluginFaker, r as ReactGenerator } from "./types-Dn3FgEts.cjs";
2
2
 
3
3
  //#region src/generators/fakerGenerator.d.ts
4
4
  declare const fakerGenerator: ReactGenerator<PluginFaker>;
@@ -1,4 +1,4 @@
1
- import { n as PluginFaker, r as ReactGenerator } from "./types-Cy9W-7-6.js";
1
+ import { n as PluginFaker, r as ReactGenerator } from "./types-CtFqK5F5.js";
2
2
 
3
3
  //#region src/generators/fakerGenerator.d.ts
4
4
  declare const fakerGenerator: ReactGenerator<PluginFaker>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as UserPluginWithLifeCycle, n as PluginFaker, t as Options } from "./types-CD44APnc.cjs";
1
+ import { a as UserPluginWithLifeCycle, n as PluginFaker, t as Options } from "./types-Dn3FgEts.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginFakerName = "plugin-faker";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as UserPluginWithLifeCycle, n as PluginFaker, t as Options } from "./types-Cy9W-7-6.js";
1
+ import { a as UserPluginWithLifeCycle, n as PluginFaker, t as Options } from "./types-CtFqK5F5.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginFakerName = "plugin-faker";
@@ -1,5 +1,5 @@
1
- import { KubbFile } from "@kubb/fabric-core/types";
2
1
  import { Fabric } from "@kubb/react-fabric";
2
+ import { KubbFile } from "@kubb/fabric-core/types";
3
3
  import * as OasTypes from "oas/types";
4
4
  import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
5
5
  import { Operation, Operation as Operation$1 } from "oas/operation";
@@ -134,21 +134,21 @@ interface KubbEvents {
134
134
  */
135
135
  'hooks:end': [];
136
136
  /**
137
- * Emitted when a single hook execution starts.
138
- */
139
- 'hook:start': [command: string];
140
- /**
141
- * Emitted to execute a hook command (e.g., format or lint).
137
+ * Emitted when a single hook execution starts. (e.g., format or lint).
142
138
  * The callback should be invoked when the command completes.
143
139
  */
144
- 'hook:execute': [{
145
- command: string | URL;
140
+ 'hook:start': [{
141
+ id?: string;
142
+ command: string;
146
143
  args?: readonly string[];
147
- }, cb: () => void];
144
+ }];
148
145
  /**
149
146
  * Emitted when a single hook execution completes.
150
147
  */
151
- 'hook:end': [command: string];
148
+ 'hook:end': [{
149
+ id?: string;
150
+ command: string;
151
+ }];
152
152
  /**
153
153
  * Emitted when a new version of Kubb is available.
154
154
  */
@@ -708,6 +708,7 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
708
708
  getRequestSchema(operation: Operation): SchemaObject | undefined;
709
709
  getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
710
710
  valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
711
+ flattenSchema(schema?: SchemaObject): SchemaObject | undefined;
711
712
  }
712
713
  //#endregion
713
714
  //#region ../plugin-oas/src/types.d.ts
@@ -1263,4 +1264,4 @@ type ResolvedOptions = {
1263
1264
  type PluginFaker = PluginFactoryOptions<'plugin-faker', Options, ResolvedOptions, never, ResolvePathOptions>;
1264
1265
  //#endregion
1265
1266
  export { UserPluginWithLifeCycle as a, Schema as i, PluginFaker as n, ReactGenerator as r, Options as t };
1266
- //# sourceMappingURL=types-CD44APnc.d.cts.map
1267
+ //# sourceMappingURL=types-CtFqK5F5.d.ts.map
@@ -1,5 +1,5 @@
1
- import { Fabric } from "@kubb/react-fabric";
2
1
  import { KubbFile } from "@kubb/fabric-core/types";
2
+ import { Fabric } from "@kubb/react-fabric";
3
3
  import * as OasTypes from "oas/types";
4
4
  import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
5
5
  import { Operation, Operation as Operation$1 } from "oas/operation";
@@ -134,21 +134,21 @@ interface KubbEvents {
134
134
  */
135
135
  'hooks:end': [];
136
136
  /**
137
- * Emitted when a single hook execution starts.
138
- */
139
- 'hook:start': [command: string];
140
- /**
141
- * Emitted to execute a hook command (e.g., format or lint).
137
+ * Emitted when a single hook execution starts. (e.g., format or lint).
142
138
  * The callback should be invoked when the command completes.
143
139
  */
144
- 'hook:execute': [{
145
- command: string | URL;
140
+ 'hook:start': [{
141
+ id?: string;
142
+ command: string;
146
143
  args?: readonly string[];
147
- }, cb: () => void];
144
+ }];
148
145
  /**
149
146
  * Emitted when a single hook execution completes.
150
147
  */
151
- 'hook:end': [command: string];
148
+ 'hook:end': [{
149
+ id?: string;
150
+ command: string;
151
+ }];
152
152
  /**
153
153
  * Emitted when a new version of Kubb is available.
154
154
  */
@@ -708,6 +708,7 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
708
708
  getRequestSchema(operation: Operation): SchemaObject | undefined;
709
709
  getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
710
710
  valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
711
+ flattenSchema(schema?: SchemaObject): SchemaObject | undefined;
711
712
  }
712
713
  //#endregion
713
714
  //#region ../plugin-oas/src/types.d.ts
@@ -1263,4 +1264,4 @@ type ResolvedOptions = {
1263
1264
  type PluginFaker = PluginFactoryOptions<'plugin-faker', Options, ResolvedOptions, never, ResolvePathOptions>;
1264
1265
  //#endregion
1265
1266
  export { UserPluginWithLifeCycle as a, Schema as i, PluginFaker as n, ReactGenerator as r, Options as t };
1266
- //# sourceMappingURL=types-Cy9W-7-6.d.ts.map
1267
+ //# sourceMappingURL=types-Dn3FgEts.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-faker",
3
- "version": "4.12.7",
3
+ "version": "4.12.9",
4
4
  "description": "Faker.js data generator plugin for Kubb, creating realistic mock data from OpenAPI specifications for development and testing.",
5
5
  "keywords": [
6
6
  "faker",
@@ -68,11 +68,11 @@
68
68
  }
69
69
  ],
70
70
  "dependencies": {
71
- "@kubb/react-fabric": "0.7.2",
72
- "@kubb/core": "4.12.7",
73
- "@kubb/oas": "4.12.7",
74
- "@kubb/plugin-oas": "4.12.7",
75
- "@kubb/plugin-ts": "4.12.7"
71
+ "@kubb/react-fabric": "0.7.4",
72
+ "@kubb/core": "4.12.9",
73
+ "@kubb/oas": "4.12.9",
74
+ "@kubb/plugin-oas": "4.12.9",
75
+ "@kubb/plugin-ts": "4.12.9"
76
76
  },
77
77
  "engines": {
78
78
  "node": ">=20"