vite-plugin-mock-dev-server 1.8.3 → 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 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, OutgoingHttpHeaders } from 'node:http';
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, OutgoingHttpHeaders } from 'node:http';
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.2"}`,
271
+ ["vite-plugin-mock-dev-server"]: `^${"1.8.4"}`,
272
272
  cors: "^2.8.5"
273
273
  },
274
274
  pnpm: { peerDependencyRules: { ignoreMissing: ["vite"] } }
@@ -773,7 +773,7 @@ function serverPlugin(options) {
773
773
  }
774
774
 
775
775
  // src/index.ts
776
- var src_default = mockDevServerPlugin;
776
+ var index_default = mockDevServerPlugin;
777
777
 
778
778
 
779
779
 
@@ -788,4 +788,4 @@ var src_default = mockDevServerPlugin;
788
788
 
789
789
 
790
790
 
791
- exports.baseMiddleware = _chunkFQYSVVSCcjs.baseMiddleware; exports.createDefineMock = _chunkJNSDHVCKcjs.createDefineMock; exports.createLogger = _chunkFQYSVVSCcjs.createLogger; exports.createSSEStream = _chunkJNSDHVCKcjs.createSSEStream; exports.default = src_default; exports.defineMock = _chunkJNSDHVCKcjs.defineMock; exports.defineMockData = _chunkJNSDHVCKcjs.defineMockData; exports.logLevels = _chunkFQYSVVSCcjs.logLevels; exports.mockDevServerPlugin = mockDevServerPlugin; exports.mockWebSocket = _chunkFQYSVVSCcjs.mockWebSocket; exports.sortByValidator = _chunkFQYSVVSCcjs.sortByValidator; exports.transformMockData = _chunkFQYSVVSCcjs.transformMockData; exports.transformRawData = _chunkFQYSVVSCcjs.transformRawData;
791
+ exports.baseMiddleware = _chunkFQYSVVSCcjs.baseMiddleware; exports.createDefineMock = _chunkJNSDHVCKcjs.createDefineMock; exports.createLogger = _chunkFQYSVVSCcjs.createLogger; exports.createSSEStream = _chunkJNSDHVCKcjs.createSSEStream; exports.default = index_default; exports.defineMock = _chunkJNSDHVCKcjs.defineMock; exports.defineMockData = _chunkJNSDHVCKcjs.defineMockData; exports.logLevels = _chunkFQYSVVSCcjs.logLevels; exports.mockDevServerPlugin = mockDevServerPlugin; exports.mockWebSocket = _chunkFQYSVVSCcjs.mockWebSocket; exports.sortByValidator = _chunkFQYSVVSCcjs.sortByValidator; exports.transformMockData = _chunkFQYSVVSCcjs.transformMockData; exports.transformRawData = _chunkFQYSVVSCcjs.transformRawData;
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.2"}`,
271
+ ["vite-plugin-mock-dev-server"]: `^${"1.8.4"}`,
272
272
  cors: "^2.8.5"
273
273
  },
274
274
  pnpm: { peerDependencyRules: { ignoreMissing: ["vite"] } }
@@ -773,13 +773,13 @@ function serverPlugin(options) {
773
773
  }
774
774
 
775
775
  // src/index.ts
776
- var src_default = mockDevServerPlugin;
776
+ var index_default = mockDevServerPlugin;
777
777
  export {
778
778
  baseMiddleware,
779
779
  createDefineMock,
780
780
  createLogger,
781
781
  createSSEStream,
782
- src_default as default,
782
+ index_default as default,
783
783
  defineMock,
784
784
  defineMockData,
785
785
  logLevels,
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.3",
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,26 +68,26 @@
68
68
  }
69
69
  },
70
70
  "dependencies": {
71
- "@pengzhanbo/utils": "^1.2.0",
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",
75
75
  "cookies": "^0.9.1",
76
76
  "cors": "^2.8.5",
77
77
  "debug": "^4.4.0",
78
- "fast-glob": "^3.3.2",
78
+ "fast-glob": "^3.3.3",
79
79
  "formidable": "2.1.2",
80
- "http-status": "^2.0.0",
81
- "is-core-module": "^2.16.0",
80
+ "http-status": "^2.1.0",
81
+ "is-core-module": "^2.16.1",
82
82
  "json5": "^2.2.3",
83
- "mime-types": "^2.1.35",
83
+ "mime-types": "^3.0.1",
84
84
  "path-to-regexp": "6.3.0",
85
85
  "picocolors": "^1.1.1",
86
- "ws": "^8.18.0"
86
+ "ws": "^8.18.1"
87
87
  },
88
88
  "devDependencies": {
89
- "esbuild": "^0.24.0",
90
- "vite": "^6.0.3"
89
+ "esbuild": "^0.25.2",
90
+ "vite": "^6.2.5"
91
91
  },
92
92
  "publishConfig": {
93
93
  "access": "public"