@kubb/plugin-faker 3.17.1 → 3.18.1

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 { PluginFaker, Schema } from "./types-Bh_6SttY.cjs";
1
+ import { PluginFaker, Schema } from "./types-B1Xb1ZXg.cjs";
2
2
 
3
3
  //#region src/components/Faker.d.ts
4
4
  type Props = {
@@ -1,4 +1,4 @@
1
- import { PluginFaker, Schema } from "./types-DYUKPbgH.js";
1
+ import { PluginFaker, Schema } from "./types-DsDfBfOk.js";
2
2
 
3
3
  //#region src/components/Faker.d.ts
4
4
  type Props = {
@@ -1,4 +1,4 @@
1
- import { Generator, PluginFaker } from "./types-Bh_6SttY.cjs";
1
+ import { Generator, PluginFaker } from "./types-B1Xb1ZXg.cjs";
2
2
 
3
3
  //#region src/generators/fakerGenerator.d.ts
4
4
  declare const fakerGenerator: Generator<PluginFaker>;
@@ -1,4 +1,4 @@
1
- import { Generator, PluginFaker } from "./types-DYUKPbgH.js";
1
+ import { Generator, PluginFaker } from "./types-DsDfBfOk.js";
2
2
 
3
3
  //#region src/generators/fakerGenerator.d.ts
4
4
  declare const fakerGenerator: Generator<PluginFaker>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options, PluginFaker, UserPluginWithLifeCycle } from "./types-Bh_6SttY.cjs";
1
+ import { Options, PluginFaker, UserPluginWithLifeCycle } from "./types-B1Xb1ZXg.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 { Options, PluginFaker, UserPluginWithLifeCycle } from "./types-DYUKPbgH.js";
1
+ import { Options, PluginFaker, UserPluginWithLifeCycle } from "./types-DsDfBfOk.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginFakerName = "plugin-faker";
@@ -235,6 +235,27 @@ type Config<TInput = Input> = {
235
235
  * @default true
236
236
  */
237
237
  write?: boolean;
238
+ /**
239
+ * Specifies the formatting tool to be used.
240
+ * @default prettier
241
+ *
242
+ * Possible values:
243
+ * - 'prettier': Uses Prettier for code formatting.
244
+ * - 'biome': Uses Biome for code formatting.
245
+ *
246
+ */
247
+ format?: 'prettier' | 'biome' | false;
248
+ /**
249
+ * Specifies the linter that should be used to analyze the code.
250
+ * The accepted values indicate different linting tools.
251
+ *
252
+ * Possible values:
253
+ * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
254
+ * - 'biome': Represents the Biome linter, a modern tool for code scanning.
255
+ * - 'oxlint': Represents the Oxlint tool for linting purposes.
256
+ *
257
+ */
258
+ lint?: 'eslint' | 'biome' | 'oxlint' | false;
238
259
  /**
239
260
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
240
261
  * @default { '.ts': '.ts'}
@@ -1211,4 +1232,4 @@ type ResolvedOptions = {
1211
1232
  type PluginFaker = PluginFactoryOptions<'plugin-faker', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1212
1233
  //#endregion
1213
1234
  export { Generator, Options$1 as Options, PluginFaker, Schema, UserPluginWithLifeCycle };
1214
- //# sourceMappingURL=types-DYUKPbgH.d.ts.map
1235
+ //# sourceMappingURL=types-B1Xb1ZXg.d.cts.map
@@ -235,6 +235,27 @@ type Config<TInput = Input> = {
235
235
  * @default true
236
236
  */
237
237
  write?: boolean;
238
+ /**
239
+ * Specifies the formatting tool to be used.
240
+ * @default prettier
241
+ *
242
+ * Possible values:
243
+ * - 'prettier': Uses Prettier for code formatting.
244
+ * - 'biome': Uses Biome for code formatting.
245
+ *
246
+ */
247
+ format?: 'prettier' | 'biome' | false;
248
+ /**
249
+ * Specifies the linter that should be used to analyze the code.
250
+ * The accepted values indicate different linting tools.
251
+ *
252
+ * Possible values:
253
+ * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
254
+ * - 'biome': Represents the Biome linter, a modern tool for code scanning.
255
+ * - 'oxlint': Represents the Oxlint tool for linting purposes.
256
+ *
257
+ */
258
+ lint?: 'eslint' | 'biome' | 'oxlint' | false;
238
259
  /**
239
260
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
240
261
  * @default { '.ts': '.ts'}
@@ -1211,4 +1232,4 @@ type ResolvedOptions = {
1211
1232
  type PluginFaker = PluginFactoryOptions<'plugin-faker', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1212
1233
  //#endregion
1213
1234
  export { Generator, Options$1 as Options, PluginFaker, Schema, UserPluginWithLifeCycle };
1214
- //# sourceMappingURL=types-Bh_6SttY.d.cts.map
1235
+ //# sourceMappingURL=types-DsDfBfOk.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-faker",
3
- "version": "3.17.1",
3
+ "version": "3.18.1",
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",
@@ -61,17 +61,17 @@
61
61
  "!/**/__tests__/**"
62
62
  ],
63
63
  "dependencies": {
64
- "@kubb/core": "3.17.1",
65
- "@kubb/oas": "3.17.1",
66
- "@kubb/plugin-oas": "3.17.1",
67
- "@kubb/plugin-ts": "3.17.1",
68
- "@kubb/react": "3.17.1"
64
+ "@kubb/core": "3.18.1",
65
+ "@kubb/oas": "3.18.1",
66
+ "@kubb/plugin-oas": "3.18.1",
67
+ "@kubb/plugin-ts": "3.18.1",
68
+ "@kubb/react": "3.18.1"
69
69
  },
70
70
  "devDependencies": {
71
71
  "tsdown": "^0.14.1",
72
72
  "typescript": "^5.9.2",
73
- "@kubb/config-ts": "3.17.1",
74
- "@kubb/plugin-oas": "3.17.1"
73
+ "@kubb/config-ts": "3.18.1",
74
+ "@kubb/plugin-oas": "3.18.1"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@kubb/react": "^3.0.0"