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

@cypress/vite-dev-server

Package Overview
Dependencies
Maintainers
1
Versions
48
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.2.1 to 2.2.2

7

CHANGELOG.md

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

# [@cypress/vite-dev-server-v2.2.2](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.2.1...@cypress/vite-dev-server-v2.2.2) (2021-12-16)
### Bug Fixes
* check the port is avail on all local hosts ([#19402](https://github.com/cypress-io/cypress/issues/19402)) ([4826175](https://github.com/cypress-io/cypress/commit/4826175040bfc024a36df47dc0c74f2871fa944f))
# [@cypress/vite-dev-server-v2.2.1](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.2.0...@cypress/vite-dev-server-v2.2.1) (2021-11-19)

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

4

dist/index.js

@@ -6,5 +6,5 @@ "use strict";

const startServer_1 = require("./startServer");
const debug = debug_1.debug('cypress:vite-dev-server:vite');
const debug = (0, debug_1.debug)('cypress:vite-dev-server:vite');
async function startDevServer(startDevServerArgs) {
const viteDevServer = await startServer_1.start(startDevServerArgs);
const viteDevServer = await (0, startServer_1.start)(startDevServerArgs);
const app = await viteDevServer.listen();

@@ -11,0 +11,0 @@ const port = app.config.server.port;

@@ -11,4 +11,4 @@ "use strict";

const debug_1 = __importDefault(require("debug"));
const debug = debug_1.default('cypress:vite-dev-server:plugin');
const read = util_1.promisify(fs_1.readFile);
const debug = (0, debug_1.default)('cypress:vite-dev-server:plugin');
const read = (0, util_1.promisify)(fs_1.readFile);
const pluginName = 'cypress-transform-html';

@@ -21,3 +21,3 @@ const OSSepRE = new RegExp(`\\${path_1.sep}`, 'g');

}
const INIT_FILEPATH = path_1.resolve(__dirname, '../client/initCypressTests.js');
const INIT_FILEPATH = (0, path_1.resolve)(__dirname, '../client/initCypressTests.js');
const HMR_DEPENDENCY_LOOKUP_MAX_ITERATION = 50;

@@ -33,3 +33,3 @@ function getSpecsPathsSet(specs) {

});
const posixSupportFilePath = supportFilePath ? convertPathToPosix(path_1.resolve(projectRoot, supportFilePath)) : undefined;
const posixSupportFilePath = supportFilePath ? convertPathToPosix((0, path_1.resolve)(projectRoot, supportFilePath)) : undefined;
const normalizedSupportFilePath = posixSupportFilePath ? `${base}@fs/${posixSupportFilePath}` : undefined;

@@ -66,3 +66,3 @@ return {

configureServer: async (server) => {
const indexHtml = await read(path_1.resolve(__dirname, '..', 'index.html'), { encoding: 'utf8' });
const indexHtml = await read((0, path_1.resolve)(__dirname, '..', 'index.html'), { encoding: 'utf8' });
const transformedIndexHtml = await server.transformIndexHtml(base, indexHtml);

@@ -69,0 +69,0 @@ server.middlewares.use(`${base}index.html`, (req, res) => res.end(transformedIndexHtml));

@@ -12,3 +12,3 @@ "use strict";

const makeCypressPlugin_1 = require("./makeCypressPlugin");
const debug = debug_1.default('cypress:vite-dev-server:start');
const debug = (0, debug_1.default)('cypress:vite-dev-server:start');
const resolveServerConfig = async ({ viteConfig, options }) => {

@@ -21,3 +21,3 @@ const { projectRoot, supportFile } = options.config;

const finalConfig = { ...viteConfig, ...requiredOptions };
finalConfig.plugins = [...(finalConfig.plugins || []), makeCypressPlugin_1.makeCypressPlugin(projectRoot, supportFile, options.devServerEvents, options.specs)];
finalConfig.plugins = [...(finalConfig.plugins || []), (0, makeCypressPlugin_1.makeCypressPlugin)(projectRoot, supportFile, options.devServerEvents, options.specs)];
// This alias is necessary to avoid a "prefixIdentifiers" issue from slots mounting

@@ -30,3 +30,3 @@ // only cjs compiler-core accepts using prefixIdentifiers in slots which vue test utils use.

...finalConfig.resolve.alias,
'@vue/compiler-core': path_1.resolve(path_1.dirname(require.resolve('@vue/compiler-core')), 'dist', 'compiler-core.cjs.js'),
'@vue/compiler-core': (0, path_1.resolve)((0, path_1.dirname)(require.resolve('@vue/compiler-core')), 'dist', 'compiler-core.cjs.js'),
};

@@ -38,3 +38,3 @@ }

finalConfig.server = finalConfig.server || {};
finalConfig.server.port = await get_port_1.default({ port: finalConfig.server.port || 3000, host: 'localhost' }),
finalConfig.server.port = await (0, get_port_1.default)({ port: finalConfig.server.port || 3000 }),
// Ask vite to pre-optimize all dependencies of the specs

@@ -68,4 +68,4 @@ finalConfig.optimizeDeps = finalConfig.optimizeDeps || {};

const resolvedConfig = await resolveServerConfig(devServerOptions);
return vite_1.createServer(resolvedConfig);
return (0, vite_1.createServer)(resolvedConfig);
}
exports.start = start;
{
"name": "@cypress/vite-dev-server",
"version": "2.2.1",
"version": "2.2.2",
"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