Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-mock-dev-server

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-mock-dev-server - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

3

dist/index.js

@@ -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, {

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc