@kubb/plugin-msw 4.12.15 → 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.
- package/dist/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/generators.d.cts +2 -2
- package/dist/generators.d.ts +2 -2
- package/dist/{index-xmHsK79S.d.cts → index-DmEumN-A.d.cts} +5 -3
- package/dist/{index-BVhRy10l.d.ts → index-DyKQmS3O.d.ts} +5 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{types-DWkQRfSN.d.cts → types-Dn-8Uh5H.d.cts} +2 -2
- package/dist/{types-CU7bNIp4.d.ts → types-DurUxj3b.d.ts} +2 -2
- package/package.json +7 -7
package/dist/components.d.cts
CHANGED
package/dist/components.d.ts
CHANGED
package/dist/generators.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import { n as PluginMsw, r as ReactGenerator } from "./types-
|
|
1
|
+
import "./index-DmEumN-A.cjs";
|
|
2
|
+
import { n as PluginMsw, r as ReactGenerator } from "./types-Dn-8Uh5H.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/generators/handlersGenerator.d.ts
|
|
5
5
|
declare const handlersGenerator: ReactGenerator<PluginMsw>;
|
package/dist/generators.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import { n as PluginMsw, r as ReactGenerator } from "./types-
|
|
1
|
+
import "./index-DyKQmS3O.js";
|
|
2
|
+
import { n as PluginMsw, r as ReactGenerator } from "./types-DurUxj3b.js";
|
|
3
3
|
|
|
4
4
|
//#region src/generators/handlersGenerator.d.ts
|
|
5
5
|
declare const handlersGenerator: ReactGenerator<PluginMsw>;
|
|
@@ -353,22 +353,24 @@ type Config<TInput = Input> = {
|
|
|
353
353
|
* @default prettier
|
|
354
354
|
*
|
|
355
355
|
* Possible values:
|
|
356
|
+
* - 'auto': Automatically detects and uses biome or prettier (in that order of preference).
|
|
356
357
|
* - 'prettier': Uses Prettier for code formatting.
|
|
357
358
|
* - 'biome': Uses Biome for code formatting.
|
|
358
359
|
*
|
|
359
360
|
*/
|
|
360
|
-
format?: 'prettier' | 'biome' | false;
|
|
361
|
+
format?: 'auto' | 'prettier' | 'biome' | false;
|
|
361
362
|
/**
|
|
362
363
|
* Specifies the linter that should be used to analyze the code.
|
|
363
364
|
* The accepted values indicate different linting tools.
|
|
364
365
|
*
|
|
365
366
|
* Possible values:
|
|
367
|
+
* - 'auto': Automatically detects and uses biome, oxlint, or eslint (in that order of preference).
|
|
366
368
|
* - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
|
|
367
369
|
* - 'biome': Represents the Biome linter, a modern tool for code scanning.
|
|
368
370
|
* - 'oxlint': Represents the Oxlint tool for linting purposes.
|
|
369
371
|
*
|
|
370
372
|
*/
|
|
371
|
-
lint?: 'eslint' | 'biome' | 'oxlint' | false;
|
|
373
|
+
lint?: 'auto' | 'eslint' | 'biome' | 'oxlint' | false;
|
|
372
374
|
/**
|
|
373
375
|
* Override the extension to the generated imports and exports, by default each plugin will add an extension
|
|
374
376
|
* @default { '.ts': '.ts'}
|
|
@@ -708,4 +710,4 @@ type FileMetaBase = {
|
|
|
708
710
|
};
|
|
709
711
|
//#endregion
|
|
710
712
|
export { contentType as _, Output as a, ResolveNameParams as c, KubbEvents as d, BaseGenerator as f, SchemaObject$1 as g, Operation$1 as h, Group as i, UserPluginWithLifeCycle as l, HttpMethod as m, PluginManager as n, Plugin as o, Oas as p, Config as r, PluginFactoryOptions as s, FileMetaBase as t, AsyncEventEmitter as u };
|
|
711
|
-
//# sourceMappingURL=index-
|
|
713
|
+
//# sourceMappingURL=index-DmEumN-A.d.cts.map
|
|
@@ -353,22 +353,24 @@ type Config<TInput = Input> = {
|
|
|
353
353
|
* @default prettier
|
|
354
354
|
*
|
|
355
355
|
* Possible values:
|
|
356
|
+
* - 'auto': Automatically detects and uses biome or prettier (in that order of preference).
|
|
356
357
|
* - 'prettier': Uses Prettier for code formatting.
|
|
357
358
|
* - 'biome': Uses Biome for code formatting.
|
|
358
359
|
*
|
|
359
360
|
*/
|
|
360
|
-
format?: 'prettier' | 'biome' | false;
|
|
361
|
+
format?: 'auto' | 'prettier' | 'biome' | false;
|
|
361
362
|
/**
|
|
362
363
|
* Specifies the linter that should be used to analyze the code.
|
|
363
364
|
* The accepted values indicate different linting tools.
|
|
364
365
|
*
|
|
365
366
|
* Possible values:
|
|
367
|
+
* - 'auto': Automatically detects and uses biome, oxlint, or eslint (in that order of preference).
|
|
366
368
|
* - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
|
|
367
369
|
* - 'biome': Represents the Biome linter, a modern tool for code scanning.
|
|
368
370
|
* - 'oxlint': Represents the Oxlint tool for linting purposes.
|
|
369
371
|
*
|
|
370
372
|
*/
|
|
371
|
-
lint?: 'eslint' | 'biome' | 'oxlint' | false;
|
|
373
|
+
lint?: 'auto' | 'eslint' | 'biome' | 'oxlint' | false;
|
|
372
374
|
/**
|
|
373
375
|
* Override the extension to the generated imports and exports, by default each plugin will add an extension
|
|
374
376
|
* @default { '.ts': '.ts'}
|
|
@@ -708,4 +710,4 @@ type FileMetaBase = {
|
|
|
708
710
|
};
|
|
709
711
|
//#endregion
|
|
710
712
|
export { contentType as _, Output as a, ResolveNameParams as c, KubbEvents as d, BaseGenerator as f, SchemaObject$1 as g, Operation$1 as h, Group as i, UserPluginWithLifeCycle as l, HttpMethod as m, PluginManager as n, Plugin as o, Oas as p, Config as r, PluginFactoryOptions as s, FileMetaBase as t, AsyncEventEmitter as u };
|
|
711
|
-
//# sourceMappingURL=index-
|
|
713
|
+
//# sourceMappingURL=index-DyKQmS3O.d.ts.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as UserPluginWithLifeCycle } from "./index-
|
|
2
|
-
import { n as PluginMsw, t as Options } from "./types-
|
|
1
|
+
import { l as UserPluginWithLifeCycle } from "./index-DmEumN-A.cjs";
|
|
2
|
+
import { n as PluginMsw, t as Options } from "./types-Dn-8Uh5H.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.d.ts
|
|
5
5
|
declare const pluginMswName = "plugin-msw";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as UserPluginWithLifeCycle } from "./index-
|
|
2
|
-
import { n as PluginMsw, t as Options } from "./types-
|
|
1
|
+
import { l as UserPluginWithLifeCycle } from "./index-DyKQmS3O.js";
|
|
2
|
+
import { n as PluginMsw, t as Options } from "./types-DurUxj3b.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.d.ts
|
|
5
5
|
declare const pluginMswName = "plugin-msw";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as contentType, a as Output, c as ResolveNameParams, d as KubbEvents, f as BaseGenerator, g as SchemaObject, h as Operation, i as Group, m as HttpMethod, n as PluginManager, o as Plugin, p as Oas, r as Config, s as PluginFactoryOptions, t as FileMetaBase, u as AsyncEventEmitter } from "./index-
|
|
1
|
+
import { _ as contentType, a as Output, c as ResolveNameParams, d as KubbEvents, f as BaseGenerator, g as SchemaObject, h as Operation, i as Group, m as HttpMethod, n as PluginManager, o as Plugin, p as Oas, r as Config, s as PluginFactoryOptions, t as FileMetaBase, u as AsyncEventEmitter } from "./index-DmEumN-A.cjs";
|
|
2
2
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
3
3
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
4
4
|
import { Fabric } from "@kubb/react-fabric";
|
|
@@ -514,4 +514,4 @@ type ResolvedOptions = {
|
|
|
514
514
|
type PluginMsw = PluginFactoryOptions<'plugin-msw', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
515
515
|
//#endregion
|
|
516
516
|
export { PluginMsw as n, ReactGenerator as r, Options as t };
|
|
517
|
-
//# sourceMappingURL=types-
|
|
517
|
+
//# sourceMappingURL=types-Dn-8Uh5H.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as contentType, a as Output, c as ResolveNameParams, d as KubbEvents, f as BaseGenerator, g as SchemaObject, h as Operation, i as Group, m as HttpMethod, n as PluginManager, o as Plugin, p as Oas, r as Config, s as PluginFactoryOptions, t as FileMetaBase, u as AsyncEventEmitter } from "./index-
|
|
1
|
+
import { _ as contentType, a as Output, c as ResolveNameParams, d as KubbEvents, f as BaseGenerator, g as SchemaObject, h as Operation, i as Group, m as HttpMethod, n as PluginManager, o as Plugin, p as Oas, r as Config, s as PluginFactoryOptions, t as FileMetaBase, u as AsyncEventEmitter } from "./index-DyKQmS3O.js";
|
|
2
2
|
import { Fabric } from "@kubb/react-fabric";
|
|
3
3
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
4
4
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
@@ -514,4 +514,4 @@ type ResolvedOptions = {
|
|
|
514
514
|
type PluginMsw = PluginFactoryOptions<'plugin-msw', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
515
515
|
//#endregion
|
|
516
516
|
export { PluginMsw as n, ReactGenerator as r, Options as t };
|
|
517
|
-
//# sourceMappingURL=types-
|
|
517
|
+
//# sourceMappingURL=types-DurUxj3b.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-msw",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.0",
|
|
4
4
|
"description": "Mock Service Worker (MSW) handlers generator plugin for Kubb, creating API mocks from OpenAPI specifications for frontend development and testing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"msw",
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
}
|
|
74
74
|
],
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@kubb/react-fabric": "0.
|
|
77
|
-
"@kubb/core": "4.
|
|
78
|
-
"@kubb/oas": "4.
|
|
79
|
-
"@kubb/plugin-faker": "4.
|
|
80
|
-
"@kubb/plugin-oas": "4.
|
|
81
|
-
"@kubb/plugin-ts": "4.
|
|
76
|
+
"@kubb/react-fabric": "0.9.0",
|
|
77
|
+
"@kubb/core": "4.13.0",
|
|
78
|
+
"@kubb/oas": "4.13.0",
|
|
79
|
+
"@kubb/plugin-faker": "4.13.0",
|
|
80
|
+
"@kubb/plugin-oas": "4.13.0",
|
|
81
|
+
"@kubb/plugin-ts": "4.13.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {},
|
|
84
84
|
"engines": {
|