@kubb/plugin-faker 4.12.14 → 4.13.0

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-Ch2QPCeM.cjs";
1
+ import { i as Schema, n as PluginFaker } from "./types-vr0YdaTv.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-nhM0qQqF.js";
1
+ import { i as Schema, n as PluginFaker } from "./types-Cp3c0VU1.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-Ch2QPCeM.cjs";
1
+ import { n as PluginFaker, r as ReactGenerator } from "./types-vr0YdaTv.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-nhM0qQqF.js";
1
+ import { n as PluginFaker, r as ReactGenerator } from "./types-Cp3c0VU1.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-Ch2QPCeM.cjs";
1
+ import { a as UserPluginWithLifeCycle, n as PluginFaker, t as Options } from "./types-vr0YdaTv.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-nhM0qQqF.js";
1
+ import { a as UserPluginWithLifeCycle, n as PluginFaker, t as Options } from "./types-Cp3c0VU1.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 oas_normalize_lib_types0 from "oas-normalize/lib/types";
4
4
  import BaseOas from "oas";
5
5
  import { Operation } from "oas/operation";
@@ -320,22 +320,24 @@ type Config<TInput = Input> = {
320
320
  * @default prettier
321
321
  *
322
322
  * Possible values:
323
+ * - 'auto': Automatically detects and uses biome or prettier (in that order of preference).
323
324
  * - 'prettier': Uses Prettier for code formatting.
324
325
  * - 'biome': Uses Biome for code formatting.
325
326
  *
326
327
  */
327
- format?: 'prettier' | 'biome' | false;
328
+ format?: 'auto' | 'prettier' | 'biome' | false;
328
329
  /**
329
330
  * Specifies the linter that should be used to analyze the code.
330
331
  * The accepted values indicate different linting tools.
331
332
  *
332
333
  * Possible values:
334
+ * - 'auto': Automatically detects and uses biome, oxlint, or eslint (in that order of preference).
333
335
  * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
334
336
  * - 'biome': Represents the Biome linter, a modern tool for code scanning.
335
337
  * - 'oxlint': Represents the Oxlint tool for linting purposes.
336
338
  *
337
339
  */
338
- lint?: 'eslint' | 'biome' | 'oxlint' | false;
340
+ lint?: 'auto' | 'eslint' | 'biome' | 'oxlint' | false;
339
341
  /**
340
342
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
341
343
  * @default { '.ts': '.ts'}
@@ -1262,4 +1264,4 @@ type ResolvedOptions = {
1262
1264
  type PluginFaker = PluginFactoryOptions<'plugin-faker', Options, ResolvedOptions, never, ResolvePathOptions>;
1263
1265
  //#endregion
1264
1266
  export { UserPluginWithLifeCycle as a, Schema as i, PluginFaker as n, ReactGenerator as r, Options as t };
1265
- //# sourceMappingURL=types-Ch2QPCeM.d.cts.map
1267
+ //# sourceMappingURL=types-Cp3c0VU1.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 oas_normalize_lib_types0 from "oas-normalize/lib/types";
4
4
  import BaseOas from "oas";
5
5
  import { Operation } from "oas/operation";
@@ -320,22 +320,24 @@ type Config<TInput = Input> = {
320
320
  * @default prettier
321
321
  *
322
322
  * Possible values:
323
+ * - 'auto': Automatically detects and uses biome or prettier (in that order of preference).
323
324
  * - 'prettier': Uses Prettier for code formatting.
324
325
  * - 'biome': Uses Biome for code formatting.
325
326
  *
326
327
  */
327
- format?: 'prettier' | 'biome' | false;
328
+ format?: 'auto' | 'prettier' | 'biome' | false;
328
329
  /**
329
330
  * Specifies the linter that should be used to analyze the code.
330
331
  * The accepted values indicate different linting tools.
331
332
  *
332
333
  * Possible values:
334
+ * - 'auto': Automatically detects and uses biome, oxlint, or eslint (in that order of preference).
333
335
  * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
334
336
  * - 'biome': Represents the Biome linter, a modern tool for code scanning.
335
337
  * - 'oxlint': Represents the Oxlint tool for linting purposes.
336
338
  *
337
339
  */
338
- lint?: 'eslint' | 'biome' | 'oxlint' | false;
340
+ lint?: 'auto' | 'eslint' | 'biome' | 'oxlint' | false;
339
341
  /**
340
342
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
341
343
  * @default { '.ts': '.ts'}
@@ -1262,4 +1264,4 @@ type ResolvedOptions = {
1262
1264
  type PluginFaker = PluginFactoryOptions<'plugin-faker', Options, ResolvedOptions, never, ResolvePathOptions>;
1263
1265
  //#endregion
1264
1266
  export { UserPluginWithLifeCycle as a, Schema as i, PluginFaker as n, ReactGenerator as r, Options as t };
1265
- //# sourceMappingURL=types-nhM0qQqF.d.ts.map
1267
+ //# sourceMappingURL=types-vr0YdaTv.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-faker",
3
- "version": "4.12.14",
3
+ "version": "4.13.0",
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.4",
72
- "@kubb/core": "4.12.14",
73
- "@kubb/oas": "4.12.14",
74
- "@kubb/plugin-oas": "4.12.14",
75
- "@kubb/plugin-ts": "4.12.14"
71
+ "@kubb/react-fabric": "0.9.0",
72
+ "@kubb/core": "4.13.0",
73
+ "@kubb/oas": "4.13.0",
74
+ "@kubb/plugin-oas": "4.13.0",
75
+ "@kubb/plugin-ts": "4.13.0"
76
76
  },
77
77
  "engines": {
78
78
  "node": ">=20"