refactor: move dependencies where they are used (#11310)

This commit is contained in:
Nikolay Vitkov 2023-11-06 14:03:57 +01:00 committed by GitHub
parent f196f84ed0
commit 8a54722328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 73 additions and 203 deletions

143
package-lock.json generated
View File

@ -19,28 +19,14 @@
"@actions/core": "1.10.1", "@actions/core": "1.10.1",
"@microsoft/api-extractor": "7.38.2", "@microsoft/api-extractor": "7.38.2",
"@pptr/testserver": "file:packages/testserver", "@pptr/testserver": "file:packages/testserver",
"@prettier/sync": "0.3.0",
"@puppeteer/docgen": "file:tools/docgen", "@puppeteer/docgen": "file:tools/docgen",
"@types/debug": "4.1.10",
"@types/diff": "5.0.7",
"@types/mime": "3.0.3",
"@types/mocha": "10.0.3", "@types/mocha": "10.0.3",
"@types/node": "20.8.4", "@types/node": "20.8.4",
"@types/pixelmatch": "5.2.5",
"@types/pngjs": "6.0.3",
"@types/progress": "2.0.6",
"@types/semver": "7.5.4", "@types/semver": "7.5.4",
"@types/sinon": "17.0.0", "@types/sinon": "17.0.0",
"@types/tar-fs": "2.0.3",
"@types/unbzip2-stream": "1.4.2",
"@types/ws": "8.5.8",
"@types/yargs": "17.0.29",
"@typescript-eslint/eslint-plugin": "6.9.1", "@typescript-eslint/eslint-plugin": "6.9.1",
"@typescript-eslint/parser": "6.9.1", "@typescript-eslint/parser": "6.9.1",
"c8": "8.0.1",
"commonmark": "0.30.0",
"cross-env": "7.0.3", "cross-env": "7.0.3",
"diff": "5.1.0",
"esbuild": "0.19.5", "esbuild": "0.19.5",
"eslint": "8.53.0", "eslint": "8.53.0",
"eslint-config-prettier": "9.0.0", "eslint-config-prettier": "9.0.0",
@ -52,33 +38,23 @@
"eslint-plugin-rulesdir": "0.2.2", "eslint-plugin-rulesdir": "0.2.2",
"eslint-plugin-tsdoc": "0.2.17", "eslint-plugin-tsdoc": "0.2.17",
"eslint-plugin-unused-imports": "3.0.0", "eslint-plugin-unused-imports": "3.0.0",
"esprima": "4.0.1",
"execa": "8.0.1", "execa": "8.0.1",
"expect": "29.7.0", "expect": "29.7.0",
"glob": "10.3.10",
"gts": "5.2.0", "gts": "5.2.0",
"hereby": "1.8.8", "hereby": "1.8.8",
"jpeg-js": "0.4.4",
"license-checker": "25.0.1", "license-checker": "25.0.1",
"mime": "3.0.0",
"minimist": "1.2.8",
"mocha": "10.2.0", "mocha": "10.2.0",
"ncp": "2.0.0",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",
"pixelmatch": "5.3.0",
"pngjs": "7.0.0",
"prettier": "3.0.3", "prettier": "3.0.3",
"puppeteer": "file:packages/puppeteer", "puppeteer": "file:packages/puppeteer",
"semver": "7.5.4", "semver": "7.5.4",
"sinon": "17.0.1", "sinon": "17.0.1",
"source-map-support": "0.5.21", "source-map-support": "0.5.21",
"spdx-satisfies": "5.0.1", "spdx-satisfies": "5.0.1",
"text-diff": "1.0.1",
"tsd": "0.29.0", "tsd": "0.29.0",
"tsx": "3.14.0", "tsx": "3.14.0",
"typescript": "5.2.2", "typescript": "5.2.2",
"wireit": "0.14.1", "wireit": "0.14.1"
"zod": "3.22.4"
} }
}, },
"node_modules/@aashutoshrathi/word-wrap": { "node_modules/@aashutoshrathi/word-wrap": {
@ -297,8 +273,7 @@
"node_modules/@bcoe/v8-coverage": { "node_modules/@bcoe/v8-coverage": {
"version": "0.2.3", "version": "0.2.3",
"resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz",
"integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw=="
"dev": true
}, },
"node_modules/@esbuild/android-arm": { "node_modules/@esbuild/android-arm": {
"version": "0.19.5", "version": "0.19.5",
@ -871,7 +846,6 @@
"version": "0.1.3", "version": "0.1.3",
"resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz",
"integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==",
"dev": true,
"engines": { "engines": {
"node": ">=8" "node": ">=8"
} }
@ -921,7 +895,6 @@
"version": "3.1.1", "version": "3.1.1",
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",
"integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==",
"dev": true,
"engines": { "engines": {
"node": ">=6.0.0" "node": ">=6.0.0"
} }
@ -935,7 +908,6 @@
"version": "0.3.20", "version": "0.3.20",
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz",
"integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==",
"dev": true,
"dependencies": { "dependencies": {
"@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/resolve-uri": "^3.1.0",
"@jridgewell/sourcemap-codec": "^1.4.14" "@jridgewell/sourcemap-codec": "^1.4.14"
@ -1326,7 +1298,6 @@
"version": "0.3.0", "version": "0.3.0",
"resolved": "https://registry.npmjs.org/@prettier/sync/-/sync-0.3.0.tgz", "resolved": "https://registry.npmjs.org/@prettier/sync/-/sync-0.3.0.tgz",
"integrity": "sha512-3dcmCyAxIcxy036h1I7MQU/uEEBq8oLwf1CE3xeze+MPlgkdlb/+w6rGR/1dhp6Hqi17fRS6nvwnOzkESxEkOw==", "integrity": "sha512-3dcmCyAxIcxy036h1I7MQU/uEEBq8oLwf1CE3xeze+MPlgkdlb/+w6rGR/1dhp6Hqi17fRS6nvwnOzkESxEkOw==",
"dev": true,
"funding": { "funding": {
"url": "https://github.com/prettier/prettier-synchronized?sponsor=1" "url": "https://github.com/prettier/prettier-synchronized?sponsor=1"
}, },
@ -1906,8 +1877,7 @@
"node_modules/@types/istanbul-lib-coverage": { "node_modules/@types/istanbul-lib-coverage": {
"version": "2.0.5", "version": "2.0.5",
"resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz",
"integrity": "sha512-zONci81DZYCZjiLe0r6equvZut0b+dBRPBN5kBDjsONnutYNtJMoWQ9uR2RkL1gLG9NMTzvf+29e5RFfPbeKhQ==", "integrity": "sha512-zONci81DZYCZjiLe0r6equvZut0b+dBRPBN5kBDjsONnutYNtJMoWQ9uR2RkL1gLG9NMTzvf+29e5RFfPbeKhQ=="
"dev": true
}, },
"node_modules/@types/istanbul-lib-report": { "node_modules/@types/istanbul-lib-report": {
"version": "3.0.2", "version": "3.0.2",
@ -2850,7 +2820,6 @@
"version": "8.0.1", "version": "8.0.1",
"resolved": "https://registry.npmjs.org/c8/-/c8-8.0.1.tgz", "resolved": "https://registry.npmjs.org/c8/-/c8-8.0.1.tgz",
"integrity": "sha512-EINpopxZNH1mETuI0DzRA4MZpAUH+IFiRhnmFD3vFr3vdrgxqi3VfE3KL0AIL+zDq8rC9bZqwM/VDmmoe04y7w==", "integrity": "sha512-EINpopxZNH1mETuI0DzRA4MZpAUH+IFiRhnmFD3vFr3vdrgxqi3VfE3KL0AIL+zDq8rC9bZqwM/VDmmoe04y7w==",
"dev": true,
"dependencies": { "dependencies": {
"@bcoe/v8-coverage": "^0.2.3", "@bcoe/v8-coverage": "^0.2.3",
"@istanbuljs/schema": "^0.1.3", "@istanbuljs/schema": "^0.1.3",
@ -3235,24 +3204,6 @@
"node": "^12.20.0 || >=14" "node": "^12.20.0 || >=14"
} }
}, },
"node_modules/commonmark": {
"version": "0.30.0",
"resolved": "https://registry.npmjs.org/commonmark/-/commonmark-0.30.0.tgz",
"integrity": "sha512-j1yoUo4gxPND1JWV9xj5ELih0yMv1iCWDG6eEQIPLSWLxzCXiFoyS7kvB+WwU+tZMf4snwJMMtaubV0laFpiBA==",
"dev": true,
"dependencies": {
"entities": "~2.0",
"mdurl": "~1.0.1",
"minimist": ">=1.2.2",
"string.prototype.repeat": "^0.2.0"
},
"bin": {
"commonmark": "bin/commonmark"
},
"engines": {
"node": "*"
}
},
"node_modules/concat-map": { "node_modules/concat-map": {
"version": "0.0.1", "version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
@ -3267,8 +3218,7 @@
"node_modules/convert-source-map": { "node_modules/convert-source-map": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
"integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg=="
"dev": true
}, },
"node_modules/cosmiconfig": { "node_modules/cosmiconfig": {
"version": "8.3.6", "version": "8.3.6",
@ -3590,7 +3540,6 @@
"version": "5.1.0", "version": "5.1.0",
"resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz",
"integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==", "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==",
"dev": true,
"engines": { "engines": {
"node": ">=0.3.1" "node": ">=0.3.1"
} }
@ -3679,12 +3628,6 @@
"node": ">=10.13.0" "node": ">=10.13.0"
} }
}, },
"node_modules/entities": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/entities/-/entities-2.0.3.tgz",
"integrity": "sha512-MyoZ0jgnLvB2X3Lg5HqpFmn1kybDiIfEQmKzTb5apr51Rb+T3KdmMiqa70T+bhGnyv7bQ6WMj2QMHpGMmlrUYQ==",
"dev": true
},
"node_modules/env-paths": { "node_modules/env-paths": {
"version": "2.2.1", "version": "2.2.1",
"resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
@ -4765,7 +4708,6 @@
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz",
"integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==", "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==",
"dev": true,
"dependencies": { "dependencies": {
"cross-spawn": "^7.0.0", "cross-spawn": "^7.0.0",
"signal-exit": "^3.0.2" "signal-exit": "^3.0.2"
@ -4777,8 +4719,7 @@
"node_modules/foreground-child/node_modules/signal-exit": { "node_modules/foreground-child/node_modules/signal-exit": {
"version": "3.0.7", "version": "3.0.7",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="
"dev": true
}, },
"node_modules/fs-extra": { "node_modules/fs-extra": {
"version": "7.0.1", "version": "7.0.1",
@ -5758,8 +5699,7 @@
"node_modules/html-escaper": { "node_modules/html-escaper": {
"version": "2.0.2", "version": "2.0.2",
"resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz",
"integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg=="
"dev": true
}, },
"node_modules/http-cache-semantics": { "node_modules/http-cache-semantics": {
"version": "4.1.1", "version": "4.1.1",
@ -6395,7 +6335,6 @@
"version": "3.2.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz",
"integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==",
"dev": true,
"engines": { "engines": {
"node": ">=8" "node": ">=8"
} }
@ -6404,7 +6343,6 @@
"version": "3.0.1", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz",
"integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==",
"dev": true,
"dependencies": { "dependencies": {
"istanbul-lib-coverage": "^3.0.0", "istanbul-lib-coverage": "^3.0.0",
"make-dir": "^4.0.0", "make-dir": "^4.0.0",
@ -6418,7 +6356,6 @@
"version": "3.1.6", "version": "3.1.6",
"resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz",
"integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==",
"dev": true,
"dependencies": { "dependencies": {
"html-escaper": "^2.0.0", "html-escaper": "^2.0.0",
"istanbul-lib-report": "^3.0.0" "istanbul-lib-report": "^3.0.0"
@ -6612,8 +6549,7 @@
"node_modules/jpeg-js": { "node_modules/jpeg-js": {
"version": "0.4.4", "version": "0.4.4",
"resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz", "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz",
"integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==", "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg=="
"dev": true
}, },
"node_modules/js-tokens": { "node_modules/js-tokens": {
"version": "4.0.0", "version": "4.0.0",
@ -6966,7 +6902,6 @@
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz",
"integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==",
"dev": true,
"dependencies": { "dependencies": {
"semver": "^7.5.3" "semver": "^7.5.3"
}, },
@ -7179,12 +7114,6 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/mdurl": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz",
"integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==",
"dev": true
},
"node_modules/memorystream": { "node_modules/memorystream": {
"version": "0.3.1", "version": "0.3.1",
"resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz",
@ -7305,7 +7234,6 @@
"version": "3.1.2", "version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
"dev": true,
"dependencies": { "dependencies": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
}, },
@ -8840,7 +8768,6 @@
"version": "5.3.0", "version": "5.3.0",
"resolved": "https://registry.npmjs.org/pixelmatch/-/pixelmatch-5.3.0.tgz", "resolved": "https://registry.npmjs.org/pixelmatch/-/pixelmatch-5.3.0.tgz",
"integrity": "sha512-o8mkY4E/+LNUf6LzX96ht6k6CEDi65k9G2rjMtBe9Oo+VPKSvl+0GKHuH/AlG+GA5LPG/i5hrekkxUc3s2HU+Q==", "integrity": "sha512-o8mkY4E/+LNUf6LzX96ht6k6CEDi65k9G2rjMtBe9Oo+VPKSvl+0GKHuH/AlG+GA5LPG/i5hrekkxUc3s2HU+Q==",
"dev": true,
"dependencies": { "dependencies": {
"pngjs": "^6.0.0" "pngjs": "^6.0.0"
}, },
@ -8852,7 +8779,6 @@
"version": "6.0.0", "version": "6.0.0",
"resolved": "https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz", "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz",
"integrity": "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==", "integrity": "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==",
"dev": true,
"engines": { "engines": {
"node": ">=12.13.0" "node": ">=12.13.0"
} }
@ -8966,7 +8892,6 @@
"version": "7.0.0", "version": "7.0.0",
"resolved": "https://registry.npmjs.org/pngjs/-/pngjs-7.0.0.tgz", "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-7.0.0.tgz",
"integrity": "sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==", "integrity": "sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==",
"dev": true,
"engines": { "engines": {
"node": ">=14.19.0" "node": ">=14.19.0"
} }
@ -8984,7 +8909,6 @@
"version": "3.0.3", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz",
"integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==",
"dev": true,
"bin": { "bin": {
"prettier": "bin/prettier.cjs" "prettier": "bin/prettier.cjs"
}, },
@ -9804,7 +9728,6 @@
"version": "3.0.2", "version": "3.0.2",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
"integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
"dev": true,
"dependencies": { "dependencies": {
"glob": "^7.1.3" "glob": "^7.1.3"
}, },
@ -9819,7 +9742,6 @@
"version": "7.2.3", "version": "7.2.3",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
"integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
"dev": true,
"dependencies": { "dependencies": {
"fs.realpath": "^1.0.0", "fs.realpath": "^1.0.0",
"inflight": "^1.0.4", "inflight": "^1.0.4",
@ -10517,12 +10439,6 @@
"url": "https://github.com/sponsors/ljharb" "url": "https://github.com/sponsors/ljharb"
} }
}, },
"node_modules/string.prototype.repeat": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-0.2.0.tgz",
"integrity": "sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==",
"dev": true
},
"node_modules/string.prototype.trim": { "node_modules/string.prototype.trim": {
"version": "1.2.8", "version": "1.2.8",
"resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz",
@ -10805,7 +10721,6 @@
"version": "6.0.0", "version": "6.0.0",
"resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz",
"integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==",
"dev": true,
"dependencies": { "dependencies": {
"@istanbuljs/schema": "^0.1.2", "@istanbuljs/schema": "^0.1.2",
"glob": "^7.1.4", "glob": "^7.1.4",
@ -10819,7 +10734,6 @@
"version": "7.2.3", "version": "7.2.3",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
"integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
"dev": true,
"dependencies": { "dependencies": {
"fs.realpath": "^1.0.0", "fs.realpath": "^1.0.0",
"inflight": "^1.0.4", "inflight": "^1.0.4",
@ -10835,12 +10749,6 @@
"url": "https://github.com/sponsors/isaacs" "url": "https://github.com/sponsors/isaacs"
} }
}, },
"node_modules/text-diff": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/text-diff/-/text-diff-1.0.1.tgz",
"integrity": "sha512-jAnlP3ggZk7FeLX1awaMR8Y2sMyil9P9FXvNjaIJIQBAom1zvpKGGH31htOVrUFp0vlyygmJJpNrbJ4rfjsxrA==",
"dev": true
},
"node_modules/text-table": { "node_modules/text-table": {
"version": "0.2.0", "version": "0.2.0",
"resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
@ -11732,7 +11640,6 @@
"version": "9.1.3", "version": "9.1.3",
"resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.3.tgz", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.3.tgz",
"integrity": "sha512-9lDD+EVI2fjFsMWXc6dy5JJzBsVTcQ2fVkfBvncZ6xJWG9wtBhOldG+mHkSL0+V1K/xgZz0JDO5UT5hFwHUghg==", "integrity": "sha512-9lDD+EVI2fjFsMWXc6dy5JJzBsVTcQ2fVkfBvncZ6xJWG9wtBhOldG+mHkSL0+V1K/xgZz0JDO5UT5hFwHUghg==",
"dev": true,
"dependencies": { "dependencies": {
"@jridgewell/trace-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.12",
"@types/istanbul-lib-coverage": "^2.0.1", "@types/istanbul-lib-coverage": "^2.0.1",
@ -12091,7 +11998,6 @@
"version": "3.22.4", "version": "3.22.4",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz",
"integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==", "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==",
"dev": true,
"funding": { "funding": {
"url": "https://github.com/sponsors/colinhacks" "url": "https://github.com/sponsors/colinhacks"
} }
@ -12112,6 +12018,13 @@
"bin": { "bin": {
"browsers": "lib/cjs/main-cli.js" "browsers": "lib/cjs/main-cli.js"
}, },
"devDependencies": {
"@types/debug": "4.1.10",
"@types/progress": "2.0.6",
"@types/tar-fs": "2.0.3",
"@types/unbzip2-stream": "1.4.2",
"@types/yargs": "17.0.29"
},
"engines": { "engines": {
"node": ">=16.3.0" "node": ">=16.3.0"
} }
@ -12169,7 +12082,9 @@
"ws": "8.14.2" "ws": "8.14.2"
}, },
"devDependencies": { "devDependencies": {
"@types/debug": "4.1.10",
"@types/node": "18.17.15", "@types/node": "18.17.15",
"@types/ws": "8.5.8",
"mitt": "3.0.1", "mitt": "3.0.1",
"parsel-js": "1.1.2", "parsel-js": "1.1.2",
"rxjs": "7.8.1" "rxjs": "7.8.1"
@ -12197,14 +12112,27 @@
"dependencies": { "dependencies": {
"mime": "3.0.0", "mime": "3.0.0",
"ws": "8.14.2" "ws": "8.14.2"
},
"devDependencies": {
"@types/mime": "3.0.3"
} }
}, },
"test": { "test": {
"name": "@puppeteer-test/test", "name": "@puppeteer-test/test",
"version": "latest", "version": "latest",
"dependencies": { "dependencies": {
"@pptr/testserver": "file:../packages/testserver",
"diff": "5.1.0",
"jpeg-js": "0.4.4",
"pixelmatch": "5.3.0",
"pngjs": "7.0.0",
"puppeteer": "file:../packages/puppeteer", "puppeteer": "file:../packages/puppeteer",
"puppeteer-core": "file:../packages/puppeteer-core" "puppeteer-core": "file:../packages/puppeteer-core"
},
"devDependencies": {
"@types/diff": "5.0.7",
"@types/pixelmatch": "5.2.5",
"@types/pngjs": "6.0.3"
} }
}, },
"test/installation": { "test/installation": {
@ -12245,20 +12173,27 @@
}, },
"devDependencies": { "devDependencies": {
"@types/doctrine": "0.0.8", "@types/doctrine": "0.0.8",
"@types/source-map-support": "0.5.9" "@types/source-map-support": "0.5.9",
"@types/yargs": "17.0.29"
} }
}, },
"tools/eslint": { "tools/eslint": {
"name": "@puppeteer/eslint", "name": "@puppeteer/eslint",
"version": "0.1.0", "version": "0.1.0",
"license": "Apache-2.0" "license": "Apache-2.0",
"dependencies": {
"@prettier/sync": "0.3.0"
}
}, },
"tools/mocha-runner": { "tools/mocha-runner": {
"name": "@puppeteer/mocha-runner", "name": "@puppeteer/mocha-runner",
"version": "0.1.0", "version": "0.1.0",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"puppeteer-core": "file:../../packages/puppeteer-core" "c8": "8.0.1",
"glob": "10.3.10",
"puppeteer-core": "file:../../packages/puppeteer-core",
"zod": "3.22.4"
}, },
"bin": { "bin": {
"mocha-runner": "bin/mocha-runner.js" "mocha-runner": "bin/mocha-runner.js"

View File

@ -17,7 +17,6 @@
"format:eslint": "eslint --ext js --ext ts --fix .", "format:eslint": "eslint --ext js --ext ts --fix .",
"format:expectations": "node tools/sort-test-expectations.js", "format:expectations": "node tools/sort-test-expectations.js",
"format:prettier": "prettier --write .", "format:prettier": "prettier --write .",
"generate:markdown": "tsx tools/generate_docs.ts",
"lint": "run-s lint:*", "lint": "run-s lint:*",
"lint:eslint": "([ \"$CI\" = true ] && eslint --ext js --ext ts --quiet -f codeframe . || eslint --ext js --ext ts .)", "lint:eslint": "([ \"$CI\" = true ] && eslint --ext js --ext ts --quiet -f codeframe . || eslint --ext js --ext ts .)",
"lint:prettier": "prettier --check .", "lint:prettier": "prettier --check .",
@ -119,27 +118,13 @@
"@microsoft/api-extractor": "7.38.2", "@microsoft/api-extractor": "7.38.2",
"@pptr/testserver": "file:packages/testserver", "@pptr/testserver": "file:packages/testserver",
"@puppeteer/docgen": "file:tools/docgen", "@puppeteer/docgen": "file:tools/docgen",
"@prettier/sync": "0.3.0",
"@types/debug": "4.1.10",
"@types/diff": "5.0.7",
"@types/mime": "3.0.3",
"@types/mocha": "10.0.3", "@types/mocha": "10.0.3",
"@types/node": "20.8.4", "@types/node": "20.8.4",
"@types/pixelmatch": "5.2.5",
"@types/pngjs": "6.0.3",
"@types/progress": "2.0.6",
"@types/semver": "7.5.4", "@types/semver": "7.5.4",
"@types/sinon": "17.0.0", "@types/sinon": "17.0.0",
"@types/tar-fs": "2.0.3",
"@types/unbzip2-stream": "1.4.2",
"@types/ws": "8.5.8",
"@types/yargs": "17.0.29",
"@typescript-eslint/eslint-plugin": "6.9.1", "@typescript-eslint/eslint-plugin": "6.9.1",
"@typescript-eslint/parser": "6.9.1", "@typescript-eslint/parser": "6.9.1",
"c8": "8.0.1",
"commonmark": "0.30.0",
"cross-env": "7.0.3", "cross-env": "7.0.3",
"diff": "5.1.0",
"esbuild": "0.19.5", "esbuild": "0.19.5",
"eslint": "8.53.0", "eslint": "8.53.0",
"eslint-config-prettier": "9.0.0", "eslint-config-prettier": "9.0.0",
@ -153,31 +138,21 @@
"eslint-plugin-rulesdir": "0.2.2", "eslint-plugin-rulesdir": "0.2.2",
"eslint-plugin-tsdoc": "0.2.17", "eslint-plugin-tsdoc": "0.2.17",
"eslint-plugin-unused-imports": "3.0.0", "eslint-plugin-unused-imports": "3.0.0",
"esprima": "4.0.1",
"expect": "29.7.0", "expect": "29.7.0",
"glob": "10.3.10",
"gts": "5.2.0", "gts": "5.2.0",
"jpeg-js": "0.4.4",
"license-checker": "25.0.1", "license-checker": "25.0.1",
"mime": "3.0.0",
"minimist": "1.2.8",
"mocha": "10.2.0", "mocha": "10.2.0",
"ncp": "2.0.0",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",
"pixelmatch": "5.3.0",
"pngjs": "7.0.0",
"prettier": "3.0.3", "prettier": "3.0.3",
"puppeteer": "file:packages/puppeteer", "puppeteer": "file:packages/puppeteer",
"semver": "7.5.4", "semver": "7.5.4",
"sinon": "17.0.1", "sinon": "17.0.1",
"source-map-support": "0.5.21", "source-map-support": "0.5.21",
"spdx-satisfies": "5.0.1", "spdx-satisfies": "5.0.1",
"text-diff": "1.0.1",
"tsd": "0.29.0", "tsd": "0.29.0",
"tsx": "3.14.0", "tsx": "3.14.0",
"typescript": "5.2.2", "typescript": "5.2.2",
"wireit": "0.14.1", "wireit": "0.14.1"
"zod": "3.22.4"
}, },
"overrides": { "overrides": {
"@microsoft/api-extractor": { "@microsoft/api-extractor": {

View File

@ -101,5 +101,12 @@
"tar-fs": "3.0.4", "tar-fs": "3.0.4",
"unbzip2-stream": "1.4.3", "unbzip2-stream": "1.4.3",
"yargs": "17.7.2" "yargs": "17.7.2"
},
"devDependencies": {
"@types/debug": "4.1.10",
"@types/progress": "2.0.6",
"@types/tar-fs": "2.0.3",
"@types/unbzip2-stream": "1.4.2",
"@types/yargs": "17.0.29"
} }
} }

View File

@ -16,6 +16,6 @@
export const testChromeBuildId = '113.0.5672.0'; export const testChromeBuildId = '113.0.5672.0';
export const testChromiumBuildId = '1083080'; export const testChromiumBuildId = '1083080';
export const testFirefoxBuildId = '120.0a1'; export const testFirefoxBuildId = '121.0a1';
export const testChromeDriverBuildId = '115.0.5763.0'; export const testChromeDriverBuildId = '115.0.5763.0';
export const testChromeHeadlessShellBuildId = '118.0.5950.0'; export const testChromeHeadlessShellBuildId = '118.0.5950.0';

View File

@ -126,7 +126,9 @@
"ws": "8.14.2" "ws": "8.14.2"
}, },
"devDependencies": { "devDependencies": {
"@types/debug": "4.1.10",
"@types/node": "18.17.15", "@types/node": "18.17.15",
"@types/ws": "8.5.8",
"mitt": "3.0.1", "mitt": "3.0.1",
"parsel-js": "1.1.2", "parsel-js": "1.1.2",
"rxjs": "7.8.1" "rxjs": "7.8.1"

View File

@ -29,5 +29,8 @@
"dependencies": { "dependencies": {
"mime": "3.0.0", "mime": "3.0.0",
"ws": "8.14.2" "ws": "8.14.2"
},
"devDependencies": {
"@types/mime": "3.0.3"
} }
} }

View File

@ -24,7 +24,17 @@
} }
}, },
"dependencies": { "dependencies": {
"@pptr/testserver": "file:../packages/testserver",
"diff": "5.1.0",
"jpeg-js": "0.4.4",
"pixelmatch": "5.3.0",
"pngjs": "7.0.0",
"puppeteer-core": "file:../packages/puppeteer-core", "puppeteer-core": "file:../packages/puppeteer-core",
"puppeteer": "file:../packages/puppeteer" "puppeteer": "file:../packages/puppeteer"
},
"devDependencies": {
"@types/diff": "5.0.7",
"@types/pixelmatch": "5.2.5",
"@types/pngjs": "6.0.3"
} }
} }

View File

@ -35,6 +35,7 @@
}, },
"devDependencies": { "devDependencies": {
"@types/doctrine": "0.0.8", "@types/doctrine": "0.0.8",
"@types/source-map-support": "0.5.9" "@types/source-map-support": "0.5.9",
"@types/yargs": "17.0.29"
} }
} }

View File

@ -30,5 +30,8 @@
} }
}, },
"author": "The Chromium Authors", "author": "The Chromium Authors",
"license": "Apache-2.0" "license": "Apache-2.0",
"dependencies": {
"@prettier/sync": "0.3.0"
}
} }

View File

@ -1,43 +0,0 @@
const fs = require('fs');
const data = JSON.parse(fs.readFileSync('./test/TestSuites.json', 'utf-8'));
/**
* @param {string} platform
* @returns {string}
*/
function mapPlatform(platform) {
switch (platform) {
case 'linux':
return 'ubuntu-latest';
case 'win32':
return 'windows-latest';
case 'darwin':
return 'macos-latest';
default:
throw new Error('Unsupported platform');
}
}
const result = [];
for (const suite of data.testSuites) {
for (const platform of suite.platforms) {
if (platform === 'linux' && suite.id !== 'firefox-bidi') {
for (const node of [14, 16, 18]) {
result.push(`- name: ${suite.id}
machine: ${mapPlatform(platform)}
xvfb: true
node: ${node}
suite: ${suite.id}`);
}
} else {
result.push(`- name: ${suite.id}
machine: ${mapPlatform(platform)}
xvfb: ${platform === 'linux'}
node: 18
suite: ${suite.id}`);
}
}
}
console.log(result.join('\n'));

View File

@ -34,6 +34,9 @@
} }
}, },
"dependencies": { "dependencies": {
"puppeteer-core": "file:../../packages/puppeteer-core" "c8": "8.0.1",
"glob": "10.3.10",
"puppeteer-core": "file:../../packages/puppeteer-core",
"zod": "3.22.4"
} }
} }

View File

@ -1,26 +0,0 @@
/**
* Copyright 2020 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const fs = require('fs');
const json = fs.readFileSync('./package.json', 'utf8').toString();
const pkg = JSON.parse(json);
const oldVersion = pkg.version;
const version = oldVersion.replace(/-post$/, '');
const updated = json.replace(
`"version": "${oldVersion}"`,
`"version": "${version}"`
);
fs.writeFileSync('./package.json', updated);