New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cypress/vite-dev-server

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cypress/vite-dev-server - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [@cypress/vite-dev-server-v2.0.5](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.0.4...@cypress/vite-dev-server-v2.0.5) (2021-08-04)
### Bug Fixes
* reload every spec file when support updated ([#17598](https://github.com/cypress-io/cypress/issues/17598)) ([efc38b6](https://github.com/cypress-io/cypress/commit/efc38b67497b48db5b3a636acac3be45dd930593))
# [@cypress/vite-dev-server-v2.0.4](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.0.3...@cypress/vite-dev-server-v2.0.4) (2021-07-31)

@@ -2,0 +9,0 @@

17

dist/makeCypressPlugin.js

@@ -22,12 +22,10 @@ "use strict";

const HMR_DEPENDENCY_LOOKUP_MAX_ITERATION = 50;
function getSpecsPathsSet(specs, supportFile) {
return new Set(supportFile
? [...specs.map((spec) => spec.absolute), supportFile]
: specs.map((spec) => spec.absolute));
function getSpecsPathsSet(specs) {
return new Set(specs.map((spec) => spec.absolute));
}
const makeCypressPlugin = (projectRoot, supportFilePath, devServerEvents, specs) => {
let base = '/';
let specsPathsSet = getSpecsPathsSet(specs, supportFilePath);
let specsPathsSet = getSpecsPathsSet(specs);
devServerEvents.on('dev-server:specs:changed', (specs) => {
specsPathsSet = getSpecsPathsSet(specs, supportFilePath);
specsPathsSet = getSpecsPathsSet(specs);
});

@@ -84,4 +82,9 @@ const posixSupportFilePath = supportFilePath ? convertPathToPosix(path_1.resolve(projectRoot, supportFilePath)) : undefined;

debug('handleHotUpdate - mod.file', mod.file);
if (mod.file === supportFilePath) {
debug('handleHotUpdate - support compile success');
devServerEvents.emit('dev-server:compile:success');
return [];
}
if (mod.file && specsPathsSet.has(mod.file)) {
debug('handleHotUpdate - compile success');
debug('handleHotUpdate - spec compile success', mod.file);
devServerEvents.emit('dev-server:compile:success', { specFile: mod.file });

@@ -88,0 +91,0 @@ return [];

{
"name": "@cypress/vite-dev-server",
"version": "2.0.4",
"version": "2.0.5",
"description": "Launches Vite Dev Server for Component Testing",

@@ -5,0 +5,0 @@ "main": "index.js",

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