chore: update dependencies (#10785)
This commit is contained in:
parent
6f1dd09cca
commit
a3db064cbb
304
package-lock.json
generated
304
package-lock.json
generated
@ -24,7 +24,7 @@
|
||||
"@types/diff": "5.0.3",
|
||||
"@types/mime": "3.0.1",
|
||||
"@types/mocha": "10.0.1",
|
||||
"@types/node": "20.5.4",
|
||||
"@types/node": "20.5.6",
|
||||
"@types/pixelmatch": "5.2.4",
|
||||
"@types/pngjs": "6.0.1",
|
||||
"@types/progress": "2.0.5",
|
||||
@ -40,7 +40,7 @@
|
||||
"cross-env": "7.0.3",
|
||||
"diff": "5.1.0",
|
||||
"esbuild": "0.19.2",
|
||||
"eslint": "8.47.0",
|
||||
"eslint": "8.48.0",
|
||||
"eslint-config-prettier": "9.0.0",
|
||||
"eslint-formatter-codeframe": "7.32.1",
|
||||
"eslint-plugin-import": "2.28.1",
|
||||
@ -50,7 +50,7 @@
|
||||
"eslint-plugin-tsdoc": "0.2.17",
|
||||
"eslint-plugin-unused-imports": "3.0.0",
|
||||
"esprima": "4.0.1",
|
||||
"expect": "29.6.3",
|
||||
"expect": "29.6.4",
|
||||
"glob": "10.3.3",
|
||||
"gts": "5.0.1",
|
||||
"jpeg-js": "0.4.4",
|
||||
@ -73,7 +73,7 @@
|
||||
"text-diff": "1.0.1",
|
||||
"tsd": "0.28.1",
|
||||
"tsx": "3.12.7",
|
||||
"typescript": "5.1.6",
|
||||
"typescript": "5.2.2",
|
||||
"wireit": "0.10.0",
|
||||
"zod": "3.22.2"
|
||||
}
|
||||
@ -1261,9 +1261,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@eslint/js": {
|
||||
"version": "8.47.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.47.0.tgz",
|
||||
"integrity": "sha512-P6omY1zv5MItm93kLM8s2vr1HICJH8v0dvddDhysbIuZ+vcjOHg5Zbkf1mTkcmi2JA9oBG2anOkRnW8WJTS8Og==",
|
||||
"version": "8.48.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.48.0.tgz",
|
||||
"integrity": "sha512-ZSjtmelB7IJfWD2Fvb7+Z+ChTIKWq6kjda95fLcQKNS5aheVHn4IkfgRQE3sIIzTcSLwLcLZUD9UBt+V7+h+Pw==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||
@ -1399,9 +1399,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@jest/expect-utils": {
|
||||
"version": "29.6.3",
|
||||
"resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.6.3.tgz",
|
||||
"integrity": "sha512-nvOEW4YoqRKD9HBJ9OJ6przvIvP9qilp5nAn1462P5ZlL/MM9SgPEZFyjTGPfs7QkocdUsJa6KjHhyRn4ueItA==",
|
||||
"version": "29.6.4",
|
||||
"resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.6.4.tgz",
|
||||
"integrity": "sha512-FEhkJhqtvBwgSpiTrocquJCdXPsyvNKcl/n7A3u7X4pVoF4bswm11c9d4AV+kfq2Gpv/mM8x7E7DsRvH+djkrg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"jest-get-type": "^29.6.3"
|
||||
@ -2255,9 +2255,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "20.5.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.4.tgz",
|
||||
"integrity": "sha512-Y9vbIAoM31djQZrPYjpTLo0XlaSwOIsrlfE3LpulZeRblttsLQRFRlBAppW0LOxyT3ALj2M5vU1ucQQayQH3jA==",
|
||||
"version": "20.5.6",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.6.tgz",
|
||||
"integrity": "sha512-Gi5wRGPbbyOTX+4Y2iULQ27oUPrefaB0PxGQJnfyWN3kvEDGM3mIB5M/gQLmitZf7A9FmLeaqxD3L1CXpm3VKQ==",
|
||||
"devOptional": true
|
||||
},
|
||||
"node_modules/@types/normalize-package-data": {
|
||||
@ -2413,6 +2413,18 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.2.tgz",
|
||||
"integrity": "sha512-Cbu4nIqnEdd+THNEsBdkolnOXhg0I8XteoHaEKgvsxpsbWda4IsUut2c187HxywQCvveojow0Dgw/amxtSKVkQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=16.13.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": ">=4.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/parser": {
|
||||
"version": "6.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.4.1.tgz",
|
||||
@ -2485,6 +2497,18 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.2.tgz",
|
||||
"integrity": "sha512-Cbu4nIqnEdd+THNEsBdkolnOXhg0I8XteoHaEKgvsxpsbWda4IsUut2c187HxywQCvveojow0Dgw/amxtSKVkQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=16.13.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": ">=4.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/types": {
|
||||
"version": "6.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.4.1.tgz",
|
||||
@ -2525,6 +2549,18 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/typescript-estree/node_modules/ts-api-utils": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.2.tgz",
|
||||
"integrity": "sha512-Cbu4nIqnEdd+THNEsBdkolnOXhg0I8XteoHaEKgvsxpsbWda4IsUut2c187HxywQCvveojow0Dgw/amxtSKVkQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=16.13.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": ">=4.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/utils": {
|
||||
"version": "6.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.4.1.tgz",
|
||||
@ -4143,15 +4179,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/eslint": {
|
||||
"version": "8.47.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.47.0.tgz",
|
||||
"integrity": "sha512-spUQWrdPt+pRVP1TTJLmfRNJJHHZryFmptzcafwSvHsceV81djHOdnEeDmkdotZyLNjDhrOasNK8nikkoG1O8Q==",
|
||||
"version": "8.48.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.48.0.tgz",
|
||||
"integrity": "sha512-sb6DLeIuRXxeM1YljSe1KEx9/YYeZFQWcV8Rq9HfigmdDEugjLEVEa1ozDjL6YDjBpQHPJxJzze+alxi4T3OLg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.2.0",
|
||||
"@eslint-community/regexpp": "^4.6.1",
|
||||
"@eslint/eslintrc": "^2.1.2",
|
||||
"@eslint/js": "^8.47.0",
|
||||
"@eslint/js": "8.48.0",
|
||||
"@humanwhocodes/config-array": "^0.11.10",
|
||||
"@humanwhocodes/module-importer": "^1.0.1",
|
||||
"@nodelib/fs.walk": "^1.2.8",
|
||||
@ -4753,14 +4789,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/expect": {
|
||||
"version": "29.6.3",
|
||||
"resolved": "https://registry.npmjs.org/expect/-/expect-29.6.3.tgz",
|
||||
"integrity": "sha512-x1vY4LlEMWUYVZQrFi4ZANXFwqYbJ/JNQspLVvzhW2BNY28aNcXMQH6imBbt+RBf5sVRTodYHXtSP/TLEU0Dxw==",
|
||||
"version": "29.6.4",
|
||||
"resolved": "https://registry.npmjs.org/expect/-/expect-29.6.4.tgz",
|
||||
"integrity": "sha512-F2W2UyQ8XYyftHT57dtfg8Ue3X5qLgm2sSug0ivvLRH/VKNRL/pDxg/TH7zVzbQB0tu80clNFy6LU7OS/VSEKA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@jest/expect-utils": "^29.6.3",
|
||||
"@jest/expect-utils": "^29.6.4",
|
||||
"jest-get-type": "^29.6.3",
|
||||
"jest-matcher-utils": "^29.6.3",
|
||||
"jest-matcher-utils": "^29.6.4",
|
||||
"jest-message-util": "^29.6.3",
|
||||
"jest-util": "^29.6.3"
|
||||
},
|
||||
@ -5433,6 +5469,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/gts/node_modules/@typescript-eslint/eslint-plugin/node_modules/tsutils": {
|
||||
"version": "3.21.0",
|
||||
"resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",
|
||||
"integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"tslib": "^1.8.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
|
||||
}
|
||||
},
|
||||
"node_modules/gts/node_modules/@typescript-eslint/parser": {
|
||||
"version": "5.62.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz",
|
||||
@ -5504,6 +5555,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/gts/node_modules/@typescript-eslint/type-utils/node_modules/tsutils": {
|
||||
"version": "3.21.0",
|
||||
"resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",
|
||||
"integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"tslib": "^1.8.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
|
||||
}
|
||||
},
|
||||
"node_modules/gts/node_modules/@typescript-eslint/types": {
|
||||
"version": "5.62.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz",
|
||||
@ -5544,6 +5610,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/gts/node_modules/@typescript-eslint/typescript-estree/node_modules/tsutils": {
|
||||
"version": "3.21.0",
|
||||
"resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",
|
||||
"integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"tslib": "^1.8.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
|
||||
}
|
||||
},
|
||||
"node_modules/gts/node_modules/@typescript-eslint/utils": {
|
||||
"version": "5.62.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz",
|
||||
@ -6586,9 +6667,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/jest-diff": {
|
||||
"version": "29.6.3",
|
||||
"resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.3.tgz",
|
||||
"integrity": "sha512-3sw+AdWnwH9sSNohMRKA7JiYUJSRr/WS6+sEFfBuhxU5V5GlEVKfvUn8JuMHE0wqKowemR1C2aHy8VtXbaV8dQ==",
|
||||
"version": "29.6.4",
|
||||
"resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.4.tgz",
|
||||
"integrity": "sha512-9F48UxR9e4XOEZvoUXEHSWY4qC4zERJaOfrbBg9JpbJOO43R1vN76REt/aMGZoY6GD5g84nnJiBIVlscegefpw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"chalk": "^4.0.0",
|
||||
@ -6610,13 +6691,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/jest-matcher-utils": {
|
||||
"version": "29.6.3",
|
||||
"resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.3.tgz",
|
||||
"integrity": "sha512-6ZrMYINZdwduSt5Xu18/n49O1IgXdjsfG7NEZaQws9k69eTKWKcVbJBw/MZsjOZe2sSyJFmuzh8042XWwl54Zg==",
|
||||
"version": "29.6.4",
|
||||
"resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.4.tgz",
|
||||
"integrity": "sha512-KSzwyzGvK4HcfnserYqJHYi7sZVqdREJ9DMPAKVbS98JsIAvumihaNUbjrWw0St7p9IY7A9UskCW5MYlGmBQFQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"chalk": "^4.0.0",
|
||||
"jest-diff": "^29.6.3",
|
||||
"jest-diff": "^29.6.4",
|
||||
"jest-get-type": "^29.6.3",
|
||||
"pretty-format": "^29.6.3"
|
||||
},
|
||||
@ -10156,18 +10237,6 @@
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/ts-api-utils": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.1.tgz",
|
||||
"integrity": "sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=16.13.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": ">=4.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/tsconfig-paths": {
|
||||
"version": "3.14.2",
|
||||
"resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz",
|
||||
@ -10254,21 +10323,6 @@
|
||||
"dev": true,
|
||||
"license": "0BSD"
|
||||
},
|
||||
"node_modules/tsutils": {
|
||||
"version": "3.21.0",
|
||||
"resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",
|
||||
"integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"tslib": "^1.8.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx": {
|
||||
"version": "3.12.7",
|
||||
"resolved": "https://registry.npmjs.org/tsx/-/tsx-3.12.7.tgz",
|
||||
@ -10407,9 +10461,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.1.6",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz",
|
||||
"integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==",
|
||||
"version": "5.2.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
|
||||
"integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
@ -11685,9 +11739,9 @@
|
||||
}
|
||||
},
|
||||
"@eslint/js": {
|
||||
"version": "8.47.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.47.0.tgz",
|
||||
"integrity": "sha512-P6omY1zv5MItm93kLM8s2vr1HICJH8v0dvddDhysbIuZ+vcjOHg5Zbkf1mTkcmi2JA9oBG2anOkRnW8WJTS8Og==",
|
||||
"version": "8.48.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.48.0.tgz",
|
||||
"integrity": "sha512-ZSjtmelB7IJfWD2Fvb7+Z+ChTIKWq6kjda95fLcQKNS5aheVHn4IkfgRQE3sIIzTcSLwLcLZUD9UBt+V7+h+Pw==",
|
||||
"dev": true
|
||||
},
|
||||
"@humanwhocodes/config-array": {
|
||||
@ -11774,9 +11828,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"@jest/expect-utils": {
|
||||
"version": "29.6.3",
|
||||
"resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.6.3.tgz",
|
||||
"integrity": "sha512-nvOEW4YoqRKD9HBJ9OJ6przvIvP9qilp5nAn1462P5ZlL/MM9SgPEZFyjTGPfs7QkocdUsJa6KjHhyRn4ueItA==",
|
||||
"version": "29.6.4",
|
||||
"resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.6.4.tgz",
|
||||
"integrity": "sha512-FEhkJhqtvBwgSpiTrocquJCdXPsyvNKcl/n7A3u7X4pVoF4bswm11c9d4AV+kfq2Gpv/mM8x7E7DsRvH+djkrg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"jest-get-type": "^29.6.3"
|
||||
@ -12508,9 +12562,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "20.5.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.4.tgz",
|
||||
"integrity": "sha512-Y9vbIAoM31djQZrPYjpTLo0XlaSwOIsrlfE3LpulZeRblttsLQRFRlBAppW0LOxyT3ALj2M5vU1ucQQayQH3jA==",
|
||||
"version": "20.5.6",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.6.tgz",
|
||||
"integrity": "sha512-Gi5wRGPbbyOTX+4Y2iULQ27oUPrefaB0PxGQJnfyWN3kvEDGM3mIB5M/gQLmitZf7A9FmLeaqxD3L1CXpm3VKQ==",
|
||||
"devOptional": true
|
||||
},
|
||||
"@types/normalize-package-data": {
|
||||
@ -12636,6 +12690,15 @@
|
||||
"natural-compare": "^1.4.0",
|
||||
"semver": "^7.5.4",
|
||||
"ts-api-utils": "^1.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"ts-api-utils": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.2.tgz",
|
||||
"integrity": "sha512-Cbu4nIqnEdd+THNEsBdkolnOXhg0I8XteoHaEKgvsxpsbWda4IsUut2c187HxywQCvveojow0Dgw/amxtSKVkQ==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@typescript-eslint/parser": {
|
||||
@ -12671,6 +12734,15 @@
|
||||
"@typescript-eslint/utils": "6.4.1",
|
||||
"debug": "^4.3.4",
|
||||
"ts-api-utils": "^1.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"ts-api-utils": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.2.tgz",
|
||||
"integrity": "sha512-Cbu4nIqnEdd+THNEsBdkolnOXhg0I8XteoHaEKgvsxpsbWda4IsUut2c187HxywQCvveojow0Dgw/amxtSKVkQ==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@typescript-eslint/types": {
|
||||
@ -12692,6 +12764,15 @@
|
||||
"is-glob": "^4.0.3",
|
||||
"semver": "^7.5.4",
|
||||
"ts-api-utils": "^1.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"ts-api-utils": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.2.tgz",
|
||||
"integrity": "sha512-Cbu4nIqnEdd+THNEsBdkolnOXhg0I8XteoHaEKgvsxpsbWda4IsUut2c187HxywQCvveojow0Dgw/amxtSKVkQ==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@typescript-eslint/utils": {
|
||||
@ -13769,15 +13850,15 @@
|
||||
}
|
||||
},
|
||||
"eslint": {
|
||||
"version": "8.47.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.47.0.tgz",
|
||||
"integrity": "sha512-spUQWrdPt+pRVP1TTJLmfRNJJHHZryFmptzcafwSvHsceV81djHOdnEeDmkdotZyLNjDhrOasNK8nikkoG1O8Q==",
|
||||
"version": "8.48.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.48.0.tgz",
|
||||
"integrity": "sha512-sb6DLeIuRXxeM1YljSe1KEx9/YYeZFQWcV8Rq9HfigmdDEugjLEVEa1ozDjL6YDjBpQHPJxJzze+alxi4T3OLg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@eslint-community/eslint-utils": "^4.2.0",
|
||||
"@eslint-community/regexpp": "^4.6.1",
|
||||
"@eslint/eslintrc": "^2.1.2",
|
||||
"@eslint/js": "^8.47.0",
|
||||
"@eslint/js": "8.48.0",
|
||||
"@humanwhocodes/config-array": "^0.11.10",
|
||||
"@humanwhocodes/module-importer": "^1.0.1",
|
||||
"@nodelib/fs.walk": "^1.2.8",
|
||||
@ -14178,14 +14259,14 @@
|
||||
}
|
||||
},
|
||||
"expect": {
|
||||
"version": "29.6.3",
|
||||
"resolved": "https://registry.npmjs.org/expect/-/expect-29.6.3.tgz",
|
||||
"integrity": "sha512-x1vY4LlEMWUYVZQrFi4ZANXFwqYbJ/JNQspLVvzhW2BNY28aNcXMQH6imBbt+RBf5sVRTodYHXtSP/TLEU0Dxw==",
|
||||
"version": "29.6.4",
|
||||
"resolved": "https://registry.npmjs.org/expect/-/expect-29.6.4.tgz",
|
||||
"integrity": "sha512-F2W2UyQ8XYyftHT57dtfg8Ue3X5qLgm2sSug0ivvLRH/VKNRL/pDxg/TH7zVzbQB0tu80clNFy6LU7OS/VSEKA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@jest/expect-utils": "^29.6.3",
|
||||
"@jest/expect-utils": "^29.6.4",
|
||||
"jest-get-type": "^29.6.3",
|
||||
"jest-matcher-utils": "^29.6.3",
|
||||
"jest-matcher-utils": "^29.6.4",
|
||||
"jest-message-util": "^29.6.3",
|
||||
"jest-util": "^29.6.3"
|
||||
}
|
||||
@ -14638,6 +14719,17 @@
|
||||
"natural-compare-lite": "^1.4.0",
|
||||
"semver": "^7.3.7",
|
||||
"tsutils": "^3.21.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"tsutils": {
|
||||
"version": "3.21.0",
|
||||
"resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",
|
||||
"integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"tslib": "^1.8.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@typescript-eslint/parser": {
|
||||
@ -14672,6 +14764,17 @@
|
||||
"@typescript-eslint/utils": "5.62.0",
|
||||
"debug": "^4.3.4",
|
||||
"tsutils": "^3.21.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"tsutils": {
|
||||
"version": "3.21.0",
|
||||
"resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",
|
||||
"integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"tslib": "^1.8.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@typescript-eslint/types": {
|
||||
@ -14693,6 +14796,17 @@
|
||||
"is-glob": "^4.0.3",
|
||||
"semver": "^7.3.7",
|
||||
"tsutils": "^3.21.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"tsutils": {
|
||||
"version": "3.21.0",
|
||||
"resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",
|
||||
"integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"tslib": "^1.8.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@typescript-eslint/utils": {
|
||||
@ -15354,9 +15468,9 @@
|
||||
}
|
||||
},
|
||||
"jest-diff": {
|
||||
"version": "29.6.3",
|
||||
"resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.3.tgz",
|
||||
"integrity": "sha512-3sw+AdWnwH9sSNohMRKA7JiYUJSRr/WS6+sEFfBuhxU5V5GlEVKfvUn8JuMHE0wqKowemR1C2aHy8VtXbaV8dQ==",
|
||||
"version": "29.6.4",
|
||||
"resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.4.tgz",
|
||||
"integrity": "sha512-9F48UxR9e4XOEZvoUXEHSWY4qC4zERJaOfrbBg9JpbJOO43R1vN76REt/aMGZoY6GD5g84nnJiBIVlscegefpw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"chalk": "^4.0.0",
|
||||
@ -15372,13 +15486,13 @@
|
||||
"dev": true
|
||||
},
|
||||
"jest-matcher-utils": {
|
||||
"version": "29.6.3",
|
||||
"resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.3.tgz",
|
||||
"integrity": "sha512-6ZrMYINZdwduSt5Xu18/n49O1IgXdjsfG7NEZaQws9k69eTKWKcVbJBw/MZsjOZe2sSyJFmuzh8042XWwl54Zg==",
|
||||
"version": "29.6.4",
|
||||
"resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.4.tgz",
|
||||
"integrity": "sha512-KSzwyzGvK4HcfnserYqJHYi7sZVqdREJ9DMPAKVbS98JsIAvumihaNUbjrWw0St7p9IY7A9UskCW5MYlGmBQFQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"chalk": "^4.0.0",
|
||||
"jest-diff": "^29.6.3",
|
||||
"jest-diff": "^29.6.4",
|
||||
"jest-get-type": "^29.6.3",
|
||||
"pretty-format": "^29.6.3"
|
||||
}
|
||||
@ -17924,13 +18038,6 @@
|
||||
"version": "3.0.1",
|
||||
"dev": true
|
||||
},
|
||||
"ts-api-utils": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.1.tgz",
|
||||
"integrity": "sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
},
|
||||
"tsconfig-paths": {
|
||||
"version": "3.14.2",
|
||||
"resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz",
|
||||
@ -17997,15 +18104,6 @@
|
||||
"version": "1.14.1",
|
||||
"dev": true
|
||||
},
|
||||
"tsutils": {
|
||||
"version": "3.21.0",
|
||||
"resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",
|
||||
"integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"tslib": "^1.8.1"
|
||||
}
|
||||
},
|
||||
"tsx": {
|
||||
"version": "3.12.7",
|
||||
"resolved": "https://registry.npmjs.org/tsx/-/tsx-3.12.7.tgz",
|
||||
@ -18102,9 +18200,9 @@
|
||||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "5.1.6",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz",
|
||||
"integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==",
|
||||
"version": "5.2.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
|
||||
"integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
|
||||
"dev": true
|
||||
},
|
||||
"unbox-primitive": {
|
||||
|
@ -116,7 +116,7 @@
|
||||
"@types/diff": "5.0.3",
|
||||
"@types/mime": "3.0.1",
|
||||
"@types/mocha": "10.0.1",
|
||||
"@types/node": "20.5.4",
|
||||
"@types/node": "20.5.6",
|
||||
"@types/pixelmatch": "5.2.4",
|
||||
"@types/pngjs": "6.0.1",
|
||||
"@types/progress": "2.0.5",
|
||||
@ -132,7 +132,7 @@
|
||||
"cross-env": "7.0.3",
|
||||
"diff": "5.1.0",
|
||||
"esbuild": "0.19.2",
|
||||
"eslint": "8.47.0",
|
||||
"eslint": "8.48.0",
|
||||
"eslint-config-prettier": "9.0.0",
|
||||
"eslint-formatter-codeframe": "7.32.1",
|
||||
"eslint-plugin-import": "2.28.1",
|
||||
@ -142,7 +142,7 @@
|
||||
"eslint-plugin-tsdoc": "0.2.17",
|
||||
"eslint-plugin-unused-imports": "3.0.0",
|
||||
"esprima": "4.0.1",
|
||||
"expect": "29.6.3",
|
||||
"expect": "29.6.4",
|
||||
"glob": "10.3.3",
|
||||
"gts": "5.0.1",
|
||||
"jpeg-js": "0.4.4",
|
||||
@ -165,7 +165,7 @@
|
||||
"text-diff": "1.0.1",
|
||||
"tsd": "0.28.1",
|
||||
"tsx": "3.12.7",
|
||||
"typescript": "5.1.6",
|
||||
"typescript": "5.2.2",
|
||||
"wireit": "0.10.0",
|
||||
"zod": "3.22.2"
|
||||
},
|
||||
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"module": "CommonJS",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"outDir": "../lib/cjs"
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"module": "CommonJS",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"outDir": "../build"
|
||||
},
|
||||
"references": [{"path": "../../tsconfig.json"}]
|
||||
|
@ -2,7 +2,8 @@
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "tsconfig",
|
||||
"module": "CommonJS",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"noEmitOnError": true,
|
||||
"rootDir": "src/",
|
||||
"outDir": "lib/",
|
||||
|
@ -17,19 +17,25 @@ import {nodeResolve} from '@rollup/plugin-node-resolve';
|
||||
import terser from '@rollup/plugin-terser';
|
||||
import {globSync} from 'glob';
|
||||
|
||||
export default ['cjs', 'esm'].flatMap(outputType => {
|
||||
const configs = [];
|
||||
|
||||
// Note we don't use path.join here. We cannot since `glob` does not support
|
||||
// the backslash path separator.
|
||||
for (const file of globSync(`lib/${outputType}/third_party/**/*.js`)) {
|
||||
for (const file of globSync(`lib/esm/third_party/**/*.js`)) {
|
||||
configs.push({
|
||||
input: file,
|
||||
output: {
|
||||
output: [
|
||||
{
|
||||
file,
|
||||
format: outputType,
|
||||
format: 'esm',
|
||||
},
|
||||
{
|
||||
file: file.replace('/esm/', '/cjs/'),
|
||||
format: 'cjs',
|
||||
},
|
||||
],
|
||||
plugins: [terser(), nodeResolve()],
|
||||
});
|
||||
}
|
||||
return configs;
|
||||
});
|
||||
|
||||
export default configs;
|
||||
|
@ -2,6 +2,7 @@
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "Node",
|
||||
"outDir": "../lib/cjs/puppeteer"
|
||||
},
|
||||
"references": [{"path": "../third_party/tsconfig.cjs.json"}]
|
||||
|
@ -1,8 +1,10 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declarationMap": false,
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"outDir": "../lib/cjs/third_party",
|
||||
"declarationMap": false,
|
||||
"sourceMap": false
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"module": "CommonJS",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"outDir": "../lib/cjs/puppeteer"
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../lib/esm/puppeteer",
|
||||
"moduleResolution": "NodeNext"
|
||||
"outDir": "../lib/esm/puppeteer"
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,8 @@
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"composite": true,
|
||||
"module": "CommonJS",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"outDir": "lib",
|
||||
"rootDir": "src"
|
||||
},
|
||||
|
@ -64,7 +64,7 @@ describe('Page.Events.Dialog', function () {
|
||||
const {page} = await getTestState();
|
||||
|
||||
page.on('dialog', dialog => {
|
||||
dialog.dismiss();
|
||||
void dialog.dismiss();
|
||||
});
|
||||
const result = await page.evaluate(() => {
|
||||
return prompt('question?');
|
||||
|
@ -187,7 +187,7 @@ describe('input tests', function () {
|
||||
const {page} = await getTestState();
|
||||
|
||||
await page.setContent(`<input type=file>`);
|
||||
page.waitForFileChooser().then(chooser => {
|
||||
void page.waitForFileChooser().then(chooser => {
|
||||
return chooser.accept([FILE_TO_UPLOAD]);
|
||||
});
|
||||
expect(
|
||||
@ -212,7 +212,7 @@ describe('input tests', function () {
|
||||
const {page} = await getTestState();
|
||||
|
||||
await page.setContent(`<input type=file>`);
|
||||
page.waitForFileChooser().then(chooser => {
|
||||
void page.waitForFileChooser().then(chooser => {
|
||||
return chooser.accept([FILE_TO_UPLOAD]);
|
||||
});
|
||||
expect(
|
||||
@ -225,7 +225,7 @@ describe('input tests', function () {
|
||||
return pick.files!.length;
|
||||
})
|
||||
).toBe(1);
|
||||
page.waitForFileChooser().then(chooser => {
|
||||
void page.waitForFileChooser().then(chooser => {
|
||||
return chooser.accept([]);
|
||||
});
|
||||
expect(
|
||||
@ -279,7 +279,7 @@ describe('input tests', function () {
|
||||
const {page} = await getTestState();
|
||||
|
||||
await page.setContent(`<input type=file>`);
|
||||
page.waitForFileChooser().then(chooser => {
|
||||
void page.waitForFileChooser().then(chooser => {
|
||||
return chooser.accept(['file-does-not-exist.txt']);
|
||||
});
|
||||
expect(
|
||||
|
@ -67,7 +67,7 @@ describe('Keyboard', function () {
|
||||
})
|
||||
).toBe('Hello World!');
|
||||
for (const _ of 'World!') {
|
||||
page.keyboard.press('ArrowLeft');
|
||||
await page.keyboard.press('ArrowLeft');
|
||||
}
|
||||
await page.keyboard.type('inserted ');
|
||||
expect(
|
||||
@ -75,11 +75,11 @@ describe('Keyboard', function () {
|
||||
return document.querySelector('textarea')!.value;
|
||||
})
|
||||
).toBe('Hello inserted World!');
|
||||
page.keyboard.down('Shift');
|
||||
await page.keyboard.down('Shift');
|
||||
for (const _ of 'inserted ') {
|
||||
page.keyboard.press('ArrowLeft');
|
||||
await page.keyboard.press('ArrowLeft');
|
||||
}
|
||||
page.keyboard.up('Shift');
|
||||
await page.keyboard.up('Shift');
|
||||
await page.keyboard.press('Backspace');
|
||||
expect(
|
||||
await page.evaluate(() => {
|
||||
|
@ -686,7 +686,7 @@ describe('Locator', function () {
|
||||
describe('Locator.prototype.wait', () => {
|
||||
it('should work', async () => {
|
||||
const {page} = await getTestState();
|
||||
page.setContent(`
|
||||
void page.setContent(`
|
||||
<script>
|
||||
setTimeout(() => {
|
||||
const element = document.createElement("div");
|
||||
@ -703,7 +703,7 @@ describe('Locator', function () {
|
||||
describe('Locator.prototype.waitHandle', () => {
|
||||
it('should work', async () => {
|
||||
const {page} = await getTestState();
|
||||
page.setContent(`
|
||||
void page.setContent(`
|
||||
<script>
|
||||
setTimeout(() => {
|
||||
const element = document.createElement("div");
|
||||
|
@ -522,9 +522,9 @@ describe('network', function () {
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
if (request.url().endsWith('css')) {
|
||||
request.abort();
|
||||
void request.abort();
|
||||
} else {
|
||||
request.continue();
|
||||
void request.continue();
|
||||
}
|
||||
});
|
||||
const failedRequests: HTTPRequest[] = [];
|
||||
@ -641,7 +641,7 @@ describe('network', function () {
|
||||
const requests = new Map();
|
||||
page.on('request', request => {
|
||||
requests.set(request.url().split('/').pop(), request);
|
||||
request.continue();
|
||||
void request.continue();
|
||||
});
|
||||
await page.setRequestInterception(true);
|
||||
server.setRedirect('/rrredirect', '/frames/one-frame.html');
|
||||
|
@ -42,29 +42,29 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
if (request.url().endsWith('.css')) {
|
||||
request.continue(
|
||||
void request.continue(
|
||||
{headers: {...request.headers(), xaction: 'continue'}},
|
||||
expectedAction === 'continue' ? 1 : 0
|
||||
);
|
||||
} else {
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
}
|
||||
});
|
||||
page.on('request', request => {
|
||||
if (request.url().endsWith('.css')) {
|
||||
request.respond(
|
||||
void request.respond(
|
||||
{headers: {xaction: 'respond'}},
|
||||
expectedAction === 'respond' ? 1 : 0
|
||||
);
|
||||
} else {
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
}
|
||||
});
|
||||
page.on('request', request => {
|
||||
if (request.url().endsWith('.css')) {
|
||||
request.abort('aborted', expectedAction === 'abort' ? 1 : 0);
|
||||
void request.abort('aborted', expectedAction === 'abort' ? 1 : 0);
|
||||
} else {
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
}
|
||||
});
|
||||
page.on('response', response => {
|
||||
@ -106,7 +106,7 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
if (isFavicon(request)) {
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
return;
|
||||
}
|
||||
expect(request.url()).toContain('empty.html');
|
||||
@ -117,7 +117,7 @@ describe('request interception', function () {
|
||||
expect(request.resourceType()).toBe('document');
|
||||
expect(request.frame() === page.mainFrame()).toBe(true);
|
||||
expect(request.frame()!.url()).toBe('about:blank');
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
});
|
||||
const response = (await page.goto(server.EMPTY_PAGE))!;
|
||||
expect(response!.ok()).toBe(true);
|
||||
@ -155,7 +155,7 @@ describe('request interception', function () {
|
||||
const headers = Object.assign({}, request.headers(), {
|
||||
foo: 'bar',
|
||||
});
|
||||
request.continue({headers}, 0);
|
||||
void request.continue({headers}, 0);
|
||||
|
||||
expect(request.continueRequestOverrides()).toEqual({headers});
|
||||
});
|
||||
@ -172,7 +172,7 @@ describe('request interception', function () {
|
||||
foo: 'bar',
|
||||
origin: undefined, // remove "origin" header
|
||||
});
|
||||
request.continue({headers}, 0);
|
||||
void request.continue({headers}, 0);
|
||||
});
|
||||
|
||||
const [serverRequest] = await Promise.all([
|
||||
@ -191,7 +191,7 @@ describe('request interception', function () {
|
||||
if (!isFavicon(request)) {
|
||||
requests.push(request);
|
||||
}
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
});
|
||||
await page.goto(server.PREFIX + '/one-style.html');
|
||||
expect(requests[1]!.url()).toContain('/one-style.css');
|
||||
@ -232,7 +232,7 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
expect(request.headers()['foo']).toBe('bar');
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
});
|
||||
const response = await page.goto(server.EMPTY_PAGE);
|
||||
expect(response!.ok()).toBe(true);
|
||||
@ -262,7 +262,7 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
expect(request.headers()['referer']).toBe(server.EMPTY_PAGE);
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
});
|
||||
const response = await page.goto(server.EMPTY_PAGE);
|
||||
expect(response!.ok()).toBe(true);
|
||||
@ -273,9 +273,9 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
if (request.url().endsWith('.css')) {
|
||||
request.abort('failed', 0);
|
||||
void request.abort('failed', 0);
|
||||
} else {
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
}
|
||||
});
|
||||
let failedRequests = 0;
|
||||
@ -292,12 +292,12 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.abort('failed', 0);
|
||||
void request.abort('failed', 0);
|
||||
});
|
||||
let abortReason = null;
|
||||
page.on('request', request => {
|
||||
abortReason = request.abortErrorReason();
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
});
|
||||
await page.goto(server.EMPTY_PAGE).catch(() => {});
|
||||
expect(abortReason).toBe('Failed');
|
||||
@ -307,7 +307,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.abort('internetdisconnected', 0);
|
||||
void request.abort('internetdisconnected', 0);
|
||||
});
|
||||
|
||||
const [failedRequest] = await Promise.all([
|
||||
@ -359,7 +359,7 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
const requests: HTTPRequest[] = [];
|
||||
page.on('request', request => {
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
requests.push(request);
|
||||
});
|
||||
server.setRedirect(
|
||||
@ -399,7 +399,7 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
const requests: HTTPRequest[] = [];
|
||||
page.on('request', request => {
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
if (!isFavicon(request)) {
|
||||
requests.push(request);
|
||||
}
|
||||
@ -431,9 +431,9 @@ describe('request interception', function () {
|
||||
server.setRedirect('/non-existing-2.json', '/simple.html');
|
||||
page.on('request', request => {
|
||||
if (request.url().includes('non-existing-2')) {
|
||||
request.abort('failed', 0);
|
||||
void request.abort('failed', 0);
|
||||
} else {
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
}
|
||||
});
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
@ -464,10 +464,10 @@ describe('request interception', function () {
|
||||
// Cancel 2nd request.
|
||||
page.on('request', request => {
|
||||
if (isFavicon(request)) {
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
return;
|
||||
}
|
||||
spinner ? request.abort('failed', 0) : request.continue({}, 0);
|
||||
void (spinner ? request.abort('failed', 0) : request.continue({}, 0));
|
||||
spinner = !spinner;
|
||||
});
|
||||
const results = await page.evaluate(() => {
|
||||
@ -504,7 +504,7 @@ describe('request interception', function () {
|
||||
const requests: HTTPRequest[] = [];
|
||||
page.on('request', request => {
|
||||
requests.push(request);
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
});
|
||||
const dataURL = 'data:text/html,<div>yo</div>';
|
||||
const response = await page.goto(dataURL);
|
||||
@ -520,7 +520,7 @@ describe('request interception', function () {
|
||||
const requests: HTTPRequest[] = [];
|
||||
page.on('request', request => {
|
||||
!isFavicon(request) && requests.push(request);
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
});
|
||||
const dataURL = 'data:text/html,<div>yo</div>';
|
||||
const text = await page.evaluate((url: string) => {
|
||||
@ -539,7 +539,7 @@ describe('request interception', function () {
|
||||
const requests: HTTPRequest[] = [];
|
||||
page.on('request', request => {
|
||||
requests.push(request);
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
});
|
||||
const response = await page.goto(server.EMPTY_PAGE + '#hash');
|
||||
expect(response!.status()).toBe(200);
|
||||
@ -582,7 +582,7 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
const requests: HTTPRequest[] = [];
|
||||
page.on('request', request => {
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
requests.push(request);
|
||||
});
|
||||
const response = await page.goto(
|
||||
@ -601,7 +601,7 @@ describe('request interception', function () {
|
||||
page.on('request', async r => {
|
||||
return (request = r);
|
||||
});
|
||||
page.$eval(
|
||||
void (page.$eval(
|
||||
'iframe',
|
||||
(frame, url) => {
|
||||
return ((frame as HTMLIFrameElement).src = url as string);
|
||||
@ -609,7 +609,7 @@ describe('request interception', function () {
|
||||
server.EMPTY_PAGE
|
||||
),
|
||||
// Wait for request interception.
|
||||
await waitEvent(page, 'request');
|
||||
await waitEvent(page, 'request'));
|
||||
// Delete frame to cause request to be canceled.
|
||||
await page.$eval('iframe', frame => {
|
||||
return frame.remove();
|
||||
@ -641,7 +641,7 @@ describe('request interception', function () {
|
||||
const urls = new Set();
|
||||
page.on('request', request => {
|
||||
urls.add(request.url().split('/').pop());
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
});
|
||||
await page.goto(
|
||||
pathToFileURL(path.join(__dirname, '../assets', 'one-style.html'))
|
||||
@ -723,7 +723,7 @@ describe('request interception', function () {
|
||||
page.on('request', request => {
|
||||
const headers = Object.assign({}, request.headers());
|
||||
headers['FOO'] = 'bar';
|
||||
request.continue({headers}, 0);
|
||||
void request.continue({headers}, 0);
|
||||
});
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
const [request] = await Promise.all([
|
||||
@ -742,7 +742,7 @@ describe('request interception', function () {
|
||||
const redirectURL = request.url().includes('/empty.html')
|
||||
? server.PREFIX + '/consolelog.html'
|
||||
: undefined;
|
||||
request.continue({url: redirectURL}, 0);
|
||||
void request.continue({url: redirectURL}, 0);
|
||||
});
|
||||
|
||||
const [consoleMessage] = await Promise.all([
|
||||
@ -759,7 +759,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.continue({method: 'POST'}, 0);
|
||||
void request.continue({method: 'POST'}, 0);
|
||||
});
|
||||
const [request] = await Promise.all([
|
||||
server.waitForRequest('/sleep.zzz'),
|
||||
@ -776,7 +776,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.continue({postData: 'doggo'}, 0);
|
||||
void request.continue({postData: 'doggo'}, 0);
|
||||
});
|
||||
const [serverRequest] = await Promise.all([
|
||||
server.waitForRequest('/sleep.zzz'),
|
||||
@ -791,7 +791,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.continue({method: 'POST', postData: 'doggo'}, 0);
|
||||
void request.continue({method: 'POST', postData: 'doggo'}, 0);
|
||||
});
|
||||
const [serverRequest] = await Promise.all([
|
||||
server.waitForRequest('/empty.html'),
|
||||
@ -808,7 +808,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.respond(
|
||||
void request.respond(
|
||||
{
|
||||
status: 201,
|
||||
headers: {
|
||||
@ -833,7 +833,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.respond(
|
||||
void request.respond(
|
||||
{
|
||||
status: 200,
|
||||
body: 'Yo, page!',
|
||||
@ -844,7 +844,7 @@ describe('request interception', function () {
|
||||
let response = null;
|
||||
page.on('request', request => {
|
||||
response = request.responseForRequest();
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
});
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
expect(response).toEqual({status: 200, body: 'Yo, page!'});
|
||||
@ -854,7 +854,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.respond(
|
||||
void request.respond(
|
||||
{
|
||||
status: 422,
|
||||
body: 'Yo, page!',
|
||||
@ -877,10 +877,10 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
if (!request.url().includes('rrredirect')) {
|
||||
request.continue({}, 0);
|
||||
void request.continue({}, 0);
|
||||
return;
|
||||
}
|
||||
request.respond(
|
||||
void request.respond(
|
||||
{
|
||||
status: 302,
|
||||
headers: {
|
||||
@ -905,7 +905,7 @@ describe('request interception', function () {
|
||||
const imageBuffer = fs.readFileSync(
|
||||
path.join(__dirname, '../assets', 'pptr.png')
|
||||
);
|
||||
request.respond(
|
||||
void request.respond(
|
||||
{
|
||||
contentType: 'image/png',
|
||||
body: imageBuffer,
|
||||
@ -929,7 +929,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.respond(
|
||||
void request.respond(
|
||||
{
|
||||
status: 200,
|
||||
headers: {
|
||||
@ -955,7 +955,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.continue();
|
||||
void request.continue();
|
||||
});
|
||||
page.on('request', request => {
|
||||
expect(request.isInterceptResolutionHandled()).toBeTruthy();
|
||||
|
@ -34,7 +34,7 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
if (isFavicon(request)) {
|
||||
request.continue();
|
||||
void request.continue();
|
||||
return;
|
||||
}
|
||||
expect(request.url()).toContain('empty.html');
|
||||
@ -46,7 +46,7 @@ describe('request interception', function () {
|
||||
expect(request.resourceType()).toBe('document');
|
||||
expect(request.frame() === page.mainFrame()).toBe(true);
|
||||
expect(request.frame()!.url()).toBe('about:blank');
|
||||
request.continue();
|
||||
void request.continue();
|
||||
});
|
||||
const response = (await page.goto(server.EMPTY_PAGE))!;
|
||||
expect(response.ok()).toBe(true);
|
||||
@ -84,7 +84,7 @@ describe('request interception', function () {
|
||||
const headers = Object.assign({}, request.headers(), {
|
||||
foo: 'bar',
|
||||
});
|
||||
request.continue({headers});
|
||||
void request.continue({headers});
|
||||
});
|
||||
await page.goto(server.PREFIX + '/rrredirect');
|
||||
});
|
||||
@ -98,7 +98,7 @@ describe('request interception', function () {
|
||||
foo: 'bar',
|
||||
origin: undefined, // remove "origin" header
|
||||
});
|
||||
request.continue({headers});
|
||||
void request.continue({headers});
|
||||
});
|
||||
|
||||
const [serverRequest] = await Promise.all([
|
||||
@ -117,7 +117,7 @@ describe('request interception', function () {
|
||||
if (!isFavicon(request)) {
|
||||
requests.push(request);
|
||||
}
|
||||
request.continue();
|
||||
void request.continue();
|
||||
});
|
||||
await page.goto(server.PREFIX + '/one-style.html');
|
||||
expect(requests[1]!.url()).toContain('/one-style.css');
|
||||
@ -174,7 +174,7 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
expect(request.headers()['foo']).toBe('bar');
|
||||
request.continue();
|
||||
void request.continue();
|
||||
});
|
||||
const response = (await page.goto(server.EMPTY_PAGE))!;
|
||||
expect(response.ok()).toBe(true);
|
||||
@ -204,7 +204,7 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
expect(request.headers()['referer']).toBe(server.EMPTY_PAGE);
|
||||
request.continue();
|
||||
void request.continue();
|
||||
});
|
||||
const response = (await page.goto(server.EMPTY_PAGE))!;
|
||||
expect(response.ok()).toBe(true);
|
||||
@ -215,9 +215,9 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
if (request.url().endsWith('.css')) {
|
||||
request.abort();
|
||||
void request.abort();
|
||||
} else {
|
||||
request.continue();
|
||||
void request.continue();
|
||||
}
|
||||
});
|
||||
let failedRequests = 0;
|
||||
@ -234,7 +234,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.abort('internetdisconnected');
|
||||
void request.abort('internetdisconnected');
|
||||
});
|
||||
const [failedRequest] = await Promise.all([
|
||||
waitEvent<HTTPRequest>(page, 'requestfailed'),
|
||||
@ -286,7 +286,7 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
const requests: HTTPRequest[] = [];
|
||||
page.on('request', request => {
|
||||
request.continue();
|
||||
void request.continue();
|
||||
requests.push(request);
|
||||
});
|
||||
server.setRedirect(
|
||||
@ -326,7 +326,7 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
const requests: HTTPRequest[] = [];
|
||||
page.on('request', request => {
|
||||
request.continue();
|
||||
void request.continue();
|
||||
if (!isFavicon(request)) {
|
||||
requests.push(request);
|
||||
}
|
||||
@ -358,9 +358,9 @@ describe('request interception', function () {
|
||||
server.setRedirect('/non-existing-2.json', '/simple.html');
|
||||
page.on('request', request => {
|
||||
if (request.url().includes('non-existing-2')) {
|
||||
request.abort();
|
||||
void request.abort();
|
||||
} else {
|
||||
request.continue();
|
||||
void request.continue();
|
||||
}
|
||||
});
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
@ -391,10 +391,10 @@ describe('request interception', function () {
|
||||
// Cancel 2nd request.
|
||||
page.on('request', request => {
|
||||
if (isFavicon(request)) {
|
||||
request.continue();
|
||||
void request.continue();
|
||||
return;
|
||||
}
|
||||
spinner ? request.abort() : request.continue();
|
||||
void (spinner ? request.abort() : request.continue());
|
||||
spinner = !spinner;
|
||||
});
|
||||
const results = await page.evaluate(() => {
|
||||
@ -431,7 +431,7 @@ describe('request interception', function () {
|
||||
const requests: HTTPRequest[] = [];
|
||||
page.on('request', request => {
|
||||
requests.push(request);
|
||||
request.continue();
|
||||
void request.continue();
|
||||
});
|
||||
const dataURL = 'data:text/html,<div>yo</div>';
|
||||
const response = (await page.goto(dataURL))!;
|
||||
@ -447,7 +447,7 @@ describe('request interception', function () {
|
||||
const requests: HTTPRequest[] = [];
|
||||
page.on('request', request => {
|
||||
!isFavicon(request) && requests.push(request);
|
||||
request.continue();
|
||||
void request.continue();
|
||||
});
|
||||
const dataURL = 'data:text/html,<div>yo</div>';
|
||||
const text = await page.evaluate((url: string) => {
|
||||
@ -466,7 +466,7 @@ describe('request interception', function () {
|
||||
const requests: HTTPRequest[] = [];
|
||||
page.on('request', request => {
|
||||
requests.push(request);
|
||||
request.continue();
|
||||
void request.continue();
|
||||
});
|
||||
const response = (await page.goto(server.EMPTY_PAGE + '#hash'))!;
|
||||
expect(response.status()).toBe(200);
|
||||
@ -511,7 +511,7 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
const requests: HTTPRequest[] = [];
|
||||
page.on('request', request => {
|
||||
request.continue();
|
||||
void request.continue();
|
||||
requests.push(request);
|
||||
});
|
||||
const response = (await page.goto(
|
||||
@ -530,7 +530,7 @@ describe('request interception', function () {
|
||||
page.on('request', async r => {
|
||||
return (request = r);
|
||||
});
|
||||
page.$eval(
|
||||
void (page.$eval(
|
||||
'iframe',
|
||||
(frame, url) => {
|
||||
return ((frame as HTMLIFrameElement).src = url as string);
|
||||
@ -538,7 +538,7 @@ describe('request interception', function () {
|
||||
server.EMPTY_PAGE
|
||||
),
|
||||
// Wait for request interception.
|
||||
await waitEvent(page, 'request');
|
||||
await waitEvent(page, 'request'));
|
||||
// Delete frame to cause request to be canceled.
|
||||
await page.$eval('iframe', frame => {
|
||||
return frame.remove();
|
||||
@ -570,7 +570,7 @@ describe('request interception', function () {
|
||||
const urls = new Set();
|
||||
page.on('request', request => {
|
||||
urls.add(request.url().split('/').pop());
|
||||
request.continue();
|
||||
void request.continue();
|
||||
});
|
||||
await page.goto(
|
||||
pathToFileURL(path.join(__dirname, '../assets', 'one-style.html'))
|
||||
@ -653,7 +653,7 @@ describe('request interception', function () {
|
||||
page.on('request', request => {
|
||||
const headers = Object.assign({}, request.headers());
|
||||
headers['FOO'] = 'bar';
|
||||
request.continue({headers});
|
||||
void request.continue({headers});
|
||||
});
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
const [request] = await Promise.all([
|
||||
@ -672,7 +672,7 @@ describe('request interception', function () {
|
||||
const redirectURL = request.url().includes('/empty.html')
|
||||
? server.PREFIX + '/consolelog.html'
|
||||
: undefined;
|
||||
request.continue({url: redirectURL});
|
||||
void request.continue({url: redirectURL});
|
||||
});
|
||||
const [consoleMessage] = await Promise.all([
|
||||
waitEvent<ConsoleMessage>(page, 'console'),
|
||||
@ -688,7 +688,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.continue({method: 'POST'});
|
||||
void request.continue({method: 'POST'});
|
||||
});
|
||||
const [request] = await Promise.all([
|
||||
server.waitForRequest('/sleep.zzz'),
|
||||
@ -705,7 +705,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.continue({postData: 'doggo'});
|
||||
void request.continue({postData: 'doggo'});
|
||||
});
|
||||
const [serverRequest] = await Promise.all([
|
||||
server.waitForRequest('/sleep.zzz'),
|
||||
@ -720,7 +720,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.continue({method: 'POST', postData: 'doggo'});
|
||||
void request.continue({method: 'POST', postData: 'doggo'});
|
||||
});
|
||||
const [serverRequest] = await Promise.all([
|
||||
server.waitForRequest('/empty.html'),
|
||||
@ -757,7 +757,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.respond({
|
||||
void request.respond({
|
||||
status: 201,
|
||||
headers: {
|
||||
foo: 'bar',
|
||||
@ -779,7 +779,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.respond({
|
||||
void request.respond({
|
||||
status: 422,
|
||||
body: 'Yo, page!',
|
||||
});
|
||||
@ -799,10 +799,10 @@ describe('request interception', function () {
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
if (!request.url().includes('rrredirect')) {
|
||||
request.continue();
|
||||
void request.continue();
|
||||
return;
|
||||
}
|
||||
request.respond({
|
||||
void request.respond({
|
||||
status: 302,
|
||||
headers: {
|
||||
location: server.EMPTY_PAGE,
|
||||
@ -821,7 +821,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.respond({
|
||||
void request.respond({
|
||||
status: 200,
|
||||
headers: {
|
||||
foo: 'bar',
|
||||
@ -855,7 +855,7 @@ describe('request interception', function () {
|
||||
const imageBuffer = fs.readFileSync(
|
||||
path.join(__dirname, '../assets', 'pptr.png')
|
||||
);
|
||||
request.respond({
|
||||
void request.respond({
|
||||
contentType: 'image/png',
|
||||
body: imageBuffer,
|
||||
});
|
||||
@ -876,7 +876,7 @@ describe('request interception', function () {
|
||||
|
||||
await page.setRequestInterception(true);
|
||||
page.on('request', request => {
|
||||
request.respond({
|
||||
void request.respond({
|
||||
status: 200,
|
||||
headers: {
|
||||
foo: true,
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"extends": "../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"module": "CommonJS",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"outDir": "build",
|
||||
"rootDir": "src"
|
||||
|
@ -3,7 +3,8 @@
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"composite": true,
|
||||
"module": "CommonJS",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"outDir": "lib",
|
||||
"rootDir": "src"
|
||||
},
|
||||
|
@ -8,8 +8,8 @@
|
||||
"declarationMap": true,
|
||||
"esModuleInterop": true,
|
||||
"incremental": true,
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"module": "ES2022",
|
||||
"moduleResolution": "Bundler",
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitOverride": true,
|
||||
|
Loading…
Reference in New Issue
Block a user