@kubb/plugin-cypress 4.31.0 → 4.31.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,7 +1,8 @@
1
- import { n as PluginCypress, r as __name } from "./types-B9vKVNbE.js";
2
- import { HttpMethod } from "@kubb/oas";
1
+ import { t as __name } from "./chunk-DKWOrOAv.js";
2
+ import { n as PluginCypress } from "./types-Bqm12ZUC.js";
3
3
  import { OperationSchemas } from "@kubb/plugin-oas";
4
4
  import { FunctionParams } from "@kubb/react-fabric";
5
+ import { HttpMethod } from "@kubb/oas";
5
6
  import { FabricReactNode } from "@kubb/react-fabric/types";
6
7
 
7
8
  //#region src/components/Request.d.ts
@@ -1,9 +1,10 @@
1
- import { n as PluginCypress, r as __name } from "./types-B9vKVNbE.js";
2
- import { HttpMethod, Oas, Operation, SchemaObject, contentType } from "@kubb/oas";
3
- import { Fabric } from "@kubb/react-fabric";
4
- import { FabricReactNode } from "@kubb/react-fabric/types";
1
+ import { t as __name } from "./chunk-DKWOrOAv.js";
2
+ import { n as PluginCypress } from "./types-Bqm12ZUC.js";
5
3
  import { BaseGenerator, Config, FileMetaBase, Group, KubbEvents, Output, Plugin, PluginFactoryOptions, PluginManager, ResolveNameParams } from "@kubb/core";
4
+ import { Fabric } from "@kubb/react-fabric";
6
5
  import { AsyncEventEmitter } from "@kubb/core/utils";
6
+ import { HttpMethod, Oas, Operation, SchemaObject, contentType } from "@kubb/oas";
7
+ import { FabricReactNode } from "@kubb/react-fabric/types";
7
8
  import { KubbFile } from "@kubb/fabric-core/types";
8
9
 
9
10
  //#region ../plugin-oas/src/types.d.ts
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { n as PluginCypress, r as __name, t as Options } from "./types-B9vKVNbE.js";
1
+ import { t as __name } from "./chunk-DKWOrOAv.js";
2
+ import { n as PluginCypress, t as Options } from "./types-Bqm12ZUC.js";
2
3
  import * as _kubb_core0 from "@kubb/core";
3
4
 
4
5
  //#region src/plugin.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-cypress",
3
- "version": "4.31.0",
3
+ "version": "4.31.1",
4
4
  "description": "Cypress test generator plugin for Kubb, creating end-to-end tests from OpenAPI specifications for automated API testing.",
5
5
  "keywords": [
6
6
  "cypress",
@@ -76,11 +76,11 @@
76
76
  }
77
77
  ],
78
78
  "dependencies": {
79
- "@kubb/react-fabric": "0.13.2",
80
- "@kubb/core": "4.31.0",
81
- "@kubb/oas": "4.31.0",
82
- "@kubb/plugin-oas": "4.31.0",
83
- "@kubb/plugin-ts": "4.31.0"
79
+ "@kubb/react-fabric": "0.13.3",
80
+ "@kubb/core": "4.31.1",
81
+ "@kubb/oas": "4.31.1",
82
+ "@kubb/plugin-oas": "4.31.1",
83
+ "@kubb/plugin-ts": "4.31.1"
84
84
  },
85
85
  "engines": {
86
86
  "node": ">=20"
@@ -1,86 +0,0 @@
1
- import { Oas, contentType } from "@kubb/oas";
2
- import { Exclude, Include, Override, ResolvePathOptions } from "@kubb/plugin-oas";
3
- import { Group, Output, PluginFactoryOptions, ResolveNameParams } from "@kubb/core";
4
- import { Generator } from "@kubb/plugin-oas/generators";
5
-
6
- //#region \0rolldown/runtime.js
7
- //#endregion
8
- //#region src/types.d.ts
9
- type Options = {
10
- /**
11
- * Specify the export location for the files and define the behavior of the output
12
- * @default { path: 'cypress', barrelType: 'named' }
13
- */
14
- output?: Output<Oas>;
15
- /**
16
- * Define which contentType should be used.
17
- * By default, the first JSON valid mediaType is used
18
- */
19
- contentType?: contentType;
20
- /**
21
- * Return type when calling cy.request.
22
- * - 'data' returns ResponseConfig[data].
23
- * - 'full' returns ResponseConfig.
24
- * @default 'data'
25
- */
26
- dataReturnType?: 'data' | 'full';
27
- /**
28
- * How to style your params, by default no casing is applied
29
- * - 'camelcase' uses camelcase for the params names
30
- */
31
- paramsCasing?: 'camelcase';
32
- /**
33
- * How to pass your params.
34
- * - 'object' returns the params and pathParams as an object.
35
- * - 'inline' returns the params as comma separated params.
36
- * @default 'inline'
37
- */
38
- paramsType?: 'object' | 'inline';
39
- /**
40
- * How to pass your pathParams.
41
- * - 'object' returns the pathParams as an object.
42
- * - 'inline' returns the pathParams as comma separated params.
43
- * @default 'inline'
44
- */
45
- pathParamsType?: 'object' | 'inline';
46
- baseURL?: string;
47
- /**
48
- * Group the Cypress requests based on the provided name.
49
- */
50
- group?: Group;
51
- /**
52
- * Array containing exclude parameters to exclude/skip tags/operations/methods/paths.
53
- */
54
- exclude?: Array<Exclude>;
55
- /**
56
- * Array containing include parameters to include tags/operations/methods/paths.
57
- */
58
- include?: Array<Include>;
59
- /**
60
- * Array containing override parameters to override `options` based on tags/operations/methods/paths.
61
- */
62
- override?: Array<Override<ResolvedOptions>>;
63
- transformers?: {
64
- /**
65
- * Customize the names based on the type that is provided by the plugin.
66
- */
67
- name?: (name: ResolveNameParams['name'], type?: ResolveNameParams['type']) => string;
68
- };
69
- /**
70
- * Define some generators next to the Cypress generators.
71
- */
72
- generators?: Array<Generator<PluginCypress>>;
73
- };
74
- type ResolvedOptions = {
75
- output: Output<Oas>;
76
- group: Options['group'];
77
- baseURL: Options['baseURL'] | undefined;
78
- dataReturnType: NonNullable<Options['dataReturnType']>;
79
- pathParamsType: NonNullable<Options['pathParamsType']>;
80
- paramsType: NonNullable<Options['paramsType']>;
81
- paramsCasing: Options['paramsCasing'];
82
- };
83
- type PluginCypress = PluginFactoryOptions<'plugin-cypress', Options, ResolvedOptions, never, ResolvePathOptions>;
84
- //#endregion
85
- export { PluginCypress as n, __name as r, Options as t };
86
- //# sourceMappingURL=types-B9vKVNbE.d.ts.map