From 75378d07441b417c709041a3b4a1dbd4ff75e24a Mon Sep 17 00:00:00 2001 From: Ashik Kumar Date: Wed, 14 Jan 2026 01:04:59 +0000 Subject: [PATCH] update dependencies --- node_modules/.package-lock.json | 6 +- node_modules/cypress/dist/errors.js | 18 +- node_modules/cypress/dist/exec/open.js | 9 +- .../mount-utils/mount-utils/package.json | 1 + node_modules/cypress/mount-utils/package.json | 1 + node_modules/cypress/package.json | 6 +- node_modules/cypress/react/package.json | 5 +- node_modules/cypress/react/react/package.json | 5 +- node_modules/cypress/types/cypress.d.ts | 10 +- .../cypress/types/lodash/common/array.d.ts | 71 +++-- .../types/lodash/common/collection.d.ts | 12 +- .../cypress/types/lodash/common/common.d.ts | 33 +- .../cypress/types/lodash/common/function.d.ts | 45 ++- .../cypress/types/lodash/common/lang.d.ts | 14 +- .../cypress/types/lodash/common/math.d.ts | 4 +- .../cypress/types/lodash/common/object.d.ts | 164 ++++++++-- .../cypress/types/lodash/common/seq.d.ts | 4 +- .../cypress/types/lodash/common/string.d.ts | 42 +-- .../cypress/types/lodash/common/util.d.ts | 7 +- node_modules/cypress/types/lodash/fp.d.ts | 288 ++++++++++-------- node_modules/cypress/types/lodash/index.d.ts | 27 +- node_modules/cypress/types/net-stubbing.d.ts | 9 +- node_modules/cypress/vue/package.json | 5 +- node_modules/cypress/vue/vue/package.json | 5 +- package-lock.json | 14 +- package.json | 2 +- 26 files changed, 491 insertions(+), 316 deletions(-) diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 273ba888..b9cb9d87 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -700,9 +700,9 @@ } }, "node_modules/cypress": { - "version": "15.8.2", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-15.8.2.tgz", - "integrity": "sha512-KGpuiE8o9l9eyVLPkig574t8zOXkEDKzI0a+RQwy4cfXzpaLipvTOv0t+QEEkLiw/8HbgMNZ0fbPKakJAB3USA==", + "version": "15.9.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-15.9.0.tgz", + "integrity": "sha512-Ks6Bdilz3TtkLZtTQyqYaqtL/WT3X3APKaSLhTV96TmTyudzSjc6EJsJCHmBb7DxO+3R12q3Jkbjgm/iPgmwfg==", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/node_modules/cypress/dist/errors.js b/node_modules/cypress/dist/errors.js index 5a948a2a..164868af 100644 --- a/node_modules/cypress/dist/errors.js +++ b/node_modules/cypress/dist/errors.js @@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.errors = exports.exitWithError = exports.throwFormErrorText = exports.raise = exports.hr = void 0; +exports.errors = exports.exitWithError = exports.throwFormErrorText = void 0; exports.getError = getError; exports.formErrorText = formErrorText; const chalk_1 = __importDefault(require("chalk")); @@ -26,7 +26,7 @@ const requiredDependenciesUrl = `${docsUrl}/required-dependencies`; const runDocumentationUrl = `${docsUrl}/cypress-run`; // TODO it would be nice if all error objects could be enforced via types // to only have description + solution properties -exports.hr = '----------'; +const hr = '----------'; const genericErrorSolution = (0, common_tags_1.stripIndent) ` Search for an existing issue or open a GitHub issue at @@ -152,11 +152,11 @@ const invalidSmokeTestDisplayError = { The error logs we received were: - ${exports.hr} + ${hr} ${msg} - ${exports.hr} + ${hr} This may be due to a missing library or dependency. ${chalk_1.default.blue(requiredDependenciesUrl)} @@ -306,7 +306,7 @@ function formErrorText(info, msg, prevMessage) { `); if (msg) { add(` - ${exports.hr} + ${hr} ${msg} @@ -314,14 +314,14 @@ function formErrorText(info, msg, prevMessage) { } } add(` - ${exports.hr} + ${hr} ${infoWithPlatform.platform} `); if (infoWithPlatform.footer) { add(` - ${exports.hr} + ${hr} ${infoWithPlatform.footer} `); @@ -339,11 +339,10 @@ const raise = (info) => { throw err; }; }; -exports.raise = raise; const throwFormErrorText = (info) => { return (msg, prevMessage) => __awaiter(void 0, void 0, void 0, function* () { const errorText = yield formErrorText(info, msg, prevMessage); - (0, exports.raise)(info)(errorText); + raise(info)(errorText); }); }; exports.throwFormErrorText = throwFormErrorText; @@ -356,7 +355,6 @@ exports.throwFormErrorText = throwFormErrorText; const exitWithError = (info) => { return (msg) => __awaiter(void 0, void 0, void 0, function* () { const text = yield formErrorText(info, msg); - // eslint-disable-next-line no-console console.error(text); process.exit(info.exitCode || 1); }); diff --git a/node_modules/cypress/dist/exec/open.js b/node_modules/cypress/dist/exec/open.js index 5f8aa8c1..cbc383f2 100644 --- a/node_modules/cypress/dist/exec/open.js +++ b/node_modules/cypress/dist/exec/open.js @@ -12,7 +12,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.start = exports.processOpenOptions = void 0; const debug_1 = __importDefault(require("debug")); const util_1 = __importDefault(require("../util")); const spawn_1 = require("./spawn"); @@ -73,11 +72,10 @@ const processOpenOptions = (options = {}) => { debug('command line arguments %j', args); return args; }; -exports.processOpenOptions = processOpenOptions; const start = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (options = {}) { function open() { try { - const args = (0, exports.processOpenOptions)(options); + const args = processOpenOptions(options); return (0, spawn_1.start)(args, { dev: options.dev, detached: Boolean(options.detached), @@ -96,8 +94,7 @@ const start = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (o yield (0, verify_1.start)(); return open(); }); -exports.start = start; exports.default = { - start: exports.start, - processOpenOptions: exports.processOpenOptions, + start, + processOpenOptions, }; diff --git a/node_modules/cypress/mount-utils/mount-utils/package.json b/node_modules/cypress/mount-utils/mount-utils/package.json index 8accf918..6dbcb08b 100644 --- a/node_modules/cypress/mount-utils/mount-utils/package.json +++ b/node_modules/cypress/mount-utils/mount-utils/package.json @@ -16,6 +16,7 @@ "@rollup/plugin-commonjs": "^17.1.0", "@rollup/plugin-node-resolve": "^11.2.1", "eslint": "^9.31.0", + "lodash": "^4.17.21", "rollup": "3.29.5", "rollup-plugin-dts": "5.0.0", "rollup-plugin-typescript2": "^0.29.0", diff --git a/node_modules/cypress/mount-utils/package.json b/node_modules/cypress/mount-utils/package.json index 8accf918..6dbcb08b 100644 --- a/node_modules/cypress/mount-utils/package.json +++ b/node_modules/cypress/mount-utils/package.json @@ -16,6 +16,7 @@ "@rollup/plugin-commonjs": "^17.1.0", "@rollup/plugin-node-resolve": "^11.2.1", "eslint": "^9.31.0", + "lodash": "^4.17.21", "rollup": "3.29.5", "rollup-plugin-dts": "5.0.0", "rollup-plugin-typescript2": "^0.29.0", diff --git a/node_modules/cypress/package.json b/node_modules/cypress/package.json index d3ad9191..23ab1c8f 100644 --- a/node_modules/cypress/package.json +++ b/node_modules/cypress/package.json @@ -1,6 +1,6 @@ { "name": "cypress", - "version": "15.8.2", + "version": "15.9.0", "main": "dist/index.js", "scripts": { "postinstall": "node dist/index.js --exec install", @@ -132,8 +132,8 @@ }, "buildInfo": { "commitBranch": "develop", - "commitSha": "09170d866873be100f1b6ee3c007babc14a24246", - "commitDate": "2026-01-05T23:14:49.000Z", + "commitSha": "2b07fd10b0b4899893346b8da834cac1f2eb3eea", + "commitDate": "2026-01-12T21:04:46.000Z", "stable": true }, "description": "Cypress is a next generation front end testing tool built for the modern web", diff --git a/node_modules/cypress/react/package.json b/node_modules/cypress/react/package.json index 21af7121..e58e3625 100644 --- a/node_modules/cypress/react/package.json +++ b/node_modules/cypress/react/package.json @@ -17,7 +17,6 @@ }, "devDependencies": { "@cypress/mount-utils": "0.0.0-development", - "@types/semver": "7.7.1", "@vitejs/plugin-react": "4.6.0", "axios": "1.8.2", "cypress": "0.0.0-development", @@ -27,10 +26,8 @@ "react-router": "6.28.0", "react-router-dom": "6.28.0", "rollup": "3.29.5", - "semver": "^7.7.3", "typescript": "~5.4.5", - "vite": "6.3.5", - "vite-plugin-require-transform": "1.0.21" + "vite": "6.3.5" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/node_modules/cypress/react/react/package.json b/node_modules/cypress/react/react/package.json index 21af7121..e58e3625 100644 --- a/node_modules/cypress/react/react/package.json +++ b/node_modules/cypress/react/react/package.json @@ -17,7 +17,6 @@ }, "devDependencies": { "@cypress/mount-utils": "0.0.0-development", - "@types/semver": "7.7.1", "@vitejs/plugin-react": "4.6.0", "axios": "1.8.2", "cypress": "0.0.0-development", @@ -27,10 +26,8 @@ "react-router": "6.28.0", "react-router-dom": "6.28.0", "rollup": "3.29.5", - "semver": "^7.7.3", "typescript": "~5.4.5", - "vite": "6.3.5", - "vite-plugin-require-transform": "1.0.21" + "vite": "6.3.5" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/node_modules/cypress/types/cypress.d.ts b/node_modules/cypress/types/cypress.d.ts index 802a3bb7..0ba36524 100644 --- a/node_modules/cypress/types/cypress.d.ts +++ b/node_modules/cypress/types/cypress.d.ts @@ -3173,6 +3173,11 @@ declare namespace Cypress { * @default false */ injectDocumentDomain: boolean + /** + * Enables the "Run All Specs" UI feature, allowing the execution of multiple specs sequentially. + * @default false + */ + experimentalRunAllSpecs?: boolean /** * Enables AST-based JS/HTML rewriting. This may fix issues caused by the existing regex-based JS/HTML replacement algorithm. * @default false @@ -3274,11 +3279,6 @@ declare namespace Cypress { } interface EndToEndConfigOptions extends Omit { - /** - * Enables the "Run All Specs" UI feature, allowing the execution of multiple specs sequentially. - * @default false - */ - experimentalRunAllSpecs?: boolean /** * Enables support for `Cypress.require()` for including dependencies within the `cy.origin()` callback. * @default false diff --git a/node_modules/cypress/types/lodash/common/array.d.ts b/node_modules/cypress/types/lodash/common/array.d.ts index 18206e65..6719936a 100644 --- a/node_modules/cypress/types/lodash/common/array.d.ts +++ b/node_modules/cypress/types/lodash/common/array.d.ts @@ -1,4 +1,12 @@ import _ = require("../index"); + +// Helper types to reject readonly arrays +type _Eq = (() => X extends T ? 1 : 2) extends (() => X extends U ? 1 : 2) ? true : false +type _IsWritable = _Eq<{ [K in keyof T]: T[K] }, { -readonly [K in keyof T]: T[K] }> +type RejectReadonly> = _IsWritable extends true ? T : never + +export {} + declare module "../index" { interface LoDashStatic { /** @@ -25,16 +33,17 @@ declare module "../index" { } interface LoDashStatic { /** - * Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are + * Creates an array with all falsey values removed. The values false, null, 0, 0n, "", undefined, and NaN are * falsey. * * @param array The array to compact. * @return Returns the new array of filtered values. */ - compact(array: List | null | undefined): T[]; + compact(array: List | null | undefined): T[]; } - type Truthy = T extends null | undefined | false | "" | 0 ? never : T; + type Falsey = null | undefined | false | "" | 0 | 0n; + type Truthy = T extends Falsey ? never : T; interface Collection { /** * @see _.compact @@ -53,8 +62,7 @@ declare module "../index" { * and/or values. * * @category Array - * @param array The array to concatenate. - * @param [values] The values to concatenate. + * @param [values] The array values to concatenate. * @returns Returns the new concatenated array. * @example * @@ -67,7 +75,7 @@ declare module "../index" { * console.log(array); * // => [1] */ - concat(array: Many, ...values: Array>): T[]; + concat(...values: Array>): T[]; } interface Primitive { /** @@ -107,8 +115,8 @@ declare module "../index" { } interface LoDashStatic { /** - * Creates an array of unique array values not included in the other provided arrays using SameValueZero for - * equality comparisons. + * Creates an array of `array` values not included in the other provided arrays using SameValueZero for + * equality comparisons. The order and references of result values are determined by the first array. * * @param array The array to inspect. * @param values The arrays of values to exclude. @@ -130,9 +138,9 @@ declare module "../index" { } interface LoDashStatic { /** - * This method is like _.difference except that it accepts iteratee which is invoked for each element of array - * and values to generate the criterion by which uniqueness is computed. The iteratee is invoked with one - * argument: (value). + * This method is like _.difference except that it accepts iteratee which is invoked for each element + * of array and values to generate the criterion by which they're compared. The order and references + * of result values are determined by the first array. The iteratee is invoked with one argument: (value). * * @param array The array to inspect. * @param values The values to exclude. @@ -187,9 +195,9 @@ declare module "../index" { } interface LoDashStatic { /** - * Creates an array of unique `array` values not included in the other - * provided arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) - * for equality comparisons. + * This method is like _.difference except that it accepts comparator which is invoked to compare elements + * of array to values. The order and references of result values are determined by the first array. The + * comparator is invoked with two arguments: (arrVal, othVal). * * @category Array * @param [values] The arrays to inspect. @@ -342,7 +350,7 @@ declare module "../index" { /** * @see _.fill */ - fill(array: List | null | undefined, value: T): List; + fill>(array: RejectReadonly | null | undefined, value: T): List; /** * @see _.fill */ @@ -350,7 +358,7 @@ declare module "../index" { /** * @see _.fill */ - fill(array: List | null | undefined, value: T, start?: number, end?: number): List; + fill>(array: RejectReadonly | null | undefined, value: T, start?: number, end?: number): List; } interface Collection { /** @@ -574,6 +582,7 @@ declare module "../index" { * @param array The array to query. * @return Returns the first element of array. */ + head(array: readonly [T, ...unknown[]]): T; head(array: List | null | undefined): T | undefined; } interface String { @@ -759,15 +768,15 @@ declare module "../index" { * _.intersectionWith(objects, others, _.isEqual); * // => [{ 'x': 1, 'y': 2 }] */ - intersectionWith(array: List | null | undefined, values: List, comparator: Comparator2): T1[]; + intersectionWith(array: List | null | undefined, values: List, comparator: Comparator2): T1[]; /** * @see _.intersectionWith */ - intersectionWith(array: List | null | undefined, values1: List, values2: List, comparator: Comparator2): T1[]; + intersectionWith(array: List | null | undefined, values1: List, values2: List, comparator: Comparator2): T1[]; /** * @see _.intersectionWith */ - intersectionWith(array: List | null | undefined, values1: List, values2: List, ...values: Array | Comparator2>): T1[]; + intersectionWith(array: List | null | undefined, values1: List, values2: List, ...values: Array | Comparator2>): T1[]; /** * @see _.intersectionWith */ @@ -777,7 +786,7 @@ declare module "../index" { /** * @see _.intersectionWith */ - intersectionWith(values: List, comparator: Comparator2): Collection; + intersectionWith(values: List, comparator: Comparator2): Collection; /** * @see _.intersectionWith */ @@ -787,7 +796,7 @@ declare module "../index" { /** * @see _.intersectionWith */ - intersectionWith(values: List, comparator: Comparator2): CollectionChain; + intersectionWith(values: List, comparator: Comparator2): CollectionChain; /** * @see _.intersectionWith */ @@ -840,6 +849,7 @@ declare module "../index" { * @param array The array to query. * @return Returns the last element of array. */ + last(array: readonly [...unknown[], T]): T; last(array: List | null | undefined): T | undefined; } interface Collection { @@ -931,7 +941,7 @@ declare module "../index" { /** * @see _.pull */ - pull(array: List, ...values: T[]): List; + pull>(array: RejectReadonly, ...values: TList[0][]): TList; } interface Collection { /** @@ -967,7 +977,7 @@ declare module "../index" { /** * @see _.pullAll */ - pullAll(array: List, values?: List): List; + pullAll>(array: RejectReadonly, values?: List): TList; } interface Collection { /** @@ -1006,7 +1016,7 @@ declare module "../index" { /** * @see _.pullAllBy */ - pullAllBy(array: List, values?: List, iteratee?: ValueIteratee): List; + pullAllBy>(array: RejectReadonly, values?: List, iteratee?: ValueIteratee): TList; /** * @see _.pullAllBy */ @@ -1014,7 +1024,7 @@ declare module "../index" { /** * @see _.pullAllBy */ - pullAllBy(array: List, values: List, iteratee: ValueIteratee): List; + pullAllBy, T2>(array: RejectReadonly, values: List, iteratee: ValueIteratee): T1List; } interface Collection { /** @@ -1053,7 +1063,7 @@ declare module "../index" { /** * @see _.pullAllWith */ - pullAllWith(array: List, values?: List, comparator?: Comparator): List; + pullAllWith>(array: RejectReadonly, values?: List, comparator?: Comparator): TList; /** * @see _.pullAllWith */ @@ -1061,7 +1071,7 @@ declare module "../index" { /** * @see _.pullAllWith */ - pullAllWith(array: List, values: List, comparator: Comparator2): List; + pullAllWith, T2>(array: RejectReadonly, values: List, comparator: Comparator2): T1List; } interface Collection { /** @@ -1090,7 +1100,7 @@ declare module "../index" { /** * @see _.pullAt */ - pullAt(array: List, ...indexes: Array>): List; + pullAt>(array: RejectReadonly, ...indexes: Array>): TList; } interface Collection { /** @@ -1115,7 +1125,7 @@ declare module "../index" { * @param predicate The function invoked per iteration. * @return Returns the new array of removed elements. */ - remove(array: List, predicate?: ListIteratee): T[]; + remove>(array: RejectReadonly, predicate?: ListIteratee): TList[0][]; } interface Collection { /** @@ -1149,7 +1159,7 @@ declare module "../index" { * console.log(array); * // => [3, 2, 1] */ - reverse>(array: TList): TList; + reverse>(array: RejectReadonly): TList; } interface LoDashStatic { /** @@ -1450,6 +1460,7 @@ declare module "../index" { * @param array The array to query. * @return Returns the slice of array. */ + tail(array: readonly [unknown, ...T]): T; tail(array: List | null | undefined): T[]; } interface Collection { diff --git a/node_modules/cypress/types/lodash/common/collection.d.ts b/node_modules/cypress/types/lodash/common/collection.d.ts index ea6203ce..5f97d7d1 100644 --- a/node_modules/cypress/types/lodash/common/collection.d.ts +++ b/node_modules/cypress/types/lodash/common/collection.d.ts @@ -980,7 +980,7 @@ declare module "../index" { /** * @see _.groupBy */ - groupBy(iteratee?: ValueIteratee): ObjectChain>; + groupBy(iteratee?: ValueIteratee): ObjectChain>; } interface CollectionChain { /** @@ -1153,6 +1153,10 @@ declare module "../index" { * @param iteratee The function invoked per iteration. * @return Returns the new mapped array. */ + map(collection: T, iteratee: TupleIterator): { [K in keyof T]: TResult }; + /** + * @see _.map + */ map(collection: T[] | null | undefined, iteratee: ArrayIterator): TResult[]; /** * @see _.map @@ -1309,7 +1313,7 @@ declare module "../index" { * @param collection The collection to iterate over. * @param [iteratees=[_.identity]] The iteratees to sort by. * @param [orders] The sort orders of `iteratees`. - * @param- {Object} [guard] Enables use as an iteratee for functions like `_.reduce`. + * @param [guard] Enables use as an iteratee for functions like `_.reduce`. * @returns Returns the new sorted array. * @example * @@ -1645,6 +1649,10 @@ declare module "../index" { * @param collection The collection to sample. * @return Returns the random element. */ + sample(collection: readonly [T, ...T[]]): T; + /** + * @see _.sample + */ sample(collection: Dictionary | NumericDictionary | null | undefined): T | undefined; /** * @see _.sample diff --git a/node_modules/cypress/types/lodash/common/common.d.ts b/node_modules/cypress/types/lodash/common/common.d.ts index a2fff219..807d5615 100644 --- a/node_modules/cypress/types/lodash/common/common.d.ts +++ b/node_modules/cypress/types/lodash/common/common.d.ts @@ -1,14 +1,15 @@ import _ = require("../index"); -// tslint:disable-next-line:strict-export-declare-modifiers +// eslint-disable-next-line @definitelytyped/strict-export-declare-modifiers type GlobalPartial = Partial; +export const uniqueSymbol: unique symbol; declare module "../index" { type Omit = Pick>; type PartialObject = GlobalPartial; - type Many = T | ReadonlyArray; + type Many = T | readonly T[]; type ImpChain = T extends { __trapAny: any } ? Collection & Function & Object & Primitive & String : T extends null | undefined ? never : - T extends string | null | undefined ? String : + T extends string ? String : T extends (...args: any) => any ? Function : T extends List | null | undefined ? Collection : T extends object | null | undefined ? Object : @@ -16,8 +17,7 @@ declare module "../index" { type ExpChain = T extends { __trapAny: any } ? CollectionChain & FunctionChain & ObjectChain & PrimitiveChain & StringChain : T extends null | undefined ? never : - T extends string ? StringChain : - T extends string | null | undefined ? StringNullableChain : + T extends string ? StringChain : T extends (...args: any) => any ? FunctionChain : T extends List | null | undefined ? CollectionChain : T extends object | null | undefined ? ObjectChain : @@ -92,6 +92,7 @@ declare module "../index" { * upperFirst, value, and words. **/ (value: TrapAny): Collection & Function & Object & Primitive & String; + (value: T): String; (value: T): Primitive; (value: string | null | undefined): String; any>(value: T): Function; @@ -116,23 +117,23 @@ declare module "../index" { /** * The "escape" delimiter. **/ - escape?: RegExp; + escape?: RegExp | null | undefined; /** * The "evaluate" delimiter. **/ - evaluate?: RegExp; + evaluate?: RegExp | null | undefined; /** * An object to import into the template as local variables. */ - imports?: Dictionary; + imports?: Dictionary | undefined; /** * The "interpolate" delimiter. */ - interpolate?: RegExp; + interpolate?: RegExp | null | undefined; /** * Used to reference the data object in the template text. */ - variable?: string; + variable?: string | undefined; } /** * Creates a cache object to store key/value pairs. @@ -166,7 +167,7 @@ declare module "../index" { /** * Removes all key-value entries from the map. */ - clear?: () => void; + clear?: (() => void) | undefined; } interface MapCacheConstructor { new (): MapCache; @@ -189,7 +190,7 @@ declare module "../index" { } interface Function any> extends LoDashImplicitWrapper { } - interface String extends LoDashImplicitWrapper { + interface String extends LoDashImplicitWrapper { } interface Object extends LoDashImplicitWrapper { } @@ -199,7 +200,7 @@ declare module "../index" { } interface FunctionChain any> extends LoDashExplicitWrapper { } - interface StringChain extends LoDashExplicitWrapper { + interface StringChain extends LoDashExplicitWrapper { } interface StringNullableChain extends LoDashExplicitWrapper { } @@ -212,6 +213,7 @@ declare module "../index" { type NotVoid = unknown; type IterateeShorthand = PropertyName | [PropertyName, any] | PartialShallow; type ArrayIterator = (value: T, index: number, collection: T[]) => TResult; + type TupleIterator = (value: T[number], index: StringToNumber, collection: T) => TResult; type ListIterator = (value: T, index: number, collection: List) => TResult; type ListIteratee = ListIterator | IterateeShorthand; type ListIterateeCustom = ListIterator | IterateeShorthand; @@ -244,6 +246,10 @@ declare module "../index" { type PropertyPath = Many; /** Common interface between Arrays and jQuery objects */ type List = ArrayLike; + interface MutableList { // Needed since ArrayLike is readonly + length: number; + [k: number]: T; + } interface Dictionary { [index: string]: T; } @@ -257,6 +263,7 @@ declare module "../index" { type PartialShallow = { [P in keyof T]?: T[P] extends object ? object : T[P] }; + type StringToNumber = T extends `${infer N extends number}` ? N : never; // For backwards compatibility type LoDashImplicitArrayWrapper = LoDashImplicitWrapper; type LoDashImplicitNillableArrayWrapper = LoDashImplicitWrapper; diff --git a/node_modules/cypress/types/lodash/common/function.d.ts b/node_modules/cypress/types/lodash/common/function.d.ts index fd93a57f..1e156436 100644 --- a/node_modules/cypress/types/lodash/common/function.d.ts +++ b/node_modules/cypress/types/lodash/common/function.d.ts @@ -358,15 +358,18 @@ declare module "../index" { /** * @see _.leading */ - leading?: boolean; + leading?: boolean | undefined; /** * @see _.maxWait */ - maxWait?: number; + maxWait?: number | undefined; /** * @see _.trailing */ - trailing?: boolean; + trailing?: boolean | undefined; + } + interface DebounceSettingsLeading extends DebounceSettings { + leading: true; } interface DebouncedFunc any> { /** @@ -375,25 +378,29 @@ declare module "../index" { * If the debounced function can be run immediately, this calls it and returns its return * value. * - * Otherwise, it returns the return value of the last invokation, or undefined if the debounced + * Otherwise, it returns the return value of the last invocation, or undefined if the debounced * function was not invoked yet. */ (...args: Parameters): ReturnType | undefined; /** - * Throw away any pending invokation of the debounced function. + * Throw away any pending invocation of the debounced function. */ cancel(): void; /** - * If there is a pending invokation of the debounced function, invoke it immediately and return + * If there is a pending invocation of the debounced function, invoke it immediately and return * its return value. * - * Otherwise, return the value from the last invokation, or undefined if the debounced function + * Otherwise, return the value from the last invocation, or undefined if the debounced function * was never invoked. */ flush(): ReturnType | undefined; } + interface DebouncedFuncLeading any> extends DebouncedFunc { + (...args: Parameters): ReturnType; + flush(): ReturnType; + } interface LoDashStatic { /** * Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since @@ -415,12 +422,17 @@ declare module "../index" { * @param options.trailing Specify invoking on the trailing edge of the timeout. * @return Returns the new debounced function. */ + debounce any>(func: T, wait: number | undefined, options: DebounceSettingsLeading): DebouncedFuncLeading; debounce any>(func: T, wait?: number, options?: DebounceSettings): DebouncedFunc; } interface Function any> { /** * @see _.debounce */ + debounce( + wait: number | undefined, + options: DebounceSettingsLeading + ): T extends (...args: any[]) => any ? Function> : never; debounce( wait?: number, options?: DebounceSettings @@ -430,6 +442,10 @@ declare module "../index" { /** * @see _.debounce */ + debounce( + wait: number | undefined, + options: DebounceSettingsLeading + ): T extends (...args: any[]) => any ? FunctionChain> : never; debounce( wait?: number, options?: DebounceSettings @@ -639,7 +655,6 @@ declare module "../index" { (func: Function4, plc1: __, plc2: __, arg3: T3): Function3; (func: Function4, arg1: T1, plc2: __, arg3: T3): Function2; (func: Function4, plc1: __, arg2: T2, arg3: T3): Function2; - (func: Function4, arg1: T1, arg2: T2, arg3: T3): Function1; (func: Function4, plc1: __, plc2: __, plc3: __, arg4: T4): Function3; (func: Function4, arg1: T1, plc2: __, plc3: __, arg4: T4): Function2; (func: Function4, plc1: __, arg2: T2, plc3: __, arg4: T4): Function2; @@ -1333,12 +1348,13 @@ declare module "../index" { /** * @see _.leading */ - leading?: boolean; + leading?: boolean | undefined; /** * @see _.trailing */ - trailing?: boolean; + trailing?: boolean | undefined; } + type ThrottleSettingsLeading = (ThrottleSettings & { leading: true }) | Omit interface LoDashStatic { /** * Creates a throttled function that only invokes func at most once per every wait milliseconds. The throttled @@ -1356,12 +1372,17 @@ declare module "../index" { * @param options.trailing Specify invoking on the trailing edge of the timeout. * @return Returns the new throttled function. */ + throttle any>(func: T, wait?: number, options?: ThrottleSettingsLeading): DebouncedFuncLeading; throttle any>(func: T, wait?: number, options?: ThrottleSettings): DebouncedFunc; } interface Function any> { /** * @see _.throttle */ + throttle( + wait?: number, + options?: ThrottleSettingsLeading + ): T extends (...args: any[]) => any ? Function> : never; throttle( wait?: number, options?: ThrottleSettings @@ -1371,6 +1392,10 @@ declare module "../index" { /** * @see _.throttle */ + throttle( + wait?: number, + options?: ThrottleSettingsLeading + ): T extends (...args: any[]) => any ? FunctionChain> : never; throttle( wait?: number, options?: ThrottleSettings diff --git a/node_modules/cypress/types/lodash/common/lang.d.ts b/node_modules/cypress/types/lodash/common/lang.d.ts index 6ade39a0..333e5356 100644 --- a/node_modules/cypress/types/lodash/common/lang.d.ts +++ b/node_modules/cypress/types/lodash/common/lang.d.ts @@ -1,5 +1,5 @@ import _ = require("../index"); -// tslint:disable-next-line:strict-export-declare-modifiers +// eslint-disable-next-line @definitelytyped/strict-export-declare-modifiers, @typescript-eslint/no-unsafe-function-type type GlobalFunction = Function; declare module "../index" { type FunctionBase = GlobalFunction; @@ -220,7 +220,8 @@ declare module "../index" { */ conformsTo(source: ConformsPredicateObject): PrimitiveChain; } - type CondPair = [(val: T) => boolean, (val: T) => R]; + type CondPairNullary = [() => boolean, () => R]; + type CondPairUnary = [(val: T) => boolean, (val: T) => R]; interface LoDashStatic { /** * Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) @@ -560,6 +561,8 @@ declare module "../index" { isElement(): PrimitiveChain; } + type EmptyObject = { [K in keyof T]?: never }; + type EmptyObjectOf = EmptyObject extends T ? EmptyObject : never; interface LoDashStatic { /** * Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or @@ -568,6 +571,11 @@ declare module "../index" { * @param value The value to inspect. * @return Returns true if value is empty, else false. */ + isEmpty(value?: T): boolean; + isEmpty(value: string): value is ''; + isEmpty(value: Map | Set | List | null | undefined): boolean; + isEmpty(value: object): boolean; + isEmpty(value: T | null | undefined): value is EmptyObjectOf | null | undefined; isEmpty(value?: any): boolean; } interface LoDashImplicitWrapper { @@ -948,7 +956,7 @@ declare module "../index" { * Checks if value is a native function. * @param value The value to check. * - * @retrun Returns true if value is a native function, else false. + * @return Returns true if value is a native function, else false. */ isNative(value: any): value is (...args: any[]) => any; } diff --git a/node_modules/cypress/types/lodash/common/math.d.ts b/node_modules/cypress/types/lodash/common/math.d.ts index 70bfab70..588399f2 100644 --- a/node_modules/cypress/types/lodash/common/math.d.ts +++ b/node_modules/cypress/types/lodash/common/math.d.ts @@ -101,6 +101,7 @@ declare module "../index" { * @param array The array to iterate over. * @returns Returns the maximum value. */ + max(collection: readonly [T, ...T[]]): T; max(collection: List | null | undefined): T | undefined; } interface Collection { @@ -130,7 +131,7 @@ declare module "../index" { * * var objects = [{ 'n': 1 }, { 'n': 2 }]; * - * _.maxBy(objects, function(o) { return o.a; }); + * _.maxBy(objects, function(o) { return o.n; }); * // => { 'n': 2 } * * // using the `_.property` iteratee shorthand @@ -216,6 +217,7 @@ declare module "../index" { * @param array The array to iterate over. * @returns Returns the minimum value. */ + min(collection: readonly [T, ...T[]]): T; min(collection: List | null | undefined): T | undefined; } interface Collection { diff --git a/node_modules/cypress/types/lodash/common/object.d.ts b/node_modules/cypress/types/lodash/common/object.d.ts index 8237e3eb..b4c48f25 100644 --- a/node_modules/cypress/types/lodash/common/object.d.ts +++ b/node_modules/cypress/types/lodash/common/object.d.ts @@ -1,4 +1,5 @@ import _ = require("../index"); +import { uniqueSymbol } from "./common"; declare module "../index" { interface LoDashStatic { /** @@ -1019,6 +1020,100 @@ declare module "../index" { */ functionsIn(): CollectionChain; } + + type GetFieldTypeOfArrayLikeByKey = + K extends number ? T[K] + : K extends `${infer N extends number}` ? T[N] + : K extends keyof T ? T[K] : undefined; + + type GetFieldTypeOfStringByKey = + K extends number ? T[K] + : K extends `${infer N extends number}` ? T[N] + : K extends keyof T ? T[K] + : undefined; + + type GetFieldTypeOfNarrowedByKey = + T extends unknown[] ? GetFieldTypeOfArrayLikeByKey + : T extends string ? GetFieldTypeOfStringByKey + : K extends keyof T ? T[K] + : K extends number + ? `${K}` extends keyof T ? T[`${K}`] : undefined + : K extends `${infer N extends number}` + ? N extends keyof T ? T[N] : undefined + : undefined; + + /** Internal. Assumes P is a dot-delimited path. */ + type GetFieldTypeOfNarrowedByDotPath = + P extends `${infer L}.${infer R}` + ? GetFieldType, R, 'DotPath'> + : GetFieldTypeOfNarrowedByKey; + + /** Internal. This is a piece of GetFieldTypeOfNarrowedByLKR logic, + * assuming that Lc isn't to be ignored, and does not end with dot. */ + type GetFieldTypeOfNarrowedByLcKR = + '' extends R + ? GetFieldType, K, 'Key'> + : R extends `.${infer Rc}` + ? GetFieldType, K, 'Key'>, Rc> + : GetFieldType, K, 'Key'>, R> + + /** Internal. Assumes T has been narrowed; L is a dot-delimited path, + * and should be ignored if an empty string; K is a key name; and R is + * a dot-delimetered path, to be ignored if an empty string. Also if + * L has a tail dot, or R has a front dot, these dots should be discarded, + * however when L or R is just a dot, they should be interpreted as empty + * key name (rather than ignored). */ + type GetFieldTypeOfNarrowedByLKR = + '' extends L + ? '' extends R + ? GetFieldTypeOfNarrowedByKey + : R extends `.${infer Rc}` + ? GetFieldType, Rc> + : GetFieldType, R> + : L extends `${infer Lc}.` + ? GetFieldTypeOfNarrowedByLcKR + : GetFieldTypeOfNarrowedByLcKR + + /** Internal. Assumes T has been narrowed. */ + type GetFieldTypeOfNarrowed = + XT extends 'Key' ? GetFieldTypeOfNarrowedByKey + : XT extends 'DotPath' ? GetFieldTypeOfNarrowedByDotPath + : X extends `${infer L}['${infer K}']${infer R}` + ? GetFieldTypeOfNarrowedByLKR + : X extends `${infer L}["${infer K}"]${infer R}` + ? GetFieldTypeOfNarrowedByLKR + : X extends `${infer L}[${infer K}]${infer R}` + ? GetFieldTypeOfNarrowedByLKR + : GetFieldTypeOfNarrowedByDotPath; + + /** Internal. Assumes T has been narrowed to an object type. */ + type GetFieldTypeOfObject = + Extract extends never + ? GetFieldTypeOfNarrowed + : GetFieldTypeOfNarrowed, X, XT> + | GetFieldTypeOfNarrowed, X, XT>; + + /** Internal. Assumes T has been narrowed to a primitive type. */ + type GetFieldTypeOfPrimitive = + Extract extends never + ? T extends never ? never : undefined + : (Exclude extends never ? never : undefined) + | GetFieldTypeOfNarrowed, X, XT>; + + /** + * Deduces the type of value at the path P of type T, + * so that _.get(t: T, p: P): GetFieldType. + * XT specifies the exact meaning of X: + * - 'Path' (default) - X is a path type to be fully parsed; + * - 'DotPath - X is a dot-delimitered path, without square (indexing) brackets; + * - 'Key' - X is a simple key, and needs no parsing. + */ + type GetFieldType = + Extract extends never + ? GetFieldTypeOfPrimitive + : GetFieldTypeOfPrimitive, X, XT> + | GetFieldTypeOfObject, X, XT>; + interface LoDashStatic { /** * Gets the property value at path of object. If the resolved value is undefined the defaultValue is used @@ -1045,11 +1140,11 @@ declare module "../index" { /** * @see _.get */ - get(object: TObject | null | undefined, path: [TKey1, TKey2]): TObject[TKey1][TKey2] | undefined; + get>(object: TObject | null | undefined, path: [TKey1, TKey2]): NonNullable[TKey2] | undefined; /** * @see _.get */ - get(object: TObject | null | undefined, path: [TKey1, TKey2], defaultValue: TDefault): Exclude | TDefault; + get, TDefault>(object: TObject | null | undefined, path: [TKey1, TKey2], defaultValue: TDefault): Exclude[TKey2], undefined> | TDefault; /** * @see _.get */ @@ -1057,11 +1152,11 @@ declare module "../index" { /** * @see _.get */ - get(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3]): TObject[TKey1][TKey2][TKey3] | undefined; + get, TKey3 extends keyof NonNullable[TKey2]>>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3]): NonNullable[TKey2]>[TKey3] | undefined; /** * @see _.get */ - get(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3], defaultValue: TDefault): Exclude | TDefault; + get, TKey3 extends keyof NonNullable[TKey2]>, TDefault>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3], defaultValue: TDefault): Exclude[TKey2]>[TKey3], undefined> | TDefault; /** * @see _.get */ @@ -1069,11 +1164,11 @@ declare module "../index" { /** * @see _.get */ - get(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3, TKey4]): TObject[TKey1][TKey2][TKey3][TKey4] | undefined; + get, TKey3 extends keyof NonNullable[TKey2]>, TKey4 extends keyof NonNullable[TKey2]>[TKey3]>>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3, TKey4]): NonNullable[TKey2]>[TKey3]>[TKey4] | undefined; /** * @see _.get */ - get(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3, TKey4], defaultValue: TDefault): Exclude | TDefault; + get, TKey3 extends keyof NonNullable[TKey2]>, TKey4 extends keyof NonNullable[TKey2]>[TKey3]>, TDefault>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3, TKey4], defaultValue: TDefault): Exclude[TKey2]>[TKey3]>[TKey4], undefined> | TDefault; /** * @see _.get */ @@ -1097,7 +1192,15 @@ declare module "../index" { /** * @see _.get */ - get(object: any, path: PropertyPath, defaultValue?: any): any; + get(data: TObject, path: TPath): string extends TPath ? any : GetFieldType; + /** + * @see _.get + */ + get>(data: TObject, path: TPath, defaultValue: TDefault): Exclude, null | undefined> | TDefault; + /** + * @see _.get + */ + get(object: any, path: PropertyPath, defaultValue?: any): any; } interface String { /** @@ -1142,6 +1245,14 @@ declare module "../index" { * @see _.get */ get(path: [TKey1, TKey2, TKey3, TKey4], defaultValue: TDefault): Exclude | TDefault; + /** + * @see _.get + */ + get(path: TPath): string extends TPath ? any : GetFieldType; + /** + * @see _.get + */ + get>(path: TPath, defaultValue: TDefault): Exclude, null | undefined> | TDefault; /** * @see _.get */ @@ -1226,6 +1337,14 @@ declare module "../index" { * @see _.get */ get(path: [TKey1, TKey2, TKey3, TKey4], defaultValue: TDefault): ExpChain | TDefault>; + /** + * @see _.get + */ + get(path: TPath): string extends TPath ? LoDashExplicitWrapper : ExpChain>; + /** + * @see _.get + */ + get>(path: TPath, defaultValue: TDefault): ExpChain, null | undefined> | TDefault>; /** * @see _.get */ @@ -1266,6 +1385,7 @@ declare module "../index" { * _.has(other, 'a'); * // => false */ + has(object: T, path: K): object is T & { [P in K]: P extends keyof T ? T[P] : Record extends T ? T[keyof T] : unknown} & {[uniqueSymbol]: unknown}; has(object: T, path: PropertyPath): boolean; } interface LoDashImplicitWrapper { @@ -1516,6 +1636,10 @@ declare module "../index" { * @return Returns the new mapped object. */ mapValues(obj: string | null | undefined, callback: StringIterator): NumericDictionary; + /** + * @see _.mapValues + */ + mapValues(array: T[], callback: ArrayIterator): NumericDictionary; /** * @see _.mapValues */ @@ -1571,7 +1695,7 @@ declare module "../index" { /** * @see _.mapValues */ - mapValues(callback: DictionaryIterator): Object>; + mapValues(callback: ArrayIterator): NumericDictionary; /** * @see _.mapValues */ @@ -1639,7 +1763,7 @@ declare module "../index" { /** * @see _.mapValues */ - mapValues(callback: DictionaryIterator): ObjectChain>; + mapValues(callback: ArrayIterator): ObjectChain>; /** * @see _.mapValues */ @@ -1696,7 +1820,7 @@ declare module "../index" { * * @category Object * @param object The destination object. - * @param [sources] The source objects. + * @param [source] The source objects. * @returns Returns `object`. * @example * @@ -1773,7 +1897,7 @@ declare module "../index" { */ merge(...otherArgs: any[]): ObjectChain; } - type MergeWithCustomizer = { bivariantHack(value: any, srcValue: any, key: string, object: any, source: any): any; }["bivariantHack"]; + type MergeWithCustomizer = { bivariantHack(value: any, srcValue: any, key: string, object: any, source: any, stack: any): any; }["bivariantHack"]; // TODO: Probably should just put all these methods on Object and forget about it. // oh, except for Collection I GUESS interface LoDashStatic { @@ -1781,12 +1905,12 @@ declare module "../index" { * This method is like `_.merge` except that it accepts `customizer` which * is invoked to produce the merged values of the destination and source * properties. If `customizer` returns `undefined` merging is handled by the - * method instead. The `customizer` is invoked with seven arguments: + * method instead. The `customizer` is invoked with six arguments: * (objValue, srcValue, key, object, source, stack). * * @category Object * @param object The destination object. - * @param sources The source objects. + * @param source The source objects. * @param customizer The function to customize assigned values. * @returns Returns `object`. * @example @@ -1807,7 +1931,7 @@ declare module "../index" { * 'vegetables': ['carrot'] * }; * - * _.merge(object, other, customizer); + * _.mergeWith(object, other, customizer); * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] } */ mergeWith(object: TObject, source: TSource, customizer: MergeWithCustomizer): TObject & TSource; @@ -2005,7 +2129,7 @@ declare module "../index" { /** * @see _.pick */ - pick(object: T | null | undefined, ...props: PropertyPath[]): PartialObject; + pick(object: T | null | undefined, ...props: Array>): PartialObject; } interface Object { /** @@ -2015,7 +2139,7 @@ declare module "../index" { /** * @see _.pick */ - pick(...props: PropertyPath[]): Object>; + pick(...props: Array>): Object>; } interface ObjectChain { /** @@ -2025,7 +2149,7 @@ declare module "../index" { /** * @see _.pick */ - pick(...props: PropertyPath[]): ObjectChain>; + pick(...props: Array>): ObjectChain>; } interface LoDashStatic { /** @@ -2079,7 +2203,7 @@ declare module "../index" { /** * @see _.pickBy */ - pickBy(predicate?: ValueKeyIteratee): Object>; + pickBy(predicate?: ValueKeyIteratee): Object ? Dictionary : T extends NumericDictionary ? NumericDictionary : PartialObject>; } interface CollectionChain { /** @@ -2099,7 +2223,7 @@ declare module "../index" { /** * @see _.pickBy */ - pickBy(predicate?: ValueKeyIteratee): ObjectChain>; + pickBy(predicate?: ValueKeyIteratee): ObjectChain ? Dictionary : T extends NumericDictionary ? NumericDictionary : PartialObject>; } interface LoDashStatic { /** @@ -2263,7 +2387,7 @@ declare module "../index" { * @param accumulator The custom accumulator value. * @return Returns the accumulated value. */ - transform(object: ReadonlyArray, iteratee: MemoVoidArrayIterator, accumulator?: TResult): TResult; + transform(object: readonly T[], iteratee: MemoVoidArrayIterator, accumulator?: TResult): TResult; /** * @see _.transform */ diff --git a/node_modules/cypress/types/lodash/common/seq.d.ts b/node_modules/cypress/types/lodash/common/seq.d.ts index 8a0ef1ce..f2511d96 100644 --- a/node_modules/cypress/types/lodash/common/seq.d.ts +++ b/node_modules/cypress/types/lodash/common/seq.d.ts @@ -16,7 +16,7 @@ declare module "../index" { /** * @see _.chain */ - chain(value: string): StringChain; + chain(value: T): StringChain; /** * @see _.chain */ @@ -48,7 +48,7 @@ declare module "../index" { /** * @see _.chain */ - chain(): StringChain; + chain(): StringChain; } interface Object { /** diff --git a/node_modules/cypress/types/lodash/common/string.d.ts b/node_modules/cypress/types/lodash/common/string.d.ts index 674b9abc..85eb5208 100644 --- a/node_modules/cypress/types/lodash/common/string.d.ts +++ b/node_modules/cypress/types/lodash/common/string.d.ts @@ -29,19 +29,19 @@ declare module "../index" { * @param string The string to capitalize. * @return Returns the capitalized string. */ - capitalize(string?: string): string; + capitalize(string?: T): string extends T ? string : Capitalize>; } interface LoDashImplicitWrapper { /** * @see _.capitalize */ - capitalize(): string; + capitalize(): string extends TValue ? string : Capitalize>; } interface LoDashExplicitWrapper { /** * @see _.capitalize */ - capitalize(): StringChain; + capitalize(): StringChain>>; } interface LoDashStatic { @@ -97,7 +97,7 @@ declare module "../index" { * * Note: No other characters are escaped. To escape additional characters use a third-party library like he. * - * hough the ">" character is escaped for symmetry, characters like ">" and "/" don’t need escaping in HTML + * Though the ">" character is escaped for symmetry, characters like ">" and "/" don’t need escaping in HTML * and have no special meaning unless they're part of a tag or unquoted attribute value. See Mathias Bynens’s * article (under "semi-related fun fact") for more details. * @@ -198,19 +198,19 @@ declare module "../index" { * @param string The string to convert. * @return Returns the converted string. */ - lowerFirst(string?: string): string; + lowerFirst(string?: T): Uncapitalize; } interface LoDashImplicitWrapper { /** * @see _.lowerFirst */ - lowerFirst(): string; + lowerFirst(): TValue extends string ? Uncapitalize : string; } interface LoDashExplicitWrapper { /** * @see _.lowerFirst */ - lowerFirst(): StringChain; + lowerFirst(): StringChain : string>; } interface LoDashStatic { @@ -475,7 +475,7 @@ declare module "../index" { /** * @see _.sourceURL */ - sourceURL?: string; + sourceURL?: string | undefined; } interface TemplateExecutor { (data?: object): string; @@ -533,19 +533,19 @@ declare module "../index" { * @param string The string to convert. * @return Returns the lower cased string. */ - toLower(string?: string): string; + toLower(string?: T): Lowercase; } interface LoDashImplicitWrapper { /** * @see _.toLower */ - toLower(): string; + toLower(): TValue extends string ? Lowercase : string; } interface LoDashExplicitWrapper { /** * @see _.toLower */ - toLower(): StringChain; + toLower(): StringChain : string>; } interface LoDashStatic { @@ -555,19 +555,19 @@ declare module "../index" { * @param string The string to convert. * @return Returns the upper cased string. */ - toUpper(string?: string): string; + toUpper(string?: T): Uppercase; } interface LoDashImplicitWrapper { /** * @see _.toUpper */ - toUpper(): string; + toUpper(): TValue extends string ? Uppercase : string; } interface LoDashExplicitWrapper { /** * @see _.toUpper */ - toUpper(): StringChain; + toUpper(): StringChain : string>; } interface LoDashStatic { @@ -655,15 +655,15 @@ declare module "../index" { /** * @see _.length */ - length?: number; + length?: number | undefined; /** * @see _.omission */ - omission?: string; + omission?: string | undefined; /** * @see _.separator */ - separator?: string | RegExp; + separator?: string | RegExp | undefined; } interface LoDashStatic { /** @@ -744,19 +744,19 @@ declare module "../index" { * @param string The string to convert. * @return Returns the converted string. */ - upperFirst(string?: string): string; + upperFirst(string?: T): Capitalize; } interface LoDashImplicitWrapper { /** * @see _.upperFirst */ - upperFirst(): string; + upperFirst(): TValue extends string ? Capitalize : string; } interface LoDashExplicitWrapper { /** * @see _.upperFirst */ - upperFirst(): StringChain; + upperFirst(): StringChain : string>; } interface LoDashStatic { @@ -777,7 +777,7 @@ declare module "../index" { /** * @see _.words */ - words(pattern?: string | RegExp): string[]; + words(pattern?: string | RegExp): Collection; } interface LoDashExplicitWrapper { /** diff --git a/node_modules/cypress/types/lodash/common/util.d.ts b/node_modules/cypress/types/lodash/common/util.d.ts index 6545f4be..caf2467f 100644 --- a/node_modules/cypress/types/lodash/common/util.d.ts +++ b/node_modules/cypress/types/lodash/common/util.d.ts @@ -79,7 +79,8 @@ declare module "../index" { * func({ 'a': '1', 'b': '2' }); * // => 'no match' */ - cond(pairs: Array>): (Target: T) => R; + cond(pairs: Array>): () => R; + cond(pairs: Array>): (Target: T) => R; } type ConformsPredicateObject = { @@ -424,7 +425,7 @@ declare module "../index" { /** * @see _.iteratee */ - iteratee(func: string | object): (...args: any[]) => any; + iteratee(func: symbol | number | string | object): (...args: any[]) => any; } interface Function any> { /** @@ -602,7 +603,7 @@ declare module "../index" { /** * @see _.chain */ - chain?: boolean; + chain?: boolean | undefined; } interface LoDashStatic { /** diff --git a/node_modules/cypress/types/lodash/fp.d.ts b/node_modules/cypress/types/lodash/fp.d.ts index b38eba84..037fc204 100644 --- a/node_modules/cypress/types/lodash/fp.d.ts +++ b/node_modules/cypress/types/lodash/fp.d.ts @@ -66,14 +66,14 @@ declare namespace _ { (object: [TObject, TSource1, TSource2, TSource3]): TObject & TSource1 & TSource2 & TSource3; (object: [TObject, TSource1, TSource2, TSource3, TSource4]): TObject & TSource1 & TSource2 & TSource3 & TSource4; (object: [TObject]): TObject; - (object: ReadonlyArray): any; + (object: readonly any[]): any; } interface LodashAssignAllWith { (customizer: lodash.AssignCustomizer): LodashAssignAllWith1x1; - (customizer: lodash.__, args: ReadonlyArray): LodashAssignAllWith1x2; - (customizer: lodash.AssignCustomizer, args: ReadonlyArray): any; + (customizer: lodash.__, args: readonly any[]): LodashAssignAllWith1x2; + (customizer: lodash.AssignCustomizer, args: readonly any[]): any; } - type LodashAssignAllWith1x1 = (args: ReadonlyArray) => any; + type LodashAssignAllWith1x1 = (args: readonly any[]) => any; type LodashAssignAllWith1x2 = (customizer: lodash.AssignCustomizer) => any; interface LodashAssignIn { (object: TObject): LodashAssignIn1x1; @@ -88,14 +88,14 @@ declare namespace _ { (object: [TObject, TSource1, TSource2, TSource3]): TObject & TSource1 & TSource2 & TSource3; (object: [TObject, TSource1, TSource2, TSource3, TSource4]): TObject & TSource1 & TSource2 & TSource3 & TSource4; (object: [TObject]): TObject; - (object: ReadonlyArray): TResult; + (object: readonly any[]): TResult; } interface LodashAssignInAllWith { (customizer: lodash.AssignCustomizer): LodashAssignInAllWith1x1; - (customizer: lodash.__, args: ReadonlyArray): LodashAssignInAllWith1x2; - (customizer: lodash.AssignCustomizer, args: ReadonlyArray): any; + (customizer: lodash.__, args: readonly any[]): LodashAssignInAllWith1x2; + (customizer: lodash.AssignCustomizer, args: readonly any[]): any; } - type LodashAssignInAllWith1x1 = (args: ReadonlyArray) => any; + type LodashAssignInAllWith1x1 = (args: readonly any[]) => any; type LodashAssignInAllWith1x2 = (customizer: lodash.AssignCustomizer) => any; interface LodashAssignInWith { (customizer: lodash.AssignCustomizer): LodashAssignInWith1x1; @@ -240,7 +240,7 @@ declare namespace _ { type LodashBindKey1x1 = (key: string) => (...args: any[]) => any; type LodashBindKey1x2 = (object: object) => (...args: any[]) => any; type LodashCamelCase = (string: string) => string; - type LodashCapitalize = (string: string) => string; + type LodashCapitalize = (string: T) => string extends T ? string : Capitalize>; type LodashCastArray = (value: lodash.Many) => T[]; type LodashCeil = (n: number) => number; interface LodashChunk { @@ -299,7 +299,7 @@ declare namespace _ { (customizer: lodash.CloneWithCustomizer): TResult | T; } type LodashCloneWith2x1 = (value: T) => TResult | T; - type LodashCompact = (array: lodash.List | null | undefined) => Array>; + type LodashCompact = (array: lodash.List | null | undefined) => Array>; type LodashNegate = (predicate: (...args: T) => any) => (...args: T) => boolean; interface LodashFlowRight { (f7: (a: R6) => R7, f6: (a: R5) => R6, f5: (a: R4) => R5, f4: (a: R3) => R4, f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): (...args: A) => R7; @@ -317,7 +317,10 @@ declare namespace _ { } type LodashConcat1x1 = (values: lodash.Many) => T[]; type LodashConcat1x2 = (array: lodash.Many) => T[]; - type LodashCond = (pairs: Array>) => (Target: T) => R; + interface LodashCond { + (pairs: Array>): () => R; + (pairs: Array>): (Target: T) => R; + } interface LodashConformsTo { (source: lodash.ConformsPredicateObject): LodashConformsTo1x1; (source: lodash.__, object: T): LodashConformsTo1x2; @@ -442,7 +445,7 @@ declare namespace _ { (object: [TObject, TSource1, TSource2, TSource3]): TSource3 & TSource2 & TSource1 & TObject; (object: [TObject, TSource1, TSource2, TSource3, TSource4]): TSource4 & TSource3 & TSource2 & TSource1 & TObject; (object: [TObject]): TObject; - (object: ReadonlyArray): any; + (object: readonly any[]): any; } interface LodashDefaultsDeep { (sources: any): LodashDefaultsDeep1x1; @@ -451,7 +454,7 @@ declare namespace _ { } type LodashDefaultsDeep1x1 = (object: any) => any; type LodashDefaultsDeep1x2 = (sources: any) => any; - type LodashDefaultsDeepAll = (object: ReadonlyArray) => any; + type LodashDefaultsDeepAll = (object: readonly any[]) => any; interface LodashDefaultTo { (defaultValue: T): LodashDefaultTo1x1; (defaultValue: lodash.__, value: T | null | undefined): LodashDefaultTo1x2; @@ -578,8 +581,8 @@ declare namespace _ { type LodashDropWhile1x2 = (predicate: lodash.ValueIteratee) => T[]; interface LodashForEach { (iteratee: (value: T) => any): LodashForEach1x1; - (iteratee: lodash.__, collection: ReadonlyArray): LodashForEach1x2; - (iteratee: (value: T) => any, collection: ReadonlyArray): T[]; + (iteratee: lodash.__, collection: readonly T[]): LodashForEach1x2; + (iteratee: (value: T) => any, collection: readonly T[]): T[]; (iteratee: lodash.__, collection: lodash.List): LodashForEach2x2; (iteratee: (value: T) => any, collection: lodash.List): lodash.List; (iteratee: lodash.__, collection: T): LodashForEach3x2; @@ -592,7 +595,7 @@ declare namespace _ { (iteratee: (value: T[keyof T]) => any, collection: T | null | undefined): T | null | undefined; } interface LodashForEach1x1 { - (collection: ReadonlyArray): T[]; + (collection: readonly T[]): T[]; (collection: lodash.List): lodash.List; (collection: T1): T1; (collection: TArray & (T[] | null | undefined)): TArray; @@ -607,8 +610,8 @@ declare namespace _ { type LodashForEach6x2 = (iteratee: (value: T[keyof T]) => any) => T | null | undefined; interface LodashForEachRight { (iteratee: (value: T) => any): LodashForEachRight1x1; - (iteratee: lodash.__, collection: ReadonlyArray): LodashForEachRight1x2; - (iteratee: (value: T) => any, collection: ReadonlyArray): T[]; + (iteratee: lodash.__, collection: readonly T[]): LodashForEachRight1x2; + (iteratee: (value: T) => any, collection: readonly T[]): T[]; (iteratee: lodash.__, collection: lodash.List): LodashForEachRight2x2; (iteratee: (value: T) => any, collection: lodash.List): lodash.List; (iteratee: lodash.__, collection: T): LodashForEachRight3x2; @@ -621,7 +624,7 @@ declare namespace _ { (iteratee: (value: T[keyof T]) => any, collection: T | null | undefined): T | null | undefined; } interface LodashForEachRight1x1 { - (collection: ReadonlyArray): T[]; + (collection: readonly T[]): T[]; (collection: lodash.List): lodash.List; (collection: T1): T1; (collection: TArray & (T[] | null | undefined)): TArray; @@ -678,14 +681,14 @@ declare namespace _ { (object: [TObject, TSource1, TSource2, TSource3]): TObject & TSource1 & TSource2 & TSource3; (object: [TObject, TSource1, TSource2, TSource3, TSource4]): TObject & TSource1 & TSource2 & TSource3 & TSource4; (object: [TObject]): TObject; - (object: ReadonlyArray): TResult; + (object: readonly any[]): TResult; } interface LodashExtendAllWith { (customizer: lodash.AssignCustomizer): LodashExtendAllWith1x1; - (customizer: lodash.__, args: ReadonlyArray): LodashExtendAllWith1x2; - (customizer: lodash.AssignCustomizer, args: ReadonlyArray): any; + (customizer: lodash.__, args: readonly any[]): LodashExtendAllWith1x2; + (customizer: lodash.AssignCustomizer, args: readonly any[]): any; } - type LodashExtendAllWith1x1 = (args: ReadonlyArray) => any; + type LodashExtendAllWith1x1 = (args: readonly any[]) => any; type LodashExtendAllWith1x2 = (customizer: lodash.AssignCustomizer) => any; interface LodashExtendWith { (customizer: lodash.AssignCustomizer): LodashExtendWith1x1; @@ -1166,7 +1169,10 @@ declare namespace _ { } type LodashFindLastKey1x1 = (object: object | null | undefined) => string | undefined; type LodashFindLastKey1x2 = (predicate: lodash.ValueIteratee) => string | undefined; - type LodashHead = (array: lodash.List | null | undefined) => T | undefined; + interface LodashHead { + (array: readonly [T, ...unknown[]]): T; + (array: lodash.List | null | undefined): T | undefined; + } interface LodashFlatMap { (iteratee: (value: T) => lodash.Many): LodashFlatMap1x1; (iteratee: lodash.__, collection: lodash.List | null | undefined): LodashFlatMap1x2; @@ -1773,13 +1779,13 @@ declare namespace _ { type LodashIntersectionBy1x5 = (array: lodash.List | null) => T1[]; type LodashIntersectionBy1x6 = (iteratee: lodash.ValueIteratee) => T1[]; interface LodashIntersectionWith { - (comparator: lodash.Comparator2): LodashIntersectionWith1x1; + (comparator: lodash.Comparator2): LodashIntersectionWith1x1; (comparator: lodash.__, array: lodash.List | null | undefined): LodashIntersectionWith1x2; - (comparator: lodash.Comparator2, array: lodash.List | null | undefined): LodashIntersectionWith1x3; + (comparator: lodash.Comparator2, array: lodash.List | null | undefined): LodashIntersectionWith1x3; (comparator: lodash.__, array: lodash.__, values: lodash.List): LodashIntersectionWith1x4; - (comparator: lodash.Comparator2, array: lodash.__, values: lodash.List): LodashIntersectionWith1x5; + (comparator: lodash.Comparator2, array: lodash.__, values: lodash.List): LodashIntersectionWith1x5; (comparator: lodash.__, array: lodash.List | null | undefined, values: lodash.List): LodashIntersectionWith1x6; - (comparator: lodash.Comparator2, array: lodash.List | null | undefined, values: lodash.List): T1[]; + (comparator: lodash.Comparator2, array: lodash.List | null | undefined, values: lodash.List): T1[]; } interface LodashIntersectionWith1x1 { (array: lodash.List | null | undefined): LodashIntersectionWith1x3; @@ -1787,18 +1793,18 @@ declare namespace _ { (array: lodash.List | null | undefined, values: lodash.List): T1[]; } interface LodashIntersectionWith1x2 { - (comparator: lodash.Comparator2): LodashIntersectionWith1x3; + (comparator: lodash.Comparator2): LodashIntersectionWith1x3; (comparator: lodash.__, values: lodash.List): LodashIntersectionWith1x6; - (comparator: lodash.Comparator2, values: lodash.List): T1[]; + (comparator: lodash.Comparator2, values: lodash.List): T1[]; } type LodashIntersectionWith1x3 = (values: lodash.List) => T1[]; interface LodashIntersectionWith1x4 { - (comparator: lodash.Comparator2): LodashIntersectionWith1x5; + (comparator: lodash.Comparator2): LodashIntersectionWith1x5; (comparator: lodash.__, array: lodash.List | null | undefined): LodashIntersectionWith1x6; - (comparator: lodash.Comparator2, array: lodash.List | null | undefined): T1[]; + (comparator: lodash.Comparator2, array: lodash.List | null | undefined): T1[]; } type LodashIntersectionWith1x5 = (array: lodash.List | null | undefined) => T1[]; - type LodashIntersectionWith1x6 = (comparator: lodash.Comparator2) => T1[]; + type LodashIntersectionWith1x6 = (comparator: lodash.Comparator2) => T1[]; type LodashInvert = (object: object) => lodash.Dictionary; interface LodashInvertBy { (interatee: lodash.ValueIteratee): LodashInvertBy1x1; @@ -1819,17 +1825,17 @@ declare namespace _ { type LodashInvoke1x2 = (path: lodash.PropertyPath) => any; interface LodashInvokeArgs { (path: lodash.PropertyPath): LodashInvokeArgs1x1; - (path: lodash.__, args: ReadonlyArray): LodashInvokeArgs1x2; - (path: lodash.PropertyPath, args: ReadonlyArray): LodashInvokeArgs1x3; + (path: lodash.__, args: readonly any[]): LodashInvokeArgs1x2; + (path: lodash.PropertyPath, args: readonly any[]): LodashInvokeArgs1x3; (path: lodash.__, args: lodash.__, object: any): LodashInvokeArgs1x4; (path: lodash.PropertyPath, args: lodash.__, object: any): LodashInvokeArgs1x5; - (path: lodash.__, args: ReadonlyArray, object: any): LodashInvokeArgs1x6; - (path: lodash.PropertyPath, args: ReadonlyArray, object: any): any; + (path: lodash.__, args: readonly any[], object: any): LodashInvokeArgs1x6; + (path: lodash.PropertyPath, args: readonly any[], object: any): any; } interface LodashInvokeArgs1x1 { - (args: ReadonlyArray): LodashInvokeArgs1x3; + (args: readonly any[]): LodashInvokeArgs1x3; (args: lodash.__, object: any): LodashInvokeArgs1x5; - (args: ReadonlyArray, object: any): any; + (args: readonly any[], object: any): any; } interface LodashInvokeArgs1x2 { (path: lodash.PropertyPath): LodashInvokeArgs1x3; @@ -1839,28 +1845,28 @@ declare namespace _ { type LodashInvokeArgs1x3 = (object: any) => any; interface LodashInvokeArgs1x4 { (path: lodash.PropertyPath): LodashInvokeArgs1x5; - (path: lodash.__, args: ReadonlyArray): LodashInvokeArgs1x6; - (path: lodash.PropertyPath, args: ReadonlyArray): any; + (path: lodash.__, args: readonly any[]): LodashInvokeArgs1x6; + (path: lodash.PropertyPath, args: readonly any[]): any; } - type LodashInvokeArgs1x5 = (args: ReadonlyArray) => any; + type LodashInvokeArgs1x5 = (args: readonly any[]) => any; type LodashInvokeArgs1x6 = (path: lodash.PropertyPath) => any; interface LodashInvokeArgsMap { (methodName: string): LodashInvokeArgsMap1x1; - (methodNameOrMethod: lodash.__, args: ReadonlyArray): LodashInvokeArgsMap1x2; - (methodName: string, args: ReadonlyArray): LodashInvokeArgsMap1x3; + (methodNameOrMethod: lodash.__, args: readonly any[]): LodashInvokeArgsMap1x2; + (methodName: string, args: readonly any[]): LodashInvokeArgsMap1x3; (methodNameOrMethod: lodash.__, args: lodash.__, collection: object | null | undefined): LodashInvokeArgsMap1x4; (methodName: string, args: lodash.__, collection: object | null | undefined): LodashInvokeArgsMap1x5; - (methodNameOrMethod: lodash.__, args: ReadonlyArray, collection: object | null | undefined): LodashInvokeArgsMap1x6; - (methodName: string, args: ReadonlyArray, collection: object | null | undefined): any[]; + (methodNameOrMethod: lodash.__, args: readonly any[], collection: object | null | undefined): LodashInvokeArgsMap1x6; + (methodName: string, args: readonly any[], collection: object | null | undefined): any[]; (method: (...args: any[]) => TResult): LodashInvokeArgsMap2x1; - (method: (...args: any[]) => TResult, args: ReadonlyArray): LodashInvokeArgsMap2x3; + (method: (...args: any[]) => TResult, args: readonly any[]): LodashInvokeArgsMap2x3; (method: (...args: any[]) => TResult, args: lodash.__, collection: object | null | undefined): LodashInvokeArgsMap2x5; - (method: (...args: any[]) => TResult, args: ReadonlyArray, collection: object | null | undefined): TResult[]; + (method: (...args: any[]) => TResult, args: readonly any[], collection: object | null | undefined): TResult[]; } interface LodashInvokeArgsMap1x1 { - (args: ReadonlyArray): LodashInvokeArgsMap1x3; + (args: readonly any[]): LodashInvokeArgsMap1x3; (args: lodash.__, collection: object | null | undefined): LodashInvokeArgsMap1x5; - (args: ReadonlyArray, collection: object | null | undefined): any[]; + (args: readonly any[], collection: object | null | undefined): any[]; } interface LodashInvokeArgsMap1x2 { (methodName: string): LodashInvokeArgsMap1x3; @@ -1872,23 +1878,23 @@ declare namespace _ { type LodashInvokeArgsMap1x3 = (collection: object | null | undefined) => any[]; interface LodashInvokeArgsMap1x4 { (methodName: string): LodashInvokeArgsMap1x5; - (methodNameOrMethod: lodash.__, args: ReadonlyArray): LodashInvokeArgsMap1x6; - (methodName: string, args: ReadonlyArray): any[]; + (methodNameOrMethod: lodash.__, args: readonly any[]): LodashInvokeArgsMap1x6; + (methodName: string, args: readonly any[]): any[]; (method: (...args: any[]) => TResult): LodashInvokeArgsMap2x5; - (method: (...args: any[]) => TResult, args: ReadonlyArray): TResult[]; + (method: (...args: any[]) => TResult, args: readonly any[]): TResult[]; } - type LodashInvokeArgsMap1x5 = (args: ReadonlyArray) => any[]; + type LodashInvokeArgsMap1x5 = (args: readonly any[]) => any[]; interface LodashInvokeArgsMap1x6 { (methodName: string): any[]; (method: (...args: any[]) => TResult): TResult[]; } interface LodashInvokeArgsMap2x1 { - (args: ReadonlyArray): LodashInvokeArgsMap2x3; + (args: readonly any[]): LodashInvokeArgsMap2x3; (args: lodash.__, collection: object | null | undefined): LodashInvokeArgsMap2x5; - (args: ReadonlyArray, collection: object | null | undefined): TResult[]; + (args: readonly any[], collection: object | null | undefined): TResult[]; } type LodashInvokeArgsMap2x3 = (collection: object | null | undefined) => TResult[]; - type LodashInvokeArgsMap2x5 = (args: ReadonlyArray) => TResult[]; + type LodashInvokeArgsMap2x5 = (args: readonly any[]) => TResult[]; interface LodashInvokeMap { (methodName: string): LodashInvokeMap1x1; (methodNameOrMethod: lodash.__, collection: object | null | undefined): LodashInvokeMap1x2; @@ -1919,7 +1925,15 @@ declare namespace _ { type LodashIsBuffer = (value: any) => boolean; type LodashIsDate = (value: any) => value is Date; type LodashIsElement = (value: any) => boolean; - type LodashIsEmpty = (value: any) => boolean; + interface LodashIsEmpty { + (value: T): boolean; + (value: string | null | undefined): value is '' | null | undefined; + (value: any[] | null | undefined): boolean; + (value: readonly any[] | null | undefined): value is Readonly<[]> | null | undefined; + (value: Map | Set | lodash.List | null | undefined): boolean; + (value: T | null | undefined): value is lodash.EmptyObjectOf | null | undefined; + (value?: any): boolean; + } interface LodashIsEqualWith { (customizer: lodash.IsEqualCustomizer): LodashIsEqualWith1x1; (customizer: lodash.__, value: any): LodashIsEqualWith1x2; @@ -2019,7 +2033,10 @@ declare namespace _ { type LodashKebabCase = (string: string) => string; type LodashKeys = (object: any) => string[]; type LodashKeysIn = (object: any) => string[]; - type LodashLast = (array: lodash.List | null | undefined) => T | undefined; + interface LodashLast { + (array: readonly [...unknown[], T]): T; + (array: lodash.List | null | undefined): T | undefined; + } interface LodashLastIndexOf { (value: T): LodashLastIndexOf1x1; (value: lodash.__, array: lodash.List | null | undefined): LodashLastIndexOf1x2; @@ -2055,7 +2072,7 @@ declare namespace _ { type LodashLastIndexOfFrom1x5 = (fromIndex: true|number) => number; type LodashLastIndexOfFrom1x6 = (value: T) => number; type LodashLowerCase = (string: string) => string; - type LodashLowerFirst = (string: string) => string; + type LodashLowerFirst = (string: T) => Uncapitalize; interface LodashLt { (value: any): LodashLt1x1; (value: lodash.__, other: any): LodashLt1x2; @@ -2156,7 +2173,10 @@ declare namespace _ { } type LodashMatchesProperty1x1 = (srcValue: T) => (value: any) => boolean; type LodashMatchesProperty1x2 = (path: lodash.PropertyPath) => (value: any) => boolean; - type LodashMax = (collection: lodash.List | null | undefined) => T | undefined; + interface LodashMax { + (collection: readonly [T, ...T[]]): T; + (collection: lodash.List | null | undefined): T | undefined; + } interface LodashMaxBy { (iteratee: lodash.ValueIteratee): LodashMaxBy1x1; (iteratee: lodash.__, collection: lodash.List | null | undefined): LodashMaxBy1x2; @@ -2185,14 +2205,14 @@ declare namespace _ { (object: [TObject, TSource1, TSource2]): TObject & TSource1 & TSource2; (object: [TObject, TSource1, TSource2, TSource3]): TObject & TSource1 & TSource2 & TSource3; (object: [TObject, TSource1, TSource2, TSource3, TSource4]): TObject & TSource1 & TSource2 & TSource3 & TSource4; - (object: ReadonlyArray): any; + (object: readonly any[]): any; } interface LodashMergeAllWith { (customizer: lodash.MergeWithCustomizer): LodashMergeAllWith1x1; - (customizer: lodash.__, args: ReadonlyArray): LodashMergeAllWith1x2; - (customizer: lodash.MergeWithCustomizer, args: ReadonlyArray): any; + (customizer: lodash.__, args: readonly any[]): LodashMergeAllWith1x2; + (customizer: lodash.MergeWithCustomizer, args: readonly any[]): any; } - type LodashMergeAllWith1x1 = (args: ReadonlyArray) => any; + type LodashMergeAllWith1x1 = (args: readonly any[]) => any; type LodashMergeAllWith1x2 = (customizer: lodash.MergeWithCustomizer) => any; interface LodashMergeWith { (customizer: lodash.MergeWithCustomizer): LodashMergeWith1x1; @@ -2223,7 +2243,10 @@ declare namespace _ { type LodashMergeWith1x6 = (customizer: lodash.MergeWithCustomizer) => TObject & TSource; type LodashMethod = (path: lodash.PropertyPath) => (object: any) => any; type LodashMethodOf = (object: object) => (path: lodash.PropertyPath) => any; - type LodashMin = (collection: lodash.List | null | undefined) => T | undefined; + interface LodashMin { + (collection: readonly [T, ...T[]]): T; + (collection: lodash.List | null | undefined): T | undefined; + } interface LodashMinBy { (iteratee: lodash.ValueIteratee): LodashMinBy1x1; (iteratee: lodash.__, collection: lodash.List | null | undefined): LodashMinBy1x2; @@ -2619,8 +2642,8 @@ declare namespace _ { (func: lodash.__, arg1: [T1, T2, T3, T4]): LodashPartialRight26x2; (func: lodash.Function4, arg1: [T1, T2, T3, T4]): lodash.Function0; (func: (...args: any[]) => any): LodashPartialRight27x1; - (func: lodash.__, args: ReadonlyArray): LodashPartialRight27x2; - (func: (...args: any[]) => any, args: ReadonlyArray): (...args: any[]) => any; + (func: lodash.__, args: readonly any[]): LodashPartialRight27x2; + (func: (...args: any[]) => any, args: readonly any[]): (...args: any[]) => any; placeholder: lodash.__; } type LodashPartialRight1x1 = (arg1: [T1]) => lodash.Function0; @@ -2681,7 +2704,7 @@ declare namespace _ { type LodashPartialRight24x2 = (func: lodash.Function4) => lodash.Function1; type LodashPartialRight25x2 = (func: lodash.Function4) => lodash.Function1; type LodashPartialRight26x2 = (func: lodash.Function4) => lodash.Function0; - type LodashPartialRight27x1 = (args: ReadonlyArray) => (...args: any[]) => any; + type LodashPartialRight27x1 = (args: readonly any[]) => (...args: any[]) => any; type LodashPartialRight27x2 = (func: (...args: any[]) => any) => (...args: any[]) => any; interface LodashPartition { (callback: lodash.ValueIteratorTypeGuard): LodashPartition1x1; @@ -3293,26 +3316,26 @@ declare namespace _ { type LodashPropOr7x6 = (defaultValue: any) => any; interface LodashPull { (values: T): LodashPull1x1; - (values: lodash.__, array: ReadonlyArray): LodashPull1x2; - (values: T, array: ReadonlyArray): T[]; + (values: lodash.__, array: readonly T[]): LodashPull1x2; + (values: T, array: readonly T[]): T[]; (values: lodash.__, array: lodash.List): LodashPull2x2; (values: T, array: lodash.List): lodash.List; } interface LodashPull1x1 { - (array: ReadonlyArray): T[]; + (array: readonly T[]): T[]; (array: lodash.List): lodash.List; } type LodashPull1x2 = (values: T) => T[]; type LodashPull2x2 = (values: T) => lodash.List; interface LodashPullAll { (values: lodash.List): LodashPullAll1x1; - (values: lodash.__, array: ReadonlyArray): LodashPullAll1x2; - (values: lodash.List, array: ReadonlyArray): T[]; + (values: lodash.__, array: readonly T[]): LodashPullAll1x2; + (values: lodash.List, array: readonly T[]): T[]; (values: lodash.__, array: lodash.List): LodashPullAll2x2; (values: lodash.List, array: lodash.List): lodash.List; } interface LodashPullAll1x1 { - (array: ReadonlyArray): T[]; + (array: readonly T[]): T[]; (array: lodash.List): lodash.List; } type LodashPullAll1x2 = (values: lodash.List) => T[]; @@ -3321,10 +3344,10 @@ declare namespace _ { (iteratee: lodash.ValueIteratee): LodashPullAllBy1x1; (iteratee: lodash.__, values: lodash.List): LodashPullAllBy1x2; (iteratee: lodash.ValueIteratee, values: lodash.List): LodashPullAllBy1x3; - (iteratee: lodash.__, values: lodash.__, array: ReadonlyArray): LodashPullAllBy1x4; - (iteratee: lodash.ValueIteratee, values: lodash.__, array: ReadonlyArray): LodashPullAllBy1x5; - (iteratee: lodash.__, values: lodash.List, array: ReadonlyArray): LodashPullAllBy1x6; - (iteratee: lodash.ValueIteratee, values: lodash.List, array: ReadonlyArray): T[]; + (iteratee: lodash.__, values: lodash.__, array: readonly T[]): LodashPullAllBy1x4; + (iteratee: lodash.ValueIteratee, values: lodash.__, array: readonly T[]): LodashPullAllBy1x5; + (iteratee: lodash.__, values: lodash.List, array: readonly T[]): LodashPullAllBy1x6; + (iteratee: lodash.ValueIteratee, values: lodash.List, array: readonly T[]): T[]; (iteratee: lodash.__, values: lodash.__, array: lodash.List): LodashPullAllBy2x4; (iteratee: lodash.ValueIteratee, values: lodash.__, array: lodash.List): LodashPullAllBy2x5; (iteratee: lodash.__, values: lodash.List, array: lodash.List): LodashPullAllBy2x6; @@ -3332,10 +3355,10 @@ declare namespace _ { (iteratee: lodash.ValueIteratee): LodashPullAllBy3x1; (iteratee: lodash.__, values: lodash.List): LodashPullAllBy3x2; (iteratee: lodash.ValueIteratee, values: lodash.List): LodashPullAllBy3x3; - (iteratee: lodash.__, values: lodash.__, array: ReadonlyArray): LodashPullAllBy3x4; - (iteratee: lodash.ValueIteratee, values: lodash.__, array: ReadonlyArray): LodashPullAllBy3x5; - (iteratee: lodash.__, values: lodash.List, array: ReadonlyArray): LodashPullAllBy3x6; - (iteratee: lodash.ValueIteratee, values: lodash.List, array: ReadonlyArray): T1[]; + (iteratee: lodash.__, values: lodash.__, array: readonly T1[]): LodashPullAllBy3x4; + (iteratee: lodash.ValueIteratee, values: lodash.__, array: readonly T1[]): LodashPullAllBy3x5; + (iteratee: lodash.__, values: lodash.List, array: readonly T1[]): LodashPullAllBy3x6; + (iteratee: lodash.ValueIteratee, values: lodash.List, array: readonly T1[]): T1[]; (iteratee: lodash.__, values: lodash.__, array: lodash.List): LodashPullAllBy4x4; (iteratee: lodash.ValueIteratee, values: lodash.__, array: lodash.List): LodashPullAllBy4x5; (iteratee: lodash.__, values: lodash.List, array: lodash.List): LodashPullAllBy4x6; @@ -3343,20 +3366,20 @@ declare namespace _ { } interface LodashPullAllBy1x1 { (values: lodash.List): LodashPullAllBy1x3; - (values: lodash.__, array: ReadonlyArray): LodashPullAllBy1x5; - (values: lodash.List, array: ReadonlyArray): T[]; + (values: lodash.__, array: readonly T[]): LodashPullAllBy1x5; + (values: lodash.List, array: readonly T[]): T[]; (values: lodash.__, array: lodash.List): LodashPullAllBy2x5; (values: lodash.List, array: lodash.List): lodash.List; } interface LodashPullAllBy1x2 { (iteratee: lodash.ValueIteratee): LodashPullAllBy1x3; - (iteratee: lodash.__, array: ReadonlyArray): LodashPullAllBy1x6; - (iteratee: lodash.ValueIteratee, array: ReadonlyArray): T[]; + (iteratee: lodash.__, array: readonly T[]): LodashPullAllBy1x6; + (iteratee: lodash.ValueIteratee, array: readonly T[]): T[]; (iteratee: lodash.__, array: lodash.List): LodashPullAllBy2x6; (iteratee: lodash.ValueIteratee, array: lodash.List): lodash.List; } interface LodashPullAllBy1x3 { - (array: ReadonlyArray): T[]; + (array: readonly T[]): T[]; (array: lodash.List): lodash.List; } interface LodashPullAllBy1x4 { @@ -3375,20 +3398,20 @@ declare namespace _ { type LodashPullAllBy2x6 = (iteratee: lodash.ValueIteratee) => lodash.List; interface LodashPullAllBy3x1 { (values: lodash.List): LodashPullAllBy3x3; - (values: lodash.__, array: ReadonlyArray): LodashPullAllBy3x5; - (values: lodash.List, array: ReadonlyArray): T1[]; + (values: lodash.__, array: readonly T1[]): LodashPullAllBy3x5; + (values: lodash.List, array: readonly T1[]): T1[]; (values: lodash.__, array: lodash.List): LodashPullAllBy4x5; (values: lodash.List, array: lodash.List): lodash.List; } interface LodashPullAllBy3x2 { (iteratee: lodash.ValueIteratee): LodashPullAllBy3x3; - (iteratee: lodash.__, array: ReadonlyArray): LodashPullAllBy3x6; - (iteratee: lodash.ValueIteratee, array: ReadonlyArray): T1[]; + (iteratee: lodash.__, array: readonly T1[]): LodashPullAllBy3x6; + (iteratee: lodash.ValueIteratee, array: readonly T1[]): T1[]; (iteratee: lodash.__, array: lodash.List): LodashPullAllBy4x6; (iteratee: lodash.ValueIteratee, array: lodash.List): lodash.List; } interface LodashPullAllBy3x3 { - (array: ReadonlyArray): T1[]; + (array: readonly T1[]): T1[]; (array: lodash.List): lodash.List; } interface LodashPullAllBy3x4 { @@ -3409,10 +3432,10 @@ declare namespace _ { (comparator: lodash.Comparator): LodashPullAllWith1x1; (comparator: lodash.__, values: lodash.List): LodashPullAllWith1x2; (comparator: lodash.Comparator, values: lodash.List): LodashPullAllWith1x3; - (comparator: lodash.__, values: lodash.__, array: ReadonlyArray): LodashPullAllWith1x4; - (comparator: lodash.Comparator, values: lodash.__, array: ReadonlyArray): LodashPullAllWith1x5; - (comparator: lodash.__, values: lodash.List, array: ReadonlyArray): LodashPullAllWith1x6; - (comparator: lodash.Comparator, values: lodash.List, array: ReadonlyArray): T[]; + (comparator: lodash.__, values: lodash.__, array: readonly T[]): LodashPullAllWith1x4; + (comparator: lodash.Comparator, values: lodash.__, array: readonly T[]): LodashPullAllWith1x5; + (comparator: lodash.__, values: lodash.List, array: readonly T[]): LodashPullAllWith1x6; + (comparator: lodash.Comparator, values: lodash.List, array: readonly T[]): T[]; (comparator: lodash.__, values: lodash.__, array: lodash.List): LodashPullAllWith2x4; (comparator: lodash.Comparator, values: lodash.__, array: lodash.List): LodashPullAllWith2x5; (comparator: lodash.__, values: lodash.List, array: lodash.List): LodashPullAllWith2x6; @@ -3420,10 +3443,10 @@ declare namespace _ { (comparator: lodash.Comparator2): LodashPullAllWith3x1; (comparator: lodash.__, values: lodash.List): LodashPullAllWith3x2; (comparator: lodash.Comparator2, values: lodash.List): LodashPullAllWith3x3; - (comparator: lodash.__, values: lodash.__, array: ReadonlyArray): LodashPullAllWith3x4; - (comparator: lodash.Comparator2, values: lodash.__, array: ReadonlyArray): LodashPullAllWith3x5; - (comparator: lodash.__, values: lodash.List, array: ReadonlyArray): LodashPullAllWith3x6; - (comparator: lodash.Comparator2, values: lodash.List, array: ReadonlyArray): T1[]; + (comparator: lodash.__, values: lodash.__, array: readonly T1[]): LodashPullAllWith3x4; + (comparator: lodash.Comparator2, values: lodash.__, array: readonly T1[]): LodashPullAllWith3x5; + (comparator: lodash.__, values: lodash.List, array: readonly T1[]): LodashPullAllWith3x6; + (comparator: lodash.Comparator2, values: lodash.List, array: readonly T1[]): T1[]; (comparator: lodash.__, values: lodash.__, array: lodash.List): LodashPullAllWith4x4; (comparator: lodash.Comparator2, values: lodash.__, array: lodash.List): LodashPullAllWith4x5; (comparator: lodash.__, values: lodash.List, array: lodash.List): LodashPullAllWith4x6; @@ -3431,20 +3454,20 @@ declare namespace _ { } interface LodashPullAllWith1x1 { (values: lodash.List): LodashPullAllWith1x3; - (values: lodash.__, array: ReadonlyArray): LodashPullAllWith1x5; - (values: lodash.List, array: ReadonlyArray): T[]; + (values: lodash.__, array: readonly T[]): LodashPullAllWith1x5; + (values: lodash.List, array: readonly T[]): T[]; (values: lodash.__, array: lodash.List): LodashPullAllWith2x5; (values: lodash.List, array: lodash.List): lodash.List; } interface LodashPullAllWith1x2 { (comparator: lodash.Comparator): LodashPullAllWith1x3; - (comparator: lodash.__, array: ReadonlyArray): LodashPullAllWith1x6; - (comparator: lodash.Comparator, array: ReadonlyArray): T[]; + (comparator: lodash.__, array: readonly T[]): LodashPullAllWith1x6; + (comparator: lodash.Comparator, array: readonly T[]): T[]; (comparator: lodash.__, array: lodash.List): LodashPullAllWith2x6; (comparator: lodash.Comparator, array: lodash.List): lodash.List; } interface LodashPullAllWith1x3 { - (array: ReadonlyArray): T[]; + (array: readonly T[]): T[]; (array: lodash.List): lodash.List; } interface LodashPullAllWith1x4 { @@ -3463,20 +3486,20 @@ declare namespace _ { type LodashPullAllWith2x6 = (comparator: lodash.Comparator) => lodash.List; interface LodashPullAllWith3x1 { (values: lodash.List): LodashPullAllWith3x3; - (values: lodash.__, array: ReadonlyArray): LodashPullAllWith3x5; - (values: lodash.List, array: ReadonlyArray): T1[]; + (values: lodash.__, array: readonly T1[]): LodashPullAllWith3x5; + (values: lodash.List, array: readonly T1[]): T1[]; (values: lodash.__, array: lodash.List): LodashPullAllWith4x5; (values: lodash.List, array: lodash.List): lodash.List; } interface LodashPullAllWith3x2 { (comparator: lodash.Comparator2): LodashPullAllWith3x3; - (comparator: lodash.__, array: ReadonlyArray): LodashPullAllWith3x6; - (comparator: lodash.Comparator2, array: ReadonlyArray): T1[]; + (comparator: lodash.__, array: readonly T1[]): LodashPullAllWith3x6; + (comparator: lodash.Comparator2, array: readonly T1[]): T1[]; (comparator: lodash.__, array: lodash.List): LodashPullAllWith4x6; (comparator: lodash.Comparator2, array: lodash.List): lodash.List; } interface LodashPullAllWith3x3 { - (array: ReadonlyArray): T1[]; + (array: readonly T1[]): T1[]; (array: lodash.List): lodash.List; } interface LodashPullAllWith3x4 { @@ -3495,13 +3518,13 @@ declare namespace _ { type LodashPullAllWith4x6 = (comparator: lodash.Comparator2) => lodash.List; interface LodashPullAt { (indexes: lodash.Many): LodashPullAt1x1; - (indexes: lodash.__, array: ReadonlyArray): LodashPullAt1x2; - (indexes: lodash.Many, array: ReadonlyArray): T[]; + (indexes: lodash.__, array: readonly T[]): LodashPullAt1x2; + (indexes: lodash.Many, array: readonly T[]): T[]; (indexes: lodash.__, array: lodash.List): LodashPullAt2x2; (indexes: lodash.Many, array: lodash.List): lodash.List; } interface LodashPullAt1x1 { - (array: ReadonlyArray): T[]; + (array: readonly T[]): T[]; (array: lodash.List): lodash.List; } type LodashPullAt1x2 = (indexes: lodash.Many) => T[]; @@ -3782,6 +3805,7 @@ declare namespace _ { type LodashRound = (n: number) => number; type LodashRunInContext = (context: object) => lodash.LoDashStatic; interface LodashSample { + (collection: readonly [T, ...T[]]): T; (collection: lodash.Dictionary | lodash.NumericDictionary | null | undefined): T | undefined; (collection: T | null | undefined): T[keyof T] | undefined; } @@ -4161,10 +4185,10 @@ declare namespace _ { interface LodashThrottle { (wait: number): LodashThrottle1x1; any>(wait: lodash.__, func: T): LodashThrottle1x2; - any>(wait: number, func: T): lodash.DebouncedFunc; + any>(wait: number, func: T): lodash.DebouncedFuncLeading; } - type LodashThrottle1x1 = any>(func: T) => lodash.DebouncedFunc; - type LodashThrottle1x2 any> = (wait: number) => lodash.DebouncedFunc; + type LodashThrottle1x1 = any>(func: T) => lodash.DebouncedFuncLeading; + type LodashThrottle1x2 any> = (wait: number) => lodash.DebouncedFuncLeading; interface LodashThru { (interceptor: (value: T) => TResult): LodashThru1x1; (interceptor: lodash.__, value: T): LodashThru1x2; @@ -4187,38 +4211,38 @@ declare namespace _ { type LodashToFinite = (value: any) => number; type LodashToInteger = (value: any) => number; type LodashToLength = (value: any) => number; - type LodashToLower = (string: string) => string; + type LodashToLower = (string: T) => Lowercase; type LodashToNumber = (value: any) => number; type LodashToPath = (value: any) => string[]; type LodashToPlainObject = (value: any) => any; type LodashToSafeInteger = (value: any) => number; type LodashToString = (value: any) => string; - type LodashToUpper = (string: string) => string; + type LodashToUpper = (string: T) => Uppercase; interface LodashTransform { (iteratee: lodash.MemoVoidIteratorCapped): LodashTransform1x1; (iteratee: lodash.__, accumulator: TResult): LodashTransform1x2; (iteratee: lodash.MemoVoidIteratorCapped, accumulator: TResult): LodashTransform1x3; - (iteratee: lodash.__, accumulator: lodash.__, object: ReadonlyArray): LodashTransform1x4; - (iteratee: lodash.MemoVoidIteratorCapped, accumulator: lodash.__, object: ReadonlyArray): LodashTransform1x5; - (iteratee: lodash.__, accumulator: TResult, object: ReadonlyArray): LodashTransform1x6; - (iteratee: lodash.MemoVoidIteratorCapped, accumulator: TResult, object: ReadonlyArray | lodash.Dictionary): TResult; + (iteratee: lodash.__, accumulator: lodash.__, object: readonly T[]): LodashTransform1x4; + (iteratee: lodash.MemoVoidIteratorCapped, accumulator: lodash.__, object: readonly T[]): LodashTransform1x5; + (iteratee: lodash.__, accumulator: TResult, object: readonly T[]): LodashTransform1x6; + (iteratee: lodash.MemoVoidIteratorCapped, accumulator: TResult, object: readonly T[] | lodash.Dictionary): TResult; (iteratee: lodash.__, accumulator: lodash.__, object: lodash.Dictionary): LodashTransform2x4; (iteratee: lodash.MemoVoidIteratorCapped, accumulator: lodash.__, object: lodash.Dictionary): LodashTransform2x5; (iteratee: lodash.__, accumulator: TResult, object: lodash.Dictionary): LodashTransform2x6; } interface LodashTransform1x1 { (accumulator: TResult): LodashTransform1x3; - (accumulator: lodash.__, object: ReadonlyArray): LodashTransform1x5; - (accumulator: TResult, object: ReadonlyArray | lodash.Dictionary): TResult; + (accumulator: lodash.__, object: readonly T[]): LodashTransform1x5; + (accumulator: TResult, object: readonly T[] | lodash.Dictionary): TResult; (accumulator: lodash.__, object: lodash.Dictionary): LodashTransform2x5; } interface LodashTransform1x2 { (iteratee: lodash.MemoVoidIteratorCapped): LodashTransform1x3; - (iteratee: lodash.__, object: ReadonlyArray): LodashTransform1x6; - (iteratee: lodash.MemoVoidIteratorCapped, object: ReadonlyArray | lodash.Dictionary): TResult; + (iteratee: lodash.__, object: readonly T[]): LodashTransform1x6; + (iteratee: lodash.MemoVoidIteratorCapped, object: readonly T[] | lodash.Dictionary): TResult; (iteratee: lodash.__, object: lodash.Dictionary): LodashTransform2x6; } - type LodashTransform1x3 = (object: ReadonlyArray | lodash.Dictionary) => TResult; + type LodashTransform1x3 = (object: readonly T[] | lodash.Dictionary) => TResult; interface LodashTransform1x4 { (iteratee: lodash.MemoVoidIteratorCapped): LodashTransform1x5; (iteratee: lodash.__, accumulator: TResult): LodashTransform1x6; @@ -4467,7 +4491,7 @@ declare namespace _ { type LodashUpdateWith1x13 = (path: lodash.PropertyPath) => T; type LodashUpdateWith1x14 = (customizer: lodash.SetWithCustomizer) => T; type LodashUpperCase = (string: string) => string; - type LodashUpperFirst = (string: string) => string; + type LodashUpperFirst = (string: T) => Capitalize; interface LodashValues { (object: lodash.Dictionary | lodash.NumericDictionary | lodash.List | null | undefined): T[]; (object: T | null | undefined): Array; @@ -4478,12 +4502,12 @@ declare namespace _ { (object: T | null | undefined): Array; } interface LodashWithout { - (values: ReadonlyArray): LodashWithout1x1; + (values: readonly T[]): LodashWithout1x1; (values: lodash.__, array: lodash.List | null | undefined): LodashWithout1x2; - (values: ReadonlyArray, array: lodash.List | null | undefined): T[]; + (values: readonly T[], array: lodash.List | null | undefined): T[]; } type LodashWithout1x1 = (array: lodash.List | null | undefined) => T[]; - type LodashWithout1x2 = (values: ReadonlyArray) => T[]; + type LodashWithout1x2 = (values: readonly T[]) => T[]; type LodashWords = (string: string) => string[]; interface LodashWrap { (wrapper: (value: T, ...args: TArgs[]) => TResult): LodashWrap1x1; diff --git a/node_modules/cypress/types/lodash/index.d.ts b/node_modules/cypress/types/lodash/index.d.ts index 1fa09484..f205e860 100644 --- a/node_modules/cypress/types/lodash/index.d.ts +++ b/node_modules/cypress/types/lodash/index.d.ts @@ -1,16 +1,3 @@ -// Type definitions for Lo-Dash 4.14 -// Project: https://lodash.com -// Definitions by: Brian Zengel , -// Ilya Mochalov , -// Stepan Mikhaylyuk , -// AJ Richardson , -// e-cloud , -// Georgii Dolzhykov , -// Jack Moore , -// Dominique Rau -// William Chelman -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - /// /// /// @@ -29,18 +16,6 @@ export as namespace _; declare const _: _.LoDashStatic; declare namespace _ { - // tslint:disable-next-line no-empty-interface (This will be augmented) + // eslint-disable-next-line @typescript-eslint/no-empty-interface -- (This will be augmented) interface LoDashStatic {} } - -// Backward compatibility with --target es5 -declare global { - // tslint:disable-next-line:no-empty-interface - interface Set { } - // tslint:disable-next-line:no-empty-interface - interface Map { } - // tslint:disable-next-line:no-empty-interface - interface WeakSet { } - // tslint:disable-next-line:no-empty-interface - interface WeakMap { } -} diff --git a/node_modules/cypress/types/net-stubbing.d.ts b/node_modules/cypress/types/net-stubbing.d.ts index c74c3d04..de0b5a94 100644 --- a/node_modules/cypress/types/net-stubbing.d.ts +++ b/node_modules/cypress/types/net-stubbing.d.ts @@ -207,7 +207,12 @@ export namespace CyHttpMessages { } } -export interface DictMatcher { +/** + * A dictionary/object matcher for matching key-value pairs. + * Used for matching HTTP headers and query string parameters. + * Keys are strings, values are of type T (typically a StringMatcher). + */ +interface DictMatcher { [key: string]: T } @@ -394,7 +399,7 @@ export interface RouteMatcherOptionsGeneric { url?: S } -export type RouteHandlerController = HttpRequestInterceptor +type RouteHandlerController = HttpRequestInterceptor export type RouteHandler = string | StaticResponseWithOptions | RouteHandlerController | object diff --git a/node_modules/cypress/vue/package.json b/node_modules/cypress/vue/package.json index c093ab6e..e0963701 100644 --- a/node_modules/cypress/vue/package.json +++ b/node_modules/cypress/vue/package.json @@ -1,7 +1,7 @@ { "name": "@cypress/vue", "version": "0.0.0-development", - "description": "Browser-based Component Testing for Vue.js with Cypress.io ✌️🌲", + "description": "Browser-based Component Testing for Vue.js with Cypress.io", "main": "dist/cypress-vue.cjs.js", "scripts": { "build": "rimraf dist && rollup -c rollup.config.mjs", @@ -21,10 +21,7 @@ "@vue/test-utils": "2.4.6", "axios": "0.30.2", "cypress": "0.0.0-development", - "debug": "^4.3.4", - "globby": "^11.0.1", "rollup": "3.29.5", - "tailwindcss": "1.1.4", "typescript": "~5.4.5", "vite": "6.3.5", "vue": "3.2.47", diff --git a/node_modules/cypress/vue/vue/package.json b/node_modules/cypress/vue/vue/package.json index c093ab6e..e0963701 100644 --- a/node_modules/cypress/vue/vue/package.json +++ b/node_modules/cypress/vue/vue/package.json @@ -1,7 +1,7 @@ { "name": "@cypress/vue", "version": "0.0.0-development", - "description": "Browser-based Component Testing for Vue.js with Cypress.io ✌️🌲", + "description": "Browser-based Component Testing for Vue.js with Cypress.io", "main": "dist/cypress-vue.cjs.js", "scripts": { "build": "rimraf dist && rollup -c rollup.config.mjs", @@ -21,10 +21,7 @@ "@vue/test-utils": "2.4.6", "axios": "0.30.2", "cypress": "0.0.0-development", - "debug": "^4.3.4", - "globby": "^11.0.1", "rollup": "3.29.5", - "tailwindcss": "1.1.4", "typescript": "~5.4.5", "vite": "6.3.5", "vue": "3.2.47", diff --git a/package-lock.json b/package-lock.json index 221c6021..abb5dfef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "cypress": "^15.8.2" + "cypress": "^15.9.0" }, "devDependencies": { "cypress-multi-reporters": "^2.0.5", @@ -715,9 +715,9 @@ } }, "node_modules/cypress": { - "version": "15.8.2", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-15.8.2.tgz", - "integrity": "sha512-KGpuiE8o9l9eyVLPkig574t8zOXkEDKzI0a+RQwy4cfXzpaLipvTOv0t+QEEkLiw/8HbgMNZ0fbPKakJAB3USA==", + "version": "15.9.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-15.9.0.tgz", + "integrity": "sha512-Ks6Bdilz3TtkLZtTQyqYaqtL/WT3X3APKaSLhTV96TmTyudzSjc6EJsJCHmBb7DxO+3R12q3Jkbjgm/iPgmwfg==", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -3427,9 +3427,9 @@ } }, "cypress": { - "version": "15.8.2", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-15.8.2.tgz", - "integrity": "sha512-KGpuiE8o9l9eyVLPkig574t8zOXkEDKzI0a+RQwy4cfXzpaLipvTOv0t+QEEkLiw/8HbgMNZ0fbPKakJAB3USA==", + "version": "15.9.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-15.9.0.tgz", + "integrity": "sha512-Ks6Bdilz3TtkLZtTQyqYaqtL/WT3X3APKaSLhTV96TmTyudzSjc6EJsJCHmBb7DxO+3R12q3Jkbjgm/iPgmwfg==", "requires": { "@cypress/request": "^3.0.10", "@cypress/xvfb": "^1.2.4", diff --git a/package.json b/package.json index 3153d164..f6496b32 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "homepage": "https://github.com/ashikkumar23/api-testing-cypress#readme", "dependencies": { - "cypress": "^15.8.2" + "cypress": "^15.9.0" }, "devDependencies": { "cypress-multi-reporters": "^2.0.5",