vite-plugin-mock-dev-server
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -291,2 +291,3 @@ // src/mockMiddleware.ts | ||
res.setHeader("Content-Type", "application/json"); | ||
res.setHeader("X-Mock", "generate by vite:mock-dev-server"); | ||
if (currentMock.headers) { | ||
@@ -348,2 +349,4 @@ const headers = isFunction(currentMock.headers) ? await currentMock.headers({ | ||
name: "vite-plugin-mock-dev-server", | ||
enforce: "pre", | ||
apply: "serve", | ||
async configureServer({ middlewares, config, httpServer }) { | ||
@@ -350,0 +353,0 @@ const middleware = await mockServerMiddleware(httpServer, config, { |
{ | ||
"name": "vite-plugin-mock-dev-server", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "vite", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39096
875
1541