cypress 12.4.1 → 12.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,11 +32,11 @@ const clear = () => {
32
32
  };
33
33
  const prune = () => {
34
34
  const cacheDir = state.getCacheDir();
35
- const currentVersion = util.pkgVersion();
35
+ const checkedInBinaryVersion = util.pkgVersion();
36
36
  let deletedBinary = false;
37
37
  return fs.readdirAsync(cacheDir).then(versions => {
38
38
  return Bluebird.all(versions.map(version => {
39
- if (version !== currentVersion) {
39
+ if (version !== checkedInBinaryVersion) {
40
40
  deletedBinary = true;
41
41
  const versionDir = join(cacheDir, version);
42
42
  return fs.removeAsync(versionDir);
@@ -44,7 +44,7 @@ const prune = () => {
44
44
  }));
45
45
  }).then(() => {
46
46
  if (deletedBinary) {
47
- logger.always(`Deleted all binary caches except for the ${currentVersion} binary cache.`);
47
+ logger.always(`Deleted all binary caches except for the ${checkedInBinaryVersion} binary cache.`);
48
48
  } else {
49
49
  logger.always(`No binary caches found to prune.`);
50
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "12.4.1",
3
+ "version": "12.5.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node index.js --exec install",
@@ -118,8 +118,8 @@
118
118
  },
119
119
  "buildInfo": {
120
120
  "commitBranch": "develop",
121
- "commitSha": "e0320f7e047b2115fa32cad9ecb720ca624cfe86",
122
- "commitDate": "2023-01-26T22:20:47.000Z",
121
+ "commitSha": "50933faac48820d9e35dce1bb217d757f484deaf",
122
+ "commitDate": "2023-02-02T14:35:52.000Z",
123
123
  "stable": true
124
124
  },
125
125
  "description": "Cypress is a next generation front end testing tool built for the modern web",
@@ -5976,14 +5976,14 @@ declare namespace Cypress {
5976
5976
  * Useful to see how internal cypress commands utilize the {% url 'Cypress.log()' cypress-log %} API.
5977
5977
  * @see https://on.cypress.io/catalog-of-events#App-Events
5978
5978
  */
5979
- (action: 'log:added', fn: (log: any, interactive: boolean) => void): Cypress
5979
+ (action: 'log:added', fn: (attributes: ObjectLike, log: any) => void): Cypress
5980
5980
  /**
5981
5981
  * Fires whenever a command's attributes changes.
5982
5982
  * This event is debounced to prevent it from firing too quickly and too often.
5983
5983
  * Useful to see how internal cypress commands utilize the {% url 'Cypress.log()' cypress-log %} API.
5984
5984
  * @see https://on.cypress.io/catalog-of-events#App-Events
5985
5985
  */
5986
- (action: 'log:changed', fn: (log: any, interactive: boolean) => void): Cypress
5986
+ (action: 'log:changed', fn: (attributes: ObjectLike, log: any) => void): Cypress
5987
5987
  /**
5988
5988
  * Fires before the test and all **before** and **beforeEach** hooks run.
5989
5989
  * @see https://on.cypress.io/catalog-of-events#App-Events