cypress 13.15.0 → 13.15.1

Sign up to get free protection for your applications and to get access to all the features.
package/lib/exec/spawn.js CHANGED
@@ -12,6 +12,7 @@ const state = require('../tasks/state');
12
12
  const xvfb = require('./xvfb');
13
13
  const verify = require('../tasks/verify');
14
14
  const errors = require('../errors');
15
+ const readline = require('readline');
15
16
  const isXlibOrLibudevRe = /^(?:Xlib|libudev)/;
16
17
  const isHighSierraWarningRe = /\*\*\* WARNING/;
17
18
  const isRenderWorkerRe = /\.RenderWorker-/;
@@ -204,6 +205,19 @@ module.exports = {
204
205
  child.on('close', resolveOn('close'));
205
206
  child.on('exit', resolveOn('exit'));
206
207
  child.on('error', reject);
208
+ if (isPlatform('win32')) {
209
+ const rl = readline.createInterface({
210
+ input: process.stdin,
211
+ output: process.stdout
212
+ });
213
+
214
+ // on windows, SIGINT does not propagate to the child process when ctrl+c is pressed
215
+ // this makes sure all nested processes are closed(ex: firefox inside the server)
216
+ rl.on('SIGINT', function () {
217
+ let kill = require('tree-kill');
218
+ kill(child.pid, 'SIGINT');
219
+ });
220
+ }
207
221
 
208
222
  // if stdio options is set to 'pipe', then
209
223
  // we should set up pipes:
@@ -17,7 +17,7 @@
17
17
  "rollup": "3.7.3",
18
18
  "rollup-plugin-dts": "5.0.0",
19
19
  "rollup-plugin-typescript2": "^0.29.0",
20
- "typescript": "^5.4.5"
20
+ "typescript": "~5.4.5"
21
21
  },
22
22
  "files": [
23
23
  "dist"
@@ -17,7 +17,7 @@
17
17
  "rollup": "3.7.3",
18
18
  "rollup-plugin-dts": "5.0.0",
19
19
  "rollup-plugin-typescript2": "^0.29.0",
20
- "typescript": "^5.4.5"
20
+ "typescript": "~5.4.5"
21
21
  },
22
22
  "files": [
23
23
  "dist"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "13.15.0",
3
+ "version": "13.15.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node index.js --exec install",
@@ -47,6 +47,7 @@
47
47
  "semver": "^7.5.3",
48
48
  "supports-color": "^8.1.1",
49
49
  "tmp": "~0.2.3",
50
+ "tree-kill": "1.2.2",
50
51
  "untildify": "^4.0.0",
51
52
  "yauzl": "^2.10.0"
52
53
  },
@@ -140,8 +141,8 @@
140
141
  },
141
142
  "buildInfo": {
142
143
  "commitBranch": "develop",
143
- "commitSha": "5afb9294739380339e3cb41181f32a71e75fe69d",
144
- "commitDate": "2024-09-25T17:54:37.000Z",
144
+ "commitSha": "199b1cd580d22fc412641f164e3ee6492f88e338",
145
+ "commitDate": "2024-10-24T14:36:10.000Z",
145
146
  "stable": true
146
147
  },
147
148
  "description": "Cypress is a next generation front end testing tool built for the modern web",
@@ -22,7 +22,7 @@
22
22
  "react-dom": "^16",
23
23
  "rollup": "3.7.3",
24
24
  "rollup-plugin-typescript2": "^0.29.0",
25
- "typescript": "^5.4.5"
25
+ "typescript": "~5.4.5"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@types/react": "^18",
@@ -22,7 +22,7 @@
22
22
  "react-dom": "^16",
23
23
  "rollup": "3.7.3",
24
24
  "rollup-plugin-typescript2": "^0.29.0",
25
- "typescript": "^5.4.5"
25
+ "typescript": "~5.4.5"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@types/react": "^18",
@@ -13,7 +13,7 @@
13
13
  "devDependencies": {
14
14
  "@cypress/mount-utils": "0.0.0-development",
15
15
  "svelte": "^3.49.0",
16
- "typescript": "^5.4.5"
16
+ "typescript": "~5.4.5"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "cypress": ">=10.6.0",
@@ -13,7 +13,7 @@
13
13
  "devDependencies": {
14
14
  "@cypress/mount-utils": "0.0.0-development",
15
15
  "svelte": "^3.49.0",
16
- "typescript": "^5.4.5"
16
+ "typescript": "~5.4.5"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "cypress": ">=10.6.0",