@kubb/plugin-msw 3.0.0-alpha.16 → 3.0.0-alpha.18

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/README.md CHANGED
@@ -13,10 +13,6 @@
13
13
  [![Coverage][coverage-src]][coverage-href]
14
14
  [![License][license-src]][license-href]
15
15
 
16
- <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
17
- <!-- ALL-CONTRIBUTORS-BADGE:END -->
18
- </p>
19
-
20
16
  <h4>
21
17
  <a href="https://codesandbox.io/s/github/kubb-labs/kubb/tree/alpha/examples/typescript" target="_blank">View Demo</a>
22
18
  <span> · </span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-msw",
3
- "version": "3.0.0-alpha.16",
3
+ "version": "3.0.0-alpha.18",
4
4
  "description": "Generator swagger",
5
5
  "keywords": [
6
6
  "typescript",
@@ -74,27 +74,24 @@
74
74
  "!/**/__tests__/**"
75
75
  ],
76
76
  "dependencies": {
77
- "@kubb/core": "3.0.0-alpha.16",
78
- "@kubb/fs": "3.0.0-alpha.16",
79
- "@kubb/oas": "3.0.0-alpha.16",
80
- "@kubb/parser-ts": "3.0.0-alpha.16",
81
- "@kubb/plugin-faker": "3.0.0-alpha.16",
82
- "@kubb/plugin-oas": "3.0.0-alpha.16",
83
- "@kubb/plugin-ts": "3.0.0-alpha.16",
84
- "@kubb/react": "3.0.0-alpha.16"
77
+ "@kubb/core": "3.0.0-alpha.18",
78
+ "@kubb/fs": "3.0.0-alpha.18",
79
+ "@kubb/oas": "3.0.0-alpha.18",
80
+ "@kubb/plugin-faker": "3.0.0-alpha.18",
81
+ "@kubb/plugin-oas": "3.0.0-alpha.18",
82
+ "@kubb/plugin-ts": "3.0.0-alpha.18",
83
+ "@kubb/react": "3.0.0-alpha.18"
85
84
  },
86
85
  "devDependencies": {
87
86
  "@types/react": "^18.3.5",
88
- "@types/react-dom": "^18.3.0",
89
87
  "react": "^18.3.1",
90
88
  "tsup": "^8.2.4",
91
89
  "typescript": "^5.6.2",
92
- "@kubb/config-biome": "3.0.0-alpha.16",
93
- "@kubb/config-ts": "3.0.0-alpha.16",
94
- "@kubb/config-tsup": "3.0.0-alpha.16"
90
+ "@kubb/config-ts": "3.0.0-alpha.18",
91
+ "@kubb/config-tsup": "3.0.0-alpha.18"
95
92
  },
96
93
  "peerDependencies": {
97
- "@kubb/react": "3.0.0-alpha.16"
94
+ "@kubb/react": "3.0.0-alpha.18"
98
95
  },
99
96
  "engines": {
100
97
  "node": ">=20"
@@ -1,9 +1,9 @@
1
- import { http } from 'msw'
1
+ import { http } from "msw";
2
2
 
3
- export const createPets = http.post('*/pets', function handler(info) {
4
- return new Response(JSON.stringify(createPetsMutationResponse()), {
5
- headers: {
6
- 'Content-Type': 'application/json',
7
- },
8
- })
9
- })
3
+ export const createPets = http.post("*/pets", function handler(info) {
4
+ return new Response(JSON.stringify(createPetsMutationResponse()), {
5
+ headers: {
6
+ "Content-Type": "application/json",
7
+ },
8
+ });
9
+ });
@@ -1,9 +1,9 @@
1
- import { http } from 'msw'
1
+ import { http } from "msw";
2
2
 
3
- export const deletePetsPetid = http.delete('*/pets/:petId', function handler(info) {
4
- return new Response(JSON.stringify(deletePetsPetidMutationResponse()), {
5
- headers: {
6
- 'Content-Type': 'application/json',
7
- },
8
- })
9
- })
3
+ export const deletePetsPetid = http.delete("*/pets/:petId", function handler(info) {
4
+ return new Response(JSON.stringify(deletePetsPetidMutationResponse()), {
5
+ headers: {
6
+ "Content-Type": "application/json",
7
+ },
8
+ });
9
+ });
@@ -1,9 +1,9 @@
1
- import { http } from 'msw'
1
+ import { http } from "msw";
2
2
 
3
- export const listPets = http.get('*/pets', function handler(info) {
4
- return new Response(JSON.stringify(listPetsQueryResponse()), {
5
- headers: {
6
- 'Content-Type': 'application/json',
7
- },
8
- })
9
- })
3
+ export const listPets = http.get("*/pets", function handler(info) {
4
+ return new Response(JSON.stringify(listPetsQueryResponse()), {
5
+ headers: {
6
+ "Content-Type": "application/json",
7
+ },
8
+ });
9
+ });
@@ -1,3 +1,3 @@
1
- import { listPets, createPets, showPetById } from './findByTags.ts'
1
+ import { listPets, createPets, showPetById } from "./findByTags.ts";
2
2
 
3
- export const handlers = [listPets, createPets, showPetById] as const
3
+ export const handlers = [listPets, createPets, showPetById] as const;
@@ -1,9 +1,9 @@
1
- import { http } from 'msw'
1
+ import { http } from "msw";
2
2
 
3
- export const showPetById = http.get('*/pets/:petId', function handler(info) {
4
- return new Response(JSON.stringify(showPetByIdQueryResponse()), {
5
- headers: {
6
- 'Content-Type': 'application/json',
7
- },
8
- })
9
- })
3
+ export const showPetById = http.get("*/pets/:petId", function handler(info) {
4
+ return new Response(JSON.stringify(showPetByIdQueryResponse()), {
5
+ headers: {
6
+ "Content-Type": "application/json",
7
+ },
8
+ });
9
+ });
package/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Plugin, PluginFactoryOptions, ResolveNameParams } from '@kubb/core'
1
+ import type { PluginFactoryOptions, ResolveNameParams } from '@kubb/core'
2
2
  import type * as KubbFile from '@kubb/fs/types'
3
3
 
4
4
  import type { Exclude, Include, Override, ResolvePathOptions } from '@kubb/plugin-oas'
@@ -73,9 +73,4 @@ export type Options = {
73
73
  }
74
74
  type ResolvedOptions = {}
75
75
 
76
- export type FileMeta = {
77
- pluginKey?: Plugin['key']
78
- tag?: string
79
- }
80
-
81
76
  export type PluginMsw = PluginFactoryOptions<'plugin-msw', Options, ResolvedOptions, never, ResolvePathOptions>