@kubb/plugin-msw 4.12.15 → 4.13.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 { h as Operation } from "./index-xmHsK79S.cjs";
1
+ import { h as Operation } from "./index-DmEumN-A.cjs";
2
2
  import { KubbNode } from "@kubb/react-fabric/types";
3
3
 
4
4
  //#region src/components/Handlers.d.ts
@@ -1,4 +1,4 @@
1
- import { h as Operation } from "./index-BVhRy10l.js";
1
+ import { h as Operation } from "./index-DyKQmS3O.js";
2
2
  import { KubbNode } from "@kubb/react-fabric/types";
3
3
 
4
4
  //#region src/components/Handlers.d.ts
@@ -1,5 +1,5 @@
1
- import "./index-xmHsK79S.cjs";
2
- import { n as PluginMsw, r as ReactGenerator } from "./types-DWkQRfSN.cjs";
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>;
@@ -1,5 +1,5 @@
1
- import "./index-BVhRy10l.js";
2
- import { n as PluginMsw, r as ReactGenerator } from "./types-CU7bNIp4.js";
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-xmHsK79S.d.cts.map
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-BVhRy10l.d.ts.map
713
+ //# sourceMappingURL=index-DyKQmS3O.d.ts.map
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { l as UserPluginWithLifeCycle } from "./index-xmHsK79S.cjs";
2
- import { n as PluginMsw, t as Options } from "./types-DWkQRfSN.cjs";
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-BVhRy10l.js";
2
- import { n as PluginMsw, t as Options } from "./types-CU7bNIp4.js";
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-xmHsK79S.cjs";
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-DWkQRfSN.d.cts.map
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-BVhRy10l.js";
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-CU7bNIp4.d.ts.map
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.12.15",
3
+ "version": "4.13.1",
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.8.0",
77
- "@kubb/core": "4.12.15",
78
- "@kubb/oas": "4.12.15",
79
- "@kubb/plugin-faker": "4.12.15",
80
- "@kubb/plugin-oas": "4.12.15",
81
- "@kubb/plugin-ts": "4.12.15"
76
+ "@kubb/react-fabric": "0.9.2",
77
+ "@kubb/core": "4.13.1",
78
+ "@kubb/oas": "4.13.1",
79
+ "@kubb/plugin-faker": "4.13.1",
80
+ "@kubb/plugin-oas": "4.13.1",
81
+ "@kubb/plugin-ts": "4.13.1"
82
82
  },
83
83
  "devDependencies": {},
84
84
  "engines": {