Socket
Socket
Sign inDemoInstall

@cypress/webpack-preprocessor

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cypress/webpack-preprocessor - npm Package Compare versions

Comparing version 5.17.1 to 6.0.0

2

dist/index.d.ts

@@ -1,3 +0,1 @@

/// <reference types="webpack-dev-server" />
/// <reference types="webpack-dev-server-3" />
/// <reference types="node" />

@@ -4,0 +2,0 @@ import Bluebird from 'bluebird';

16

dist/index.js

@@ -245,5 +245,15 @@ "use strict";

debug('compile', filePath);
var nextBundle = utils_1.default.createDeferred();
bundles[filePath].promise = nextBundle.promise;
bundles[filePath].deferreds.push(nextBundle);
/**
* Webpack 5 fix:
* If the bundle is the initial bundle, do not create the deferred promise
* as we already have one from above. Creating additional deferments on top of
* the first bundle causes reference issues with the first bundle returned, meaning
* the promise that is resolved/rejected is different from the one that is returned, which
* makes the preprocessor permanently hang
*/
if (!bundles[filePath].initial) {
var nextBundle = utils_1.default.createDeferred();
bundles[filePath].promise = nextBundle.promise;
bundles[filePath].deferreds.push(nextBundle);
}
bundles[filePath].promise.finally(function () {

@@ -250,0 +260,0 @@ debug('- compile finished for %s, initial? %s', filePath, bundles[filePath].initial);

{
"name": "@cypress/webpack-preprocessor",
"version": "5.17.1",
"version": "6.0.0",
"description": "Cypress preprocessor for bundling JavaScript via webpack",

@@ -29,7 +29,7 @@ "private": false,

"devDependencies": {
"@babel/core": "^7.0.1",
"@babel/preset-env": "^7.0.0",
"@babel/core": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@types/mocha": "9.0.0",
"@types/webpack": "^4.41.12",
"babel-loader": "^8.0.2",
"babel-loader": "^9.1.3",
"chai": "4.1.2",

@@ -42,3 +42,2 @@ "chalk": "3.0.0",

"deps-ok": "1.4.1",
"fast-glob": "3.1.1",
"find-webpack": "1.5.0",

@@ -54,3 +53,3 @@ "fs-extra": "^10.1.0",

"ts-node": "^10.9.1",
"webpack": "^4.44.2"
"webpack": "^5.88.2"
},

@@ -60,3 +59,3 @@ "peerDependencies": {

"@babel/preset-env": "^7.0.0",
"babel-loader": "^8.0.2 || ^9",
"babel-loader": "^8.3 || ^9",
"webpack": "^4 || ^5"

@@ -63,0 +62,0 @@ },

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