1 | {
|
2 | "name": "puppeteer",
|
3 | "version": "5.3.0",
|
4 | "description": "A high-level API to control headless Chrome over the DevTools Protocol",
|
5 | "main": "./cjs-entry.js",
|
6 | "repository": "github:puppeteer/puppeteer",
|
7 | "engines": {
|
8 | "node": ">=10.18.1"
|
9 | },
|
10 | "scripts": {
|
11 | "test-browser": "wtr",
|
12 | "test-browser-watch": "wtr --watch",
|
13 | "unit": "npm run tsc-cjs && mocha --config mocha-config/puppeteer-unit-tests.js",
|
14 | "unit-debug": "npm run tsc-cjs && mocha --inspect-brk --config mocha-config/puppeteer-unit-tests.js",
|
15 | "unit-with-coverage": "cross-env COVERAGE=1 npm run unit",
|
16 | "assert-unit-coverage": "cross-env COVERAGE=1 mocha --config mocha-config/coverage-tests.js",
|
17 | "funit": "PUPPETEER_PRODUCT=firefox npm run unit",
|
18 | "test": "npm run tsc && npm run lint --silent && npm run unit-with-coverage && npm run test-browser && npm run test-types",
|
19 | "prepare": "node typescript-if-required.js",
|
20 | "prepublishOnly": "npm run tsc",
|
21 | "dev-install": "npm run tsc && node install.js",
|
22 | "install": "node install.js",
|
23 | "eslint": "([ \"$CI\" = true ] && eslint --ext js --ext ts --quiet -f codeframe . || eslint --ext js --ext ts .)",
|
24 | "eslint-fix": "eslint --ext js --ext ts --fix .",
|
25 | "lint": "npm run eslint && npm run tsc && npm run doc",
|
26 | "doc": "node utils/doclint/cli.js",
|
27 | "clean-lib": "rm -rf lib",
|
28 | "tsc": "npm run clean-lib && tsc --version && npm run tsc-cjs && npm run tsc-esm",
|
29 | "tsc-cjs": "tsc -b src/tsconfig.cjs.json",
|
30 | "tsc-esm": "tsc -b src/tsconfig.esm.json",
|
31 | "apply-next-version": "node utils/apply_next_version.js",
|
32 | "test-install": "scripts/test-install.sh",
|
33 | "generate-docs": "npm run tsc && api-extractor run --local --verbose && api-documenter markdown -i temp -o new-docs",
|
34 | "ensure-new-docs-up-to-date": "npm run generate-docs && git status && exit `git status --porcelain | head -255 | wc -l`",
|
35 | "generate-dependency-graph": "echo 'Requires graphviz installed locally!' && depcruise --exclude 'api.ts' --do-not-follow '^node_modules' --output-type dot src/index.ts | dot -T png > dependency-chart.png",
|
36 | "ensure-correct-devtools-protocol-revision": "ts-node scripts/ensure-correct-devtools-protocol-package"
|
37 | },
|
38 | "files": [
|
39 | "lib/",
|
40 | "install.js",
|
41 | "typescript-if-required.js",
|
42 | "cjs-entry.js",
|
43 | "cjs-entry-core.js"
|
44 | ],
|
45 | "author": "The Chromium Authors",
|
46 | "license": "Apache-2.0",
|
47 | "dependencies": {
|
48 | "debug": "^4.1.0",
|
49 | "devtools-protocol": "0.0.799653",
|
50 | "extract-zip": "^2.0.0",
|
51 | "https-proxy-agent": "^4.0.0",
|
52 | "mime": "^2.0.3",
|
53 | "pkg-dir": "^4.2.0",
|
54 | "progress": "^2.0.1",
|
55 | "proxy-from-env": "^1.0.0",
|
56 | "rimraf": "^3.0.2",
|
57 | "tar-fs": "^2.0.0",
|
58 | "unbzip2-stream": "^1.3.3",
|
59 | "ws": "^7.2.3"
|
60 | },
|
61 | "devDependencies": {
|
62 | "@microsoft/api-documenter": "7.8.14",
|
63 | "@microsoft/api-extractor": "7.8.12",
|
64 | "@types/debug": "0.0.31",
|
65 | "@types/mime": "^2.0.0",
|
66 | "@types/mocha": "^7.0.2",
|
67 | "@types/node": "^14.0.13",
|
68 | "@types/proxy-from-env": "^1.0.1",
|
69 | "@types/rimraf": "^2.0.2",
|
70 | "@types/sinon": "^9.0.4",
|
71 | "@types/tar-fs": "^1.16.2",
|
72 | "@types/ws": "^7.2.4",
|
73 | "@typescript-eslint/eslint-plugin": "^2.28.0",
|
74 | "@typescript-eslint/parser": "^2.28.0",
|
75 | "@web/test-runner": "^0.6.40",
|
76 | "commonmark": "^0.28.1",
|
77 | "cross-env": "^5.0.5",
|
78 | "dependency-cruiser": "^9.7.0",
|
79 | "eslint": "^6.8.0",
|
80 | "eslint-config-prettier": "^6.11.0",
|
81 | "eslint-plugin-import": "^2.22.0",
|
82 | "eslint-plugin-mocha": "^6.3.0",
|
83 | "eslint-plugin-prettier": "^3.1.3",
|
84 | "eslint-plugin-unicorn": "^19.0.1",
|
85 | "esprima": "^4.0.0",
|
86 | "expect": "^25.2.7",
|
87 | "jpeg-js": "^0.3.7",
|
88 | "minimist": "^1.2.0",
|
89 | "mocha": "^8.0.1",
|
90 | "ncp": "^2.0.0",
|
91 | "pixelmatch": "^4.0.2",
|
92 | "pngjs": "^5.0.0",
|
93 | "prettier": "^2.0.5",
|
94 | "sinon": "^9.0.2",
|
95 | "text-diff": "^1.0.1",
|
96 | "ts-node": "^8.10.2",
|
97 | "typescript": "3.9.5"
|
98 | },
|
99 | "browser": {
|
100 | "./lib/BrowserFetcher.js": false,
|
101 | "ws": "./utils/browser/WebSocket",
|
102 | "fs": false,
|
103 | "child_process": false,
|
104 | "rimraf": false,
|
105 | "readline": false
|
106 | }
|
107 | }
|