2022-10-05 12:17:03 +00:00
|
|
|
{
|
|
|
|
"name": "puppeteer-core",
|
2023-08-28 13:34:38 +00:00
|
|
|
"version": "21.1.1",
|
2022-10-05 12:17:03 +00:00
|
|
|
"description": "A high-level API to control headless Chrome over the DevTools Protocol",
|
|
|
|
"keywords": [
|
|
|
|
"puppeteer",
|
|
|
|
"chrome",
|
|
|
|
"headless",
|
|
|
|
"automation"
|
|
|
|
],
|
|
|
|
"type": "commonjs",
|
|
|
|
"main": "./lib/cjs/puppeteer/puppeteer-core.js",
|
|
|
|
"types": "./lib/types.d.ts",
|
|
|
|
"exports": {
|
|
|
|
".": {
|
|
|
|
"types": "./lib/types.d.ts",
|
|
|
|
"import": "./lib/esm/puppeteer/puppeteer-core.js",
|
|
|
|
"require": "./lib/cjs/puppeteer/puppeteer-core.js"
|
|
|
|
},
|
|
|
|
"./internal/*": {
|
|
|
|
"import": "./lib/esm/puppeteer/*",
|
|
|
|
"require": "./lib/cjs/puppeteer/*"
|
|
|
|
},
|
|
|
|
"./*": {
|
|
|
|
"import": "./*",
|
|
|
|
"require": "./*"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core"
|
|
|
|
},
|
|
|
|
"engines": {
|
2023-05-26 07:37:05 +00:00
|
|
|
"node": ">=16.3.0"
|
2022-10-05 12:17:03 +00:00
|
|
|
},
|
|
|
|
"scripts": {
|
2023-02-13 18:22:43 +00:00
|
|
|
"build:docs": "wireit",
|
2022-10-05 12:17:03 +00:00
|
|
|
"build:tsc": "wireit",
|
|
|
|
"build:types": "wireit",
|
|
|
|
"build": "wireit",
|
|
|
|
"check": "tsx tools/ensure-correct-devtools-protocol-package",
|
2023-03-06 10:33:38 +00:00
|
|
|
"clean": "tsc -b --clean && rm -rf lib src/generated",
|
2022-10-05 12:17:03 +00:00
|
|
|
"generate:package-json": "wireit",
|
2022-10-06 07:13:54 +00:00
|
|
|
"generate:sources": "wireit",
|
2023-06-26 08:57:48 +00:00
|
|
|
"prepack": "wireit",
|
|
|
|
"unit": "wireit"
|
2022-10-05 12:17:03 +00:00
|
|
|
},
|
|
|
|
"wireit": {
|
2022-10-14 11:37:07 +00:00
|
|
|
"prepack": {
|
2023-04-14 08:51:35 +00:00
|
|
|
"command": "tsx ../../tools/cp.ts ../../README.md README.md",
|
2022-10-14 11:37:07 +00:00
|
|
|
"files": [
|
|
|
|
"../../README.md"
|
|
|
|
],
|
|
|
|
"output": [
|
|
|
|
"README.md"
|
|
|
|
]
|
|
|
|
},
|
2022-10-05 12:17:03 +00:00
|
|
|
"build": {
|
|
|
|
"dependencies": [
|
2023-01-30 12:30:49 +00:00
|
|
|
"build:tsc",
|
2023-02-13 18:22:43 +00:00
|
|
|
"build:types"
|
2022-10-05 12:17:03 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"generate:sources": {
|
|
|
|
"command": "tsx tools/generate_sources.ts",
|
2023-02-10 17:57:17 +00:00
|
|
|
"clean": "if-file-deleted",
|
2022-10-05 12:17:03 +00:00
|
|
|
"files": [
|
2023-02-10 17:57:17 +00:00
|
|
|
"../../versions.js",
|
2023-02-13 14:50:44 +00:00
|
|
|
"src/{injected,templates}/**",
|
2023-02-10 17:57:17 +00:00
|
|
|
"tools/generate_sources.ts"
|
2022-10-05 12:17:03 +00:00
|
|
|
],
|
|
|
|
"output": [
|
2023-02-10 17:57:17 +00:00
|
|
|
"src/generated/*.ts"
|
2022-10-05 12:17:03 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"generate:package-json": {
|
2022-12-19 14:54:58 +00:00
|
|
|
"command": "tsx ../../tools/generate_module_package_json.ts lib/esm/package.json",
|
2023-02-10 17:57:17 +00:00
|
|
|
"files": [
|
|
|
|
"../../tools/generate_module_package_json.ts"
|
|
|
|
],
|
2022-10-05 12:17:03 +00:00
|
|
|
"output": [
|
|
|
|
"lib/esm/package.json"
|
|
|
|
]
|
|
|
|
},
|
2023-01-30 12:30:49 +00:00
|
|
|
"build:docs": {
|
|
|
|
"command": "api-extractor run --local --config \"./api-extractor.docs.json\"",
|
2023-02-10 17:57:17 +00:00
|
|
|
"files": [
|
|
|
|
"api-extractor.docs.json",
|
2023-02-13 18:22:43 +00:00
|
|
|
"lib/esm/puppeteer/puppeteer-core.d.ts",
|
|
|
|
"tsconfig.json"
|
2023-02-10 17:57:17 +00:00
|
|
|
],
|
2023-01-30 12:30:49 +00:00
|
|
|
"dependencies": [
|
|
|
|
"build:tsc"
|
|
|
|
]
|
|
|
|
},
|
2023-02-13 18:22:43 +00:00
|
|
|
"build:tsc": {
|
|
|
|
"command": "tsc -b && rollup --config rollup.third_party.config.mjs",
|
|
|
|
"clean": "if-file-deleted",
|
2022-10-05 12:17:03 +00:00
|
|
|
"dependencies": [
|
2023-02-13 18:22:43 +00:00
|
|
|
"generate:package-json",
|
2023-04-04 13:29:21 +00:00
|
|
|
"generate:sources",
|
|
|
|
"../browsers:build"
|
2022-10-05 12:17:03 +00:00
|
|
|
],
|
|
|
|
"files": [
|
2023-02-13 18:22:43 +00:00
|
|
|
"{compat,src,third_party}/**",
|
|
|
|
"rollup.third_party.config.mjs"
|
2022-10-05 12:17:03 +00:00
|
|
|
],
|
|
|
|
"output": [
|
2023-02-13 18:22:43 +00:00
|
|
|
"lib/{cjs,esm}/**",
|
|
|
|
"!lib/esm/package.json"
|
2022-10-05 12:17:03 +00:00
|
|
|
]
|
|
|
|
},
|
2023-02-13 18:22:43 +00:00
|
|
|
"build:types": {
|
|
|
|
"command": "api-extractor run --local && eslint --cache-location .eslintcache --cache --ext=ts --no-ignore --no-eslintrc -c=../../.eslintrc.types.cjs --fix lib/types.d.ts",
|
2022-10-05 12:17:03 +00:00
|
|
|
"files": [
|
2023-02-13 18:22:43 +00:00
|
|
|
"../../.eslintrc.types.cjs",
|
|
|
|
"api-extractor.json",
|
|
|
|
"lib/esm/puppeteer/types.d.ts",
|
|
|
|
"tsconfig.json"
|
2022-10-05 12:17:03 +00:00
|
|
|
],
|
|
|
|
"output": [
|
2023-02-13 18:22:43 +00:00
|
|
|
"lib/types.d.ts"
|
|
|
|
],
|
|
|
|
"dependencies": [
|
|
|
|
"build:tsc"
|
2022-10-05 12:17:03 +00:00
|
|
|
]
|
2023-06-26 08:57:48 +00:00
|
|
|
},
|
|
|
|
"unit": {
|
|
|
|
"command": "node --test --test-reporter spec lib/cjs",
|
|
|
|
"dependencies": [
|
|
|
|
"build"
|
|
|
|
]
|
2022-10-05 12:17:03 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"files": [
|
|
|
|
"lib",
|
2023-06-19 11:28:35 +00:00
|
|
|
"src",
|
2023-06-26 08:57:48 +00:00
|
|
|
"!*.test.js",
|
2023-07-07 09:22:29 +00:00
|
|
|
"!*.test.d.ts",
|
|
|
|
"!*.test.js.map",
|
|
|
|
"!*.test.d.ts.map",
|
2022-10-05 12:17:03 +00:00
|
|
|
"!*.tsbuildinfo"
|
|
|
|
],
|
|
|
|
"author": "The Chromium Authors",
|
|
|
|
"license": "Apache-2.0",
|
|
|
|
"dependencies": {
|
2023-08-29 14:33:54 +00:00
|
|
|
"@puppeteer/browsers": "1.7.0",
|
2023-08-24 09:49:25 +00:00
|
|
|
"chromium-bidi": "0.4.22",
|
2023-07-04 15:25:48 +00:00
|
|
|
"cross-fetch": "4.0.0",
|
2022-10-05 12:17:03 +00:00
|
|
|
"debug": "4.3.4",
|
2023-08-16 07:32:24 +00:00
|
|
|
"devtools-protocol": "0.0.1159816",
|
2023-08-29 14:33:54 +00:00
|
|
|
"ws": "8.13.0"
|
2023-02-03 07:56:10 +00:00
|
|
|
},
|
2023-03-06 09:56:52 +00:00
|
|
|
"devDependencies": {
|
2023-08-29 14:33:54 +00:00
|
|
|
"disposablestack": "1.1.1",
|
2023-08-21 18:13:03 +00:00
|
|
|
"mitt": "3.0.1",
|
2023-08-29 14:33:54 +00:00
|
|
|
"parsel-js": "1.1.2",
|
|
|
|
"rxjs": "7.8.1"
|
2022-10-05 12:17:03 +00:00
|
|
|
}
|
|
|
|
}
|