cypress 5.5.0 → 5.6.0

Sign up to get free protection for your applications and to get access to all the features.
package/lib/cli.js CHANGED
@@ -308,7 +308,12 @@ module.exports = {
308
308
  command,
309
309
  size: opts.size
310
310
  });
311
- return cache.list(opts.size).catch(e => {
311
+ return cache.list(opts.size).catch({
312
+ code: 'ENOENT'
313
+ }, () => {
314
+ logger.always('No cached binary versions were found.');
315
+ process.exit(0);
316
+ }).catch(e => {
312
317
  debug('cache list command failed with "%s"', e.message);
313
318
  util.logErrorExit1(e);
314
319
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "5.5.0",
3
+ "version": "5.6.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node index.js --exec install",
@@ -19,7 +19,7 @@
19
19
  "chalk": "^4.1.0",
20
20
  "check-more-types": "^2.24.0",
21
21
  "cli-table3": "~0.6.0",
22
- "commander": "^4.1.1",
22
+ "commander": "^5.1.0",
23
23
  "common-tags": "^1.8.0",
24
24
  "debug": "^4.1.1",
25
25
  "eventemitter2": "^6.4.2",
@@ -1107,7 +1107,7 @@ declare namespace Cypress {
1107
1107
  ...args: any[]
1108
1108
  ): Chainable<R>
1109
1109
  invoke<K extends keyof Subject, F extends ((...args: any[]) => any) & Subject[K], R = ReturnType<F>>(
1110
- options: Loggable,
1110
+ options: Partial<Loggable & Timeoutable>,
1111
1111
  functionName: K,
1112
1112
  ...args: any[]
1113
1113
  ): Chainable<R>
@@ -1117,7 +1117,7 @@ declare namespace Cypress {
1117
1117
  * @see https://on.cypress.io/invoke
1118
1118
  */
1119
1119
  invoke<T extends (...args: any[]) => any, Subject extends T[]>(index: number): Chainable<ReturnType<T>>
1120
- invoke<T extends (...args: any[]) => any, Subject extends T[]>(options: Loggable, index: number): Chainable<ReturnType<T>>
1120
+ invoke<T extends (...args: any[]) => any, Subject extends T[]>(options: Partial<Loggable & Timeoutable>, index: number): Chainable<ReturnType<T>>
1121
1121
 
1122
1122
  /**
1123
1123
  * Invoke a function on the previously yielded subject by a property path.
@@ -1138,8 +1138,8 @@ declare namespace Cypress {
1138
1138
  * // Drill into nested properties by using dot notation
1139
1139
  * cy.wrap({foo: {bar: {baz: 1}}}).its('foo.bar.baz')
1140
1140
  */
1141
- its<K extends keyof Subject>(propertyName: K, options?: Loggable): Chainable<Subject[K]>
1142
- its(propertyPath: string, options?: Loggable): Chainable
1141
+ its<K extends keyof Subject>(propertyName: K, options?: Partial<Loggable & Timeoutable>): Chainable<Subject[K]>
1142
+ its(propertyPath: string, options?: Partial<Loggable & Timeoutable>): Chainable
1143
1143
 
1144
1144
  /**
1145
1145
  * Get a value by index from an array yielded from the previous command.
@@ -1147,7 +1147,7 @@ declare namespace Cypress {
1147
1147
  * @example
1148
1148
  * cy.wrap(['a', 'b']).its(1).should('equal', 'b')
1149
1149
  */
1150
- its<T, Subject extends T[]>(index: number, options?: Loggable): Chainable<T>
1150
+ its<T, Subject extends T[]>(index: number, options?: Partial<Loggable & Timeoutable>): Chainable<T>
1151
1151
 
1152
1152
  /**
1153
1153
  * Get the last DOM element within a set of DOM elements.
@@ -1766,7 +1766,7 @@ declare namespace Cypress {
1766
1766
  *
1767
1767
  * @see https://on.cypress.io/task
1768
1768
  */
1769
- task(event: string, arg?: any, options?: Partial<Loggable & Timeoutable>): Chainable<Subject>
1769
+ task<S = unknown>(event: string, arg?: any, options?: Partial<Loggable & Timeoutable>): Chainable<S>
1770
1770
 
1771
1771
  /**
1772
1772
  * Enables you to work with the subject yielded from the previous command.
@@ -5237,7 +5237,7 @@ declare namespace Cypress {
5237
5237
  snapshot(name?: string, options?: { at?: number, next: string }): Log
5238
5238
  }
5239
5239
 
5240
- interface LogConfig {
5240
+ interface LogConfig extends Timeoutable {
5241
5241
  /** The JQuery element for the command. This will highlight the command in the main window when debugging */
5242
5242
  $el: JQuery
5243
5243
  /** Allows the name of the command to be overwritten */
@@ -111,6 +111,11 @@ export namespace CyHttpMessages {
111
111
  * not follow redirects before yielding the response (the 3xx redirect is yielded)
112
112
  */
113
113
  followRedirect?: boolean
114
+ /**
115
+ * If set, `cy.wait` can be used to await the request/response cycle to complete for this
116
+ * request via `cy.wait('@alias')`.
117
+ */
118
+ alias?: string
114
119
  }
115
120
 
116
121
  export interface IncomingHttpRequest extends IncomingRequest {