@kubb/plugin-msw 3.17.1 → 3.18.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/generators.d.cts
CHANGED
package/dist/generators.d.ts
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./types-DYAniEBx.cjs";
|
|
2
|
-
import { Options, PluginMsw, UserPluginWithLifeCycle } from "./types-
|
|
2
|
+
import { Options, PluginMsw, UserPluginWithLifeCycle } from "./types-DLxzBV0T.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
1
|
import "./types-BOMj2hjt.js";
|
|
2
|
-
import { Options, PluginMsw, UserPluginWithLifeCycle } from "./types-
|
|
2
|
+
import { Options, PluginMsw, UserPluginWithLifeCycle } from "./types-BdC96j80.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.d.ts
|
|
5
5
|
declare const pluginMswName = "plugin-msw";
|
|
@@ -263,6 +263,27 @@ type Config<TInput = Input> = {
|
|
|
263
263
|
* @default true
|
|
264
264
|
*/
|
|
265
265
|
write?: boolean;
|
|
266
|
+
/**
|
|
267
|
+
* Specifies the formatting tool to be used.
|
|
268
|
+
* @default prettier
|
|
269
|
+
*
|
|
270
|
+
* Possible values:
|
|
271
|
+
* - 'prettier': Uses Prettier for code formatting.
|
|
272
|
+
* - 'biome': Uses Biome for code formatting.
|
|
273
|
+
*
|
|
274
|
+
*/
|
|
275
|
+
format?: 'prettier' | 'biome' | false;
|
|
276
|
+
/**
|
|
277
|
+
* Specifies the linter that should be used to analyze the code.
|
|
278
|
+
* The accepted values indicate different linting tools.
|
|
279
|
+
*
|
|
280
|
+
* Possible values:
|
|
281
|
+
* - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
|
|
282
|
+
* - 'biome': Represents the Biome linter, a modern tool for code scanning.
|
|
283
|
+
* - 'oxlint': Represents the Oxlint tool for linting purposes.
|
|
284
|
+
*
|
|
285
|
+
*/
|
|
286
|
+
lint?: 'eslint' | 'biome' | 'oxlint' | false;
|
|
266
287
|
/**
|
|
267
288
|
* Override the extension to the generated imports and exports, by default each plugin will add an extension
|
|
268
289
|
* @default { '.ts': '.ts'}
|
|
@@ -1161,4 +1182,4 @@ type ResolvedOptions = {
|
|
|
1161
1182
|
type PluginMsw = PluginFactoryOptions<'plugin-msw', Options$1, ResolvedOptions, never, ResolvePathOptions>;
|
|
1162
1183
|
//#endregion
|
|
1163
1184
|
export { Generator, Options$1 as Options, PluginMsw, UserPluginWithLifeCycle };
|
|
1164
|
-
//# sourceMappingURL=types-
|
|
1185
|
+
//# sourceMappingURL=types-BdC96j80.d.ts.map
|
|
@@ -263,6 +263,27 @@ type Config<TInput = Input> = {
|
|
|
263
263
|
* @default true
|
|
264
264
|
*/
|
|
265
265
|
write?: boolean;
|
|
266
|
+
/**
|
|
267
|
+
* Specifies the formatting tool to be used.
|
|
268
|
+
* @default prettier
|
|
269
|
+
*
|
|
270
|
+
* Possible values:
|
|
271
|
+
* - 'prettier': Uses Prettier for code formatting.
|
|
272
|
+
* - 'biome': Uses Biome for code formatting.
|
|
273
|
+
*
|
|
274
|
+
*/
|
|
275
|
+
format?: 'prettier' | 'biome' | false;
|
|
276
|
+
/**
|
|
277
|
+
* Specifies the linter that should be used to analyze the code.
|
|
278
|
+
* The accepted values indicate different linting tools.
|
|
279
|
+
*
|
|
280
|
+
* Possible values:
|
|
281
|
+
* - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
|
|
282
|
+
* - 'biome': Represents the Biome linter, a modern tool for code scanning.
|
|
283
|
+
* - 'oxlint': Represents the Oxlint tool for linting purposes.
|
|
284
|
+
*
|
|
285
|
+
*/
|
|
286
|
+
lint?: 'eslint' | 'biome' | 'oxlint' | false;
|
|
266
287
|
/**
|
|
267
288
|
* Override the extension to the generated imports and exports, by default each plugin will add an extension
|
|
268
289
|
* @default { '.ts': '.ts'}
|
|
@@ -1161,4 +1182,4 @@ type ResolvedOptions = {
|
|
|
1161
1182
|
type PluginMsw = PluginFactoryOptions<'plugin-msw', Options$1, ResolvedOptions, never, ResolvePathOptions>;
|
|
1162
1183
|
//#endregion
|
|
1163
1184
|
export { Generator, Options$1 as Options, PluginMsw, UserPluginWithLifeCycle };
|
|
1164
|
-
//# sourceMappingURL=types-
|
|
1185
|
+
//# sourceMappingURL=types-DLxzBV0T.d.cts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-msw",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.18.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",
|
|
@@ -66,19 +66,19 @@
|
|
|
66
66
|
"!/**/__tests__/**"
|
|
67
67
|
],
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@kubb/
|
|
70
|
-
"@kubb/
|
|
71
|
-
"@kubb/plugin-
|
|
72
|
-
"@kubb/plugin-
|
|
73
|
-
"@kubb/
|
|
74
|
-
"@kubb/
|
|
69
|
+
"@kubb/oas": "3.18.0",
|
|
70
|
+
"@kubb/plugin-faker": "3.18.0",
|
|
71
|
+
"@kubb/plugin-oas": "3.18.0",
|
|
72
|
+
"@kubb/plugin-ts": "3.18.0",
|
|
73
|
+
"@kubb/react": "3.18.0",
|
|
74
|
+
"@kubb/core": "3.18.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/react": "^18.3.23",
|
|
78
78
|
"react": "^18.3.1",
|
|
79
79
|
"tsdown": "^0.14.1",
|
|
80
80
|
"typescript": "^5.9.2",
|
|
81
|
-
"@kubb/config-ts": "3.
|
|
81
|
+
"@kubb/config-ts": "3.18.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"@kubb/react": "^3.0.0"
|