vite-plugin-mock-dev-server 1.8.4 → 1.8.5
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/helper.d.cts +1 -1
- package/dist/helper.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/package.json +6 -6
package/dist/helper.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as MockHttpItem, d as MockWebsocketItem, b as MockOptions } from './types-BYspd62h.cjs';
|
|
2
2
|
export { c as MockRequest } from './types-BYspd62h.cjs';
|
|
3
|
-
import { IncomingMessage, ServerResponse
|
|
3
|
+
import { OutgoingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http';
|
|
4
4
|
import { Transform } from 'node:stream';
|
|
5
5
|
import 'co-body';
|
|
6
6
|
import 'cookies';
|
package/dist/helper.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as MockHttpItem, d as MockWebsocketItem, b as MockOptions } from './types-BYspd62h.js';
|
|
2
2
|
export { c as MockRequest } from './types-BYspd62h.js';
|
|
3
|
-
import { IncomingMessage, ServerResponse
|
|
3
|
+
import { OutgoingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http';
|
|
4
4
|
import { Transform } from 'node:stream';
|
|
5
5
|
import 'co-body';
|
|
6
6
|
import 'cookies';
|
package/dist/index.cjs
CHANGED
|
@@ -268,7 +268,7 @@ function generatePackageJson(pkg, mockDeps) {
|
|
|
268
268
|
},
|
|
269
269
|
dependencies: {
|
|
270
270
|
connect: "^3.7.0",
|
|
271
|
-
["vite-plugin-mock-dev-server"]: `^${"1.8.
|
|
271
|
+
["vite-plugin-mock-dev-server"]: `^${"1.8.4"}`,
|
|
272
272
|
cors: "^2.8.5"
|
|
273
273
|
},
|
|
274
274
|
pnpm: { peerDependencyRules: { ignoreMissing: ["vite"] } }
|
package/dist/index.d.cts
CHANGED
|
@@ -11,8 +11,8 @@ import 'node:buffer';
|
|
|
11
11
|
import 'node:http';
|
|
12
12
|
import 'node:stream';
|
|
13
13
|
import 'ws';
|
|
14
|
-
import 'node:events';
|
|
15
14
|
import 'chokidar';
|
|
15
|
+
import 'node:events';
|
|
16
16
|
import 'node:http2';
|
|
17
17
|
|
|
18
18
|
declare function mockDevServerPlugin(options?: MockServerPluginOptions): Plugin[];
|
package/dist/index.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ import 'node:buffer';
|
|
|
11
11
|
import 'node:http';
|
|
12
12
|
import 'node:stream';
|
|
13
13
|
import 'ws';
|
|
14
|
-
import 'node:events';
|
|
15
14
|
import 'chokidar';
|
|
15
|
+
import 'node:events';
|
|
16
16
|
import 'node:http2';
|
|
17
17
|
|
|
18
18
|
declare function mockDevServerPlugin(options?: MockServerPluginOptions): Plugin[];
|
package/dist/index.js
CHANGED
|
@@ -268,7 +268,7 @@ function generatePackageJson(pkg, mockDeps) {
|
|
|
268
268
|
},
|
|
269
269
|
dependencies: {
|
|
270
270
|
connect: "^3.7.0",
|
|
271
|
-
["vite-plugin-mock-dev-server"]: `^${"1.8.
|
|
271
|
+
["vite-plugin-mock-dev-server"]: `^${"1.8.4"}`,
|
|
272
272
|
cors: "^2.8.5"
|
|
273
273
|
},
|
|
274
274
|
pnpm: { peerDependencyRules: { ignoreMissing: ["vite"] } }
|
package/dist/server.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Alias, Connect } from 'vite';
|
|
2
2
|
import { L as LogLevel, M as MockServerPluginOptions, S as ServerBuildOption, b as MockOptions, a as MockHttpItem, d as MockWebsocketItem } from './types-BYspd62h.cjs';
|
|
3
|
+
import { FSWatcher } from 'chokidar';
|
|
3
4
|
import { CorsOptions } from 'cors';
|
|
4
5
|
import EventEmitter from 'node:events';
|
|
5
|
-
import { FSWatcher } from 'chokidar';
|
|
6
6
|
import { Server } from 'node:http';
|
|
7
7
|
import { Http2SecureServer } from 'node:http2';
|
|
8
8
|
import 'co-body';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Alias, Connect } from 'vite';
|
|
2
2
|
import { L as LogLevel, M as MockServerPluginOptions, S as ServerBuildOption, b as MockOptions, a as MockHttpItem, d as MockWebsocketItem } from './types-BYspd62h.js';
|
|
3
|
+
import { FSWatcher } from 'chokidar';
|
|
3
4
|
import { CorsOptions } from 'cors';
|
|
4
5
|
import EventEmitter from 'node:events';
|
|
5
|
-
import { FSWatcher } from 'chokidar';
|
|
6
6
|
import { Server } from 'node:http';
|
|
7
7
|
import { Http2SecureServer } from 'node:http2';
|
|
8
8
|
import 'co-body';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-mock-dev-server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.8.
|
|
4
|
+
"version": "1.8.5",
|
|
5
5
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://vite-plugin-mock-dev-server.netlify.app",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@pengzhanbo/utils": "^
|
|
71
|
+
"@pengzhanbo/utils": "^2.0.0",
|
|
72
72
|
"@rollup/pluginutils": "^5.1.4",
|
|
73
73
|
"chokidar": "3.6.0",
|
|
74
74
|
"co-body": "^6.2.0",
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
"http-status": "^2.1.0",
|
|
81
81
|
"is-core-module": "^2.16.1",
|
|
82
82
|
"json5": "^2.2.3",
|
|
83
|
-
"mime-types": "^
|
|
83
|
+
"mime-types": "^3.0.1",
|
|
84
84
|
"path-to-regexp": "6.3.0",
|
|
85
85
|
"picocolors": "^1.1.1",
|
|
86
|
-
"ws": "^8.18.
|
|
86
|
+
"ws": "^8.18.1"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"esbuild": "^0.
|
|
90
|
-
"vite": "^6.
|
|
89
|
+
"esbuild": "^0.25.2",
|
|
90
|
+
"vite": "^6.2.5"
|
|
91
91
|
},
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"access": "public"
|