mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-07 06:59:49 -06:00
* patch axios for v8 snapshots * export httpsAgent and httpAgent discretely * set up axios interceptors for logging and error response transformation * use unified error transform fn * create instance api reqs, timeouts, tests * move axios middleware to its own dir & refactor * refactor error handling, enable retries in createInstance * fix invocation of createInstance - not caught by ts because record.js is js * retry on 500 - according to system test, this is expected behavior * resolve snapshots, report retries to stdout * fix cdp connection usage of shouldRetry due to newly unknown error type * axios doesnt fully follow RequestOptions shape when adding request to https agent * note why uri is treated as optional * hail mary on getting axios to work with v8 snapshots * update lockfile, force no-rewrite on more axios files * attempt to fix v8 snapshots * add verbose debugging to api request logging * enable verbose api debugging on server unit tests * fix nock pattern for createInstance * remove request logging unit test - sinon/mocha does not assert correctly * fix a few unit tests * use runAllAsync rather than waiting an arbitrary time for sinon fake timer * move create_instance spec to ts file, remove redundant test * rm debug on ci * clarify comment on change inpackages/network * correct .uri property on patched RequestOptions to be optional * rm unused log_requests.ts, DRY error messages * resolve types with record.ts migration --------- Co-authored-by: Ryan Manuel <ryanm@cypress.io>
55 lines
1.6 KiB
JSON
55 lines
1.6 KiB
JSON
{
|
|
"name": "@packages/errors",
|
|
"version": "0.0.0-development",
|
|
"description": "Error definitions and utilities for Cypress",
|
|
"main": "index.js",
|
|
"browser": "src/index.ts",
|
|
"scripts": {
|
|
"build": "../../scripts/run-if-ci.sh tsc || echo 'type errors'",
|
|
"build-prod": "tsc",
|
|
"check-ts": "tsc --noEmit && yarn -s tslint",
|
|
"clean": "rimraf ./src/*.js ./src/**/*.js ./src/**/**/*.js ./test/**/*.js || echo 'cleaned'",
|
|
"clean-deps": "rimraf node_modules",
|
|
"comparison": "node -r @packages/ts/register test/support/error-comparison-tool.ts",
|
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
|
"test": "yarn test-unit",
|
|
"test-electron": "HTML_IMAGE_CONVERSION=1 xvfb-maybe electron --no-sandbox ./node_modules/.bin/_mocha",
|
|
"pretest-unit": "yarn clean",
|
|
"test-unit": "mocha",
|
|
"tslint": "tslint --config ../ts/tslint.json --project ."
|
|
},
|
|
"dependencies": {
|
|
"ansi_up": "5.0.0",
|
|
"axios": "^1.7.9",
|
|
"chalk": "^2.4.2",
|
|
"lodash": "^4.17.21",
|
|
"pluralize": "8.0.0",
|
|
"strip-ansi": "6.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@packages/server": "0.0.0-development",
|
|
"@packages/ts": "0.0.0-development",
|
|
"@packages/types": "0.0.0-development",
|
|
"@types/chai": "4.2.15",
|
|
"@types/mocha": "8.2.2",
|
|
"@types/node": "20.16.0",
|
|
"@types/pngjs": "^6.0.1",
|
|
"ansi-styles": "^5",
|
|
"chai": "4.2.0",
|
|
"ci-info": "^4.1.0",
|
|
"globby": "^11.1.0",
|
|
"mocha": "7.0.1",
|
|
"pngjs": "^7.0.0",
|
|
"rimraf": "5.0.10",
|
|
"sinon": "7.5.0",
|
|
"terminal-banner": "^1.1.0",
|
|
"xvfb-maybe": "^0.2.1"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"dist"
|
|
],
|
|
"types": "src/index.ts",
|
|
"nx": {}
|
|
}
|