@kubb/plugin-faker 4.10.0 → 4.10.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.
- package/dist/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/generators.cjs +0 -1
- package/dist/generators.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/generators.js +0 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/{types-JsM2Z14N.d.ts → types-B1FgdqYL.d.cts} +21 -21
- package/dist/{types-uPoEoB49.d.cts → types-DgJG4t24.d.ts} +21 -21
- package/package.json +12 -12
package/dist/components.d.cts
CHANGED
package/dist/components.d.ts
CHANGED
package/dist/generators.cjs
CHANGED
package/dist/generators.d.cts
CHANGED
package/dist/generators.d.ts
CHANGED
package/dist/generators.js
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as UserPluginWithLifeCycle, n as PluginFaker, t as Options } from "./types-
|
|
1
|
+
import { a as UserPluginWithLifeCycle, n as PluginFaker, t as Options } from "./types-B1FgdqYL.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-
|
|
1
|
+
import { a as UserPluginWithLifeCycle, n as PluginFaker, t as Options } from "./types-DgJG4t24.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginFakerName = "plugin-faker";
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["options","groupName: Group['name']","transformers"],"sources":["../src/plugin.ts"],"sourcesContent":["import path from 'node:path'\nimport { definePlugin, type Group, getBarrelFiles, getMode } from '@kubb/core'\nimport { camelCase } from '@kubb/core/transformers'\nimport { OperationGenerator, pluginOasName, SchemaGenerator } from '@kubb/plugin-oas'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { fakerGenerator } from './generators/fakerGenerator.tsx'\nimport type { PluginFaker } from './types.ts'\n\nexport const pluginFakerName = 'plugin-faker' satisfies PluginFaker['name']\n\nexport const pluginFaker = definePlugin<PluginFaker>((options) => {\n const {\n output = { path: 'mocks', barrelType: 'named' },\n seed,\n group,\n exclude = [],\n include,\n override = [],\n transformers = {},\n mapper = {},\n unknownType = 'any',\n emptySchemaType = unknownType,\n dateType = 'string',\n dateParser = 'faker',\n generators = [fakerGenerator].filter(Boolean),\n regexGenerator = 'faker',\n contentType,\n } = options\n\n const usedEnumNames = {}\n\n return {\n name: pluginFakerName,\n options: {\n output,\n transformers,\n seed,\n dateType,\n unknownType,\n emptySchemaType,\n dateParser,\n mapper,\n override,\n regexGenerator,\n group,\n usedEnumNames,\n },\n pre: [pluginOasName, pluginTsName],\n resolvePath(baseName, pathMode, options) {\n const root = path.resolve(this.config.root, this.config.output.path)\n const mode = pathMode ?? getMode(path.resolve(root, output.path))\n\n if (mode === 'single') {\n /**\n * when output is a file then we will always append to the same file(output file), see fileManager.addOrAppend\n * Other plugins then need to call addOrAppend instead of just add from the fileManager class\n */\n return path.resolve(root, output.path)\n }\n\n if (group && (options?.group?.path || options?.group?.tag)) {\n const groupName: Group['name'] = group?.name\n ? group.name\n : (ctx) => {\n if (group?.type === 'path') {\n return `${ctx.group.split('/')[1]}`\n }\n return `${camelCase(ctx.group)}Controller`\n }\n\n return path.resolve(\n root,\n output.path,\n groupName({\n group: group.type === 'path' ? options.group.path! : options.group.tag!,\n }),\n baseName,\n )\n }\n\n return path.resolve(root, output.path, baseName)\n },\n resolveName(name, type) {\n const resolvedName = camelCase(name, {\n prefix: type ? 'create' : undefined,\n isFile: type === 'file',\n })\n\n if (type) {\n return transformers?.name?.(resolvedName, type) || resolvedName\n }\n\n return resolvedName\n },\n async install() {\n const root = path.resolve(this.config.root, this.config.output.path)\n const mode = getMode(path.resolve(root, output.path))\n const oas = await this.getOas()\n\n const schemaGenerator = new SchemaGenerator(this.plugin.options, {\n fabric: this.fabric,\n oas,\n pluginManager: this.pluginManager,\n plugin: this.plugin,\n contentType,\n include: undefined,\n override,\n mode,\n output: output.path,\n })\n\n const schemaFiles = await schemaGenerator.build(...generators)\n await this.upsertFile(...schemaFiles)\n\n const operationGenerator = new OperationGenerator(this.plugin.options, {\n fabric: this.fabric,\n oas,\n pluginManager: this.pluginManager,\n plugin: this.plugin,\n contentType,\n exclude,\n include,\n override,\n mode,\n })\n\n const operationFiles = await operationGenerator.build(...generators)\n await this.upsertFile(...operationFiles)\n\n const barrelFiles = await getBarrelFiles(this.fabric.files, {\n type: output.barrelType ?? 'named',\n root,\n output,\n meta: {\n pluginKey: this.plugin.key,\n },\n logger: this.logger,\n })\n\n await this.upsertFile(...barrelFiles)\n },\n }\n})\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["options","groupName: Group['name']","transformers"],"sources":["../src/plugin.ts"],"sourcesContent":["import path from 'node:path'\nimport { definePlugin, type Group, getBarrelFiles, getMode } from '@kubb/core'\nimport { camelCase } from '@kubb/core/transformers'\nimport { OperationGenerator, pluginOasName, SchemaGenerator } from '@kubb/plugin-oas'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { fakerGenerator } from './generators/fakerGenerator.tsx'\nimport type { PluginFaker } from './types.ts'\n\nexport const pluginFakerName = 'plugin-faker' satisfies PluginFaker['name']\n\nexport const pluginFaker = definePlugin<PluginFaker>((options) => {\n const {\n output = { path: 'mocks', barrelType: 'named' },\n seed,\n group,\n exclude = [],\n include,\n override = [],\n transformers = {},\n mapper = {},\n unknownType = 'any',\n emptySchemaType = unknownType,\n dateType = 'string',\n dateParser = 'faker',\n generators = [fakerGenerator].filter(Boolean),\n regexGenerator = 'faker',\n contentType,\n } = options\n\n const usedEnumNames = {}\n\n return {\n name: pluginFakerName,\n options: {\n output,\n transformers,\n seed,\n dateType,\n unknownType,\n emptySchemaType,\n dateParser,\n mapper,\n override,\n regexGenerator,\n group,\n usedEnumNames,\n },\n pre: [pluginOasName, pluginTsName],\n resolvePath(baseName, pathMode, options) {\n const root = path.resolve(this.config.root, this.config.output.path)\n const mode = pathMode ?? getMode(path.resolve(root, output.path))\n\n if (mode === 'single') {\n /**\n * when output is a file then we will always append to the same file(output file), see fileManager.addOrAppend\n * Other plugins then need to call addOrAppend instead of just add from the fileManager class\n */\n return path.resolve(root, output.path)\n }\n\n if (group && (options?.group?.path || options?.group?.tag)) {\n const groupName: Group['name'] = group?.name\n ? group.name\n : (ctx) => {\n if (group?.type === 'path') {\n return `${ctx.group.split('/')[1]}`\n }\n return `${camelCase(ctx.group)}Controller`\n }\n\n return path.resolve(\n root,\n output.path,\n groupName({\n group: group.type === 'path' ? options.group.path! : options.group.tag!,\n }),\n baseName,\n )\n }\n\n return path.resolve(root, output.path, baseName)\n },\n resolveName(name, type) {\n const resolvedName = camelCase(name, {\n prefix: type ? 'create' : undefined,\n isFile: type === 'file',\n })\n\n if (type) {\n return transformers?.name?.(resolvedName, type) || resolvedName\n }\n\n return resolvedName\n },\n async install() {\n const root = path.resolve(this.config.root, this.config.output.path)\n const mode = getMode(path.resolve(root, output.path))\n const oas = await this.getOas()\n\n const schemaGenerator = new SchemaGenerator(this.plugin.options, {\n fabric: this.fabric,\n oas,\n pluginManager: this.pluginManager,\n plugin: this.plugin,\n contentType,\n include: undefined,\n override,\n mode,\n output: output.path,\n })\n\n const schemaFiles = await schemaGenerator.build(...generators)\n await this.upsertFile(...schemaFiles)\n\n const operationGenerator = new OperationGenerator(this.plugin.options, {\n fabric: this.fabric,\n oas,\n pluginManager: this.pluginManager,\n plugin: this.plugin,\n contentType,\n exclude,\n include,\n override,\n mode,\n })\n\n const operationFiles = await operationGenerator.build(...generators)\n await this.upsertFile(...operationFiles)\n\n const barrelFiles = await getBarrelFiles(this.fabric.files, {\n type: output.barrelType ?? 'named',\n root,\n output,\n meta: {\n pluginKey: this.plugin.key,\n },\n logger: this.logger,\n })\n\n await this.upsertFile(...barrelFiles)\n },\n }\n})\n"],"mappings":";;;;;;;;AAQA,MAAa,kBAAkB;AAE/B,MAAa,cAAc,cAA2B,YAAY;CAChE,MAAM,EACJ,SAAS;EAAE,MAAM;EAAS,YAAY;EAAS,EAC/C,MACA,OACA,UAAU,EAAE,EACZ,SACA,WAAW,EAAE,EACb,+BAAe,EAAE,EACjB,SAAS,EAAE,EACX,cAAc,OACd,kBAAkB,aAClB,WAAW,UACX,aAAa,SACb,aAAa,CAAC,eAAe,CAAC,OAAO,QAAQ,EAC7C,iBAAiB,SACjB,gBACE;AAIJ,QAAO;EACL,MAAM;EACN,SAAS;GACP;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA,eAhBkB,EAAE;GAiBrB;EACD,KAAK,CAAC,eAAe,aAAa;EAClC,YAAY,UAAU,UAAU,WAAS;GACvC,MAAM,OAAO,KAAK,QAAQ,KAAK,OAAO,MAAM,KAAK,OAAO,OAAO,KAAK;AAGpE,QAFa,YAAY,QAAQ,KAAK,QAAQ,MAAM,OAAO,KAAK,CAAC,MAEpD;;;;;AAKX,UAAO,KAAK,QAAQ,MAAM,OAAO,KAAK;AAGxC,OAAI,UAAUA,WAAS,OAAO,QAAQA,WAAS,OAAO,MAAM;IAC1D,MAAMC,YAA2B,OAAO,OACpC,MAAM,QACL,QAAQ;AACP,SAAI,OAAO,SAAS,OAClB,QAAO,GAAG,IAAI,MAAM,MAAM,IAAI,CAAC;AAEjC,YAAO,GAAG,UAAU,IAAI,MAAM,CAAC;;AAGrC,WAAO,KAAK,QACV,MACA,OAAO,MACP,UAAU,EACR,OAAO,MAAM,SAAS,SAASD,UAAQ,MAAM,OAAQA,UAAQ,MAAM,KACpE,CAAC,EACF,SACD;;AAGH,UAAO,KAAK,QAAQ,MAAM,OAAO,MAAM,SAAS;;EAElD,YAAY,MAAM,MAAM;GACtB,MAAM,eAAe,UAAU,MAAM;IACnC,QAAQ,OAAO,WAAW;IAC1B,QAAQ,SAAS;IAClB,CAAC;AAEF,OAAI,KACF,QAAOE,gBAAc,OAAO,cAAc,KAAK,IAAI;AAGrD,UAAO;;EAET,MAAM,UAAU;GACd,MAAM,OAAO,KAAK,QAAQ,KAAK,OAAO,MAAM,KAAK,OAAO,OAAO,KAAK;GACpE,MAAM,OAAO,QAAQ,KAAK,QAAQ,MAAM,OAAO,KAAK,CAAC;GACrD,MAAM,MAAM,MAAM,KAAK,QAAQ;GAc/B,MAAM,cAAc,MAZI,IAAI,gBAAgB,KAAK,OAAO,SAAS;IAC/D,QAAQ,KAAK;IACb;IACA,eAAe,KAAK;IACpB,QAAQ,KAAK;IACb;IACA,SAAS;IACT;IACA;IACA,QAAQ,OAAO;IAChB,CAAC,CAEwC,MAAM,GAAG,WAAW;AAC9D,SAAM,KAAK,WAAW,GAAG,YAAY;GAcrC,MAAM,iBAAiB,MAZI,IAAI,mBAAmB,KAAK,OAAO,SAAS;IACrE,QAAQ,KAAK;IACb;IACA,eAAe,KAAK;IACpB,QAAQ,KAAK;IACb;IACA;IACA;IACA;IACA;IACD,CAAC,CAE8C,MAAM,GAAG,WAAW;AACpE,SAAM,KAAK,WAAW,GAAG,eAAe;GAExC,MAAM,cAAc,MAAM,eAAe,KAAK,OAAO,OAAO;IAC1D,MAAM,OAAO,cAAc;IAC3B;IACA;IACA,MAAM,EACJ,WAAW,KAAK,OAAO,KACxB;IACD,QAAQ,KAAK;IACd,CAAC;AAEF,SAAM,KAAK,WAAW,GAAG,YAAY;;EAExC;EACD"}
|
|
@@ -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 { ConsolaInstance, LogLevel } from "consola";
|
|
4
4
|
import * as OasTypes from "oas/types";
|
|
5
5
|
import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
|
|
@@ -392,7 +392,7 @@ type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseRe
|
|
|
392
392
|
result: Result;
|
|
393
393
|
plugin: Plugin;
|
|
394
394
|
};
|
|
395
|
-
type Options$
|
|
395
|
+
type Options$2 = {
|
|
396
396
|
fabric: Fabric;
|
|
397
397
|
logger: Logger;
|
|
398
398
|
/**
|
|
@@ -418,8 +418,8 @@ declare class PluginManager {
|
|
|
418
418
|
readonly config: Config;
|
|
419
419
|
readonly executed: Array<Executer>;
|
|
420
420
|
readonly logger: Logger;
|
|
421
|
-
readonly options: Options$
|
|
422
|
-
constructor(config: Config, options: Options$
|
|
421
|
+
readonly options: Options$2;
|
|
422
|
+
constructor(config: Config, options: Options$2);
|
|
423
423
|
getContext<TOptions extends PluginFactoryOptions>(plugin: Plugin<TOptions>): PluginContext<TOptions> & Record<string, any>;
|
|
424
424
|
get plugins(): Array<Plugin>;
|
|
425
425
|
getFile<TOptions = object>({
|
|
@@ -534,7 +534,7 @@ type SchemaObject$1 = OasTypes.SchemaObject & {
|
|
|
534
534
|
};
|
|
535
535
|
//#endregion
|
|
536
536
|
//#region ../oas/src/Oas.d.ts
|
|
537
|
-
type Options$
|
|
537
|
+
type Options$1 = {
|
|
538
538
|
contentType?: contentType;
|
|
539
539
|
discriminator?: 'strict' | 'inherit';
|
|
540
540
|
};
|
|
@@ -548,8 +548,8 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
|
|
|
548
548
|
oas: TOAS | OASDocument | string;
|
|
549
549
|
user?: User;
|
|
550
550
|
});
|
|
551
|
-
setOptions(options: Options$
|
|
552
|
-
get options(): Options$
|
|
551
|
+
setOptions(options: Options$1): void;
|
|
552
|
+
get options(): Options$1;
|
|
553
553
|
get($ref: string): any;
|
|
554
554
|
getKey($ref: string): string | undefined;
|
|
555
555
|
set($ref: string, value: unknown): false | undefined;
|
|
@@ -1006,7 +1006,7 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
|
|
|
1006
1006
|
};
|
|
1007
1007
|
//#endregion
|
|
1008
1008
|
//#region src/types.d.ts
|
|
1009
|
-
type Options
|
|
1009
|
+
type Options = {
|
|
1010
1010
|
/**
|
|
1011
1011
|
* Specify the export location for the files and define the behavior of the output
|
|
1012
1012
|
* @default { path: 'handlers', barrelType: 'named' }
|
|
@@ -1095,18 +1095,18 @@ type Options$1 = {
|
|
|
1095
1095
|
};
|
|
1096
1096
|
type ResolvedOptions = {
|
|
1097
1097
|
output: Output<Oas>;
|
|
1098
|
-
group: Options
|
|
1099
|
-
override: NonNullable<Options
|
|
1100
|
-
dateType: NonNullable<Options
|
|
1101
|
-
dateParser: NonNullable<Options
|
|
1102
|
-
unknownType: NonNullable<Options
|
|
1103
|
-
emptySchemaType: NonNullable<Options
|
|
1104
|
-
transformers: NonNullable<Options
|
|
1105
|
-
seed: NonNullable<Options
|
|
1106
|
-
mapper: NonNullable<Options
|
|
1107
|
-
regexGenerator: NonNullable<Options
|
|
1098
|
+
group: Options['group'];
|
|
1099
|
+
override: NonNullable<Options['override']>;
|
|
1100
|
+
dateType: NonNullable<Options['dateType']>;
|
|
1101
|
+
dateParser: NonNullable<Options['dateParser']>;
|
|
1102
|
+
unknownType: NonNullable<Options['unknownType']>;
|
|
1103
|
+
emptySchemaType: NonNullable<Options['emptySchemaType']>;
|
|
1104
|
+
transformers: NonNullable<Options['transformers']>;
|
|
1105
|
+
seed: NonNullable<Options['seed']> | undefined;
|
|
1106
|
+
mapper: NonNullable<Options['mapper']>;
|
|
1107
|
+
regexGenerator: NonNullable<Options['regexGenerator']>;
|
|
1108
1108
|
};
|
|
1109
|
-
type PluginFaker = PluginFactoryOptions<'plugin-faker', Options
|
|
1109
|
+
type PluginFaker = PluginFactoryOptions<'plugin-faker', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1110
1110
|
//#endregion
|
|
1111
|
-
export { UserPluginWithLifeCycle as a, Schema as i, PluginFaker as n, ReactGenerator as r, Options
|
|
1112
|
-
//# sourceMappingURL=types-
|
|
1111
|
+
export { UserPluginWithLifeCycle as a, Schema as i, PluginFaker as n, ReactGenerator as r, Options as t };
|
|
1112
|
+
//# sourceMappingURL=types-B1FgdqYL.d.cts.map
|
|
@@ -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 { ConsolaInstance, LogLevel } from "consola";
|
|
4
4
|
import * as OasTypes from "oas/types";
|
|
5
5
|
import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
|
|
@@ -392,7 +392,7 @@ type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseRe
|
|
|
392
392
|
result: Result;
|
|
393
393
|
plugin: Plugin;
|
|
394
394
|
};
|
|
395
|
-
type Options$
|
|
395
|
+
type Options$2 = {
|
|
396
396
|
fabric: Fabric;
|
|
397
397
|
logger: Logger;
|
|
398
398
|
/**
|
|
@@ -418,8 +418,8 @@ declare class PluginManager {
|
|
|
418
418
|
readonly config: Config;
|
|
419
419
|
readonly executed: Array<Executer>;
|
|
420
420
|
readonly logger: Logger;
|
|
421
|
-
readonly options: Options$
|
|
422
|
-
constructor(config: Config, options: Options$
|
|
421
|
+
readonly options: Options$2;
|
|
422
|
+
constructor(config: Config, options: Options$2);
|
|
423
423
|
getContext<TOptions extends PluginFactoryOptions>(plugin: Plugin<TOptions>): PluginContext<TOptions> & Record<string, any>;
|
|
424
424
|
get plugins(): Array<Plugin>;
|
|
425
425
|
getFile<TOptions = object>({
|
|
@@ -534,7 +534,7 @@ type SchemaObject$1 = OasTypes.SchemaObject & {
|
|
|
534
534
|
};
|
|
535
535
|
//#endregion
|
|
536
536
|
//#region ../oas/src/Oas.d.ts
|
|
537
|
-
type Options$
|
|
537
|
+
type Options$1 = {
|
|
538
538
|
contentType?: contentType;
|
|
539
539
|
discriminator?: 'strict' | 'inherit';
|
|
540
540
|
};
|
|
@@ -548,8 +548,8 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
|
|
|
548
548
|
oas: TOAS | OASDocument | string;
|
|
549
549
|
user?: User;
|
|
550
550
|
});
|
|
551
|
-
setOptions(options: Options$
|
|
552
|
-
get options(): Options$
|
|
551
|
+
setOptions(options: Options$1): void;
|
|
552
|
+
get options(): Options$1;
|
|
553
553
|
get($ref: string): any;
|
|
554
554
|
getKey($ref: string): string | undefined;
|
|
555
555
|
set($ref: string, value: unknown): false | undefined;
|
|
@@ -1006,7 +1006,7 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
|
|
|
1006
1006
|
};
|
|
1007
1007
|
//#endregion
|
|
1008
1008
|
//#region src/types.d.ts
|
|
1009
|
-
type Options
|
|
1009
|
+
type Options = {
|
|
1010
1010
|
/**
|
|
1011
1011
|
* Specify the export location for the files and define the behavior of the output
|
|
1012
1012
|
* @default { path: 'handlers', barrelType: 'named' }
|
|
@@ -1095,18 +1095,18 @@ type Options$1 = {
|
|
|
1095
1095
|
};
|
|
1096
1096
|
type ResolvedOptions = {
|
|
1097
1097
|
output: Output<Oas>;
|
|
1098
|
-
group: Options
|
|
1099
|
-
override: NonNullable<Options
|
|
1100
|
-
dateType: NonNullable<Options
|
|
1101
|
-
dateParser: NonNullable<Options
|
|
1102
|
-
unknownType: NonNullable<Options
|
|
1103
|
-
emptySchemaType: NonNullable<Options
|
|
1104
|
-
transformers: NonNullable<Options
|
|
1105
|
-
seed: NonNullable<Options
|
|
1106
|
-
mapper: NonNullable<Options
|
|
1107
|
-
regexGenerator: NonNullable<Options
|
|
1098
|
+
group: Options['group'];
|
|
1099
|
+
override: NonNullable<Options['override']>;
|
|
1100
|
+
dateType: NonNullable<Options['dateType']>;
|
|
1101
|
+
dateParser: NonNullable<Options['dateParser']>;
|
|
1102
|
+
unknownType: NonNullable<Options['unknownType']>;
|
|
1103
|
+
emptySchemaType: NonNullable<Options['emptySchemaType']>;
|
|
1104
|
+
transformers: NonNullable<Options['transformers']>;
|
|
1105
|
+
seed: NonNullable<Options['seed']> | undefined;
|
|
1106
|
+
mapper: NonNullable<Options['mapper']>;
|
|
1107
|
+
regexGenerator: NonNullable<Options['regexGenerator']>;
|
|
1108
1108
|
};
|
|
1109
|
-
type PluginFaker = PluginFactoryOptions<'plugin-faker', Options
|
|
1109
|
+
type PluginFaker = PluginFactoryOptions<'plugin-faker', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1110
1110
|
//#endregion
|
|
1111
|
-
export { UserPluginWithLifeCycle as a, Schema as i, PluginFaker as n, ReactGenerator as r, Options
|
|
1112
|
-
//# sourceMappingURL=types-
|
|
1111
|
+
export { UserPluginWithLifeCycle as a, Schema as i, PluginFaker as n, ReactGenerator as r, Options as t };
|
|
1112
|
+
//# sourceMappingURL=types-DgJG4t24.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-faker",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.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",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"type": "module",
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
31
|
+
"require": "./dist/index.cjs",
|
|
32
|
+
"import": "./dist/index.js"
|
|
33
33
|
},
|
|
34
34
|
"./components": {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
35
|
+
"require": "./dist/components.cjs",
|
|
36
|
+
"import": "./dist/components.js"
|
|
37
37
|
},
|
|
38
38
|
"./generators": {
|
|
39
|
-
"
|
|
40
|
-
"
|
|
39
|
+
"require": "./dist/generators.cjs",
|
|
40
|
+
"import": "./dist/generators.js"
|
|
41
41
|
},
|
|
42
42
|
"./package.json": "./package.json"
|
|
43
43
|
},
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@kubb/react-fabric": "0.5.4",
|
|
72
|
-
"@kubb/core": "4.10.
|
|
73
|
-
"@kubb/oas": "4.10.
|
|
74
|
-
"@kubb/plugin-oas": "4.10.
|
|
75
|
-
"@kubb/plugin-ts": "4.10.
|
|
72
|
+
"@kubb/core": "4.10.1",
|
|
73
|
+
"@kubb/oas": "4.10.1",
|
|
74
|
+
"@kubb/plugin-oas": "4.10.1",
|
|
75
|
+
"@kubb/plugin-ts": "4.10.1"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@kubb/plugin-oas": "4.10.
|
|
78
|
+
"@kubb/plugin-oas": "4.10.1"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=20"
|