@depup/puppeteer 24.40.0-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/changes.json +18 -0
- package/install.mjs +43 -0
- package/lib/cjs/puppeteer/getConfiguration.d.ts +11 -0
- package/lib/cjs/puppeteer/getConfiguration.d.ts.map +1 -0
- package/lib/cjs/puppeteer/getConfiguration.js +126 -0
- package/lib/cjs/puppeteer/getConfiguration.js.map +1 -0
- package/lib/cjs/puppeteer/node/cli.d.ts +8 -0
- package/lib/cjs/puppeteer/node/cli.d.ts.map +1 -0
- package/lib/cjs/puppeteer/node/cli.js +51 -0
- package/lib/cjs/puppeteer/node/cli.js.map +1 -0
- package/lib/cjs/puppeteer/node/install.d.ts +10 -0
- package/lib/cjs/puppeteer/node/install.d.ts.map +1 -0
- package/lib/cjs/puppeteer/node/install.js +122 -0
- package/lib/cjs/puppeteer/node/install.js.map +1 -0
- package/lib/cjs/puppeteer/puppeteer.d.ts +38 -0
- package/lib/cjs/puppeteer/puppeteer.d.ts.map +1 -0
- package/lib/cjs/puppeteer/puppeteer.js +56 -0
- package/lib/cjs/puppeteer/puppeteer.js.map +1 -0
- package/lib/esm/package.json +1 -0
- package/lib/esm/puppeteer/getConfiguration.d.ts +11 -0
- package/lib/esm/puppeteer/getConfiguration.d.ts.map +1 -0
- package/lib/esm/puppeteer/getConfiguration.js +122 -0
- package/lib/esm/puppeteer/getConfiguration.js.map +1 -0
- package/lib/esm/puppeteer/node/cli.d.ts +8 -0
- package/lib/esm/puppeteer/node/cli.d.ts.map +1 -0
- package/lib/esm/puppeteer/node/cli.js +46 -0
- package/lib/esm/puppeteer/node/cli.js.map +1 -0
- package/lib/esm/puppeteer/node/install.d.ts +10 -0
- package/lib/esm/puppeteer/node/install.d.ts.map +1 -0
- package/lib/esm/puppeteer/node/install.js +119 -0
- package/lib/esm/puppeteer/node/install.js.map +1 -0
- package/lib/esm/puppeteer/puppeteer.d.ts +38 -0
- package/lib/esm/puppeteer/puppeteer.d.ts.map +1 -0
- package/lib/esm/puppeteer/puppeteer.js +40 -0
- package/lib/esm/puppeteer/puppeteer.js.map +1 -0
- package/lib/types.d.ts +80 -0
- package/package.json +171 -0
- package/src/getConfiguration.ts +166 -0
- package/src/node/cli.ts +61 -0
- package/src/node/install.ts +167 -0
- package/src/puppeteer.ts +47 -0
- package/src/tsconfig.cjs.json +8 -0
- package/src/tsconfig.esm.json +6 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @depup/puppeteer
|
|
2
|
+
|
|
3
|
+
> Dependency-bumped version of [puppeteer](https://www.npmjs.com/package/puppeteer)
|
|
4
|
+
|
|
5
|
+
Generated by [DepUp](https://github.com/depup/npm) -- all production
|
|
6
|
+
dependencies bumped to latest versions.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @depup/puppeteer
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
| Field | Value |
|
|
15
|
+
|-------|-------|
|
|
16
|
+
| Original | [puppeteer](https://www.npmjs.com/package/puppeteer) @ 24.40.0 |
|
|
17
|
+
| Processed | 2026-03-19 |
|
|
18
|
+
| Smoke test | passed |
|
|
19
|
+
| Deps updated | 3 |
|
|
20
|
+
|
|
21
|
+
## Dependency Changes
|
|
22
|
+
|
|
23
|
+
| Dependency | From | To |
|
|
24
|
+
|------------|------|-----|
|
|
25
|
+
| chromium-bidi | 14.0.0 | ^15.0.0 |
|
|
26
|
+
| cosmiconfig | ^9.0.0 | ^9.0.1 |
|
|
27
|
+
| devtools-protocol | 0.0.1581282 | ^0.0.1601756 |
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
Source: https://github.com/depup/npm | Original: https://www.npmjs.com/package/puppeteer
|
|
32
|
+
|
|
33
|
+
License inherited from the original package.
|
package/changes.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bumped": {
|
|
3
|
+
"chromium-bidi": {
|
|
4
|
+
"from": "14.0.0",
|
|
5
|
+
"to": "^15.0.0"
|
|
6
|
+
},
|
|
7
|
+
"cosmiconfig": {
|
|
8
|
+
"from": "^9.0.0",
|
|
9
|
+
"to": "^9.0.1"
|
|
10
|
+
},
|
|
11
|
+
"devtools-protocol": {
|
|
12
|
+
"from": "0.0.1581282",
|
|
13
|
+
"to": "^0.0.1601756"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"timestamp": "2026-03-19T16:27:23.541Z",
|
|
17
|
+
"totalUpdated": 3
|
|
18
|
+
}
|
package/install.mjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2017 Google Inc.
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* This file is part of public API.
|
|
11
|
+
*
|
|
12
|
+
* By default, the `puppeteer` package runs this script during the installation
|
|
13
|
+
* process unless one of the env flags is provided.
|
|
14
|
+
* `puppeteer-core` package doesn't include this step at all. However, it's
|
|
15
|
+
* still possible to install a supported browser using this script when
|
|
16
|
+
* necessary.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @returns {import("puppeteer/internal/node/install.js")}
|
|
21
|
+
*/
|
|
22
|
+
async function importInstaller() {
|
|
23
|
+
try {
|
|
24
|
+
return await import('puppeteer/internal/node/install.js');
|
|
25
|
+
} catch (error) {
|
|
26
|
+
// Add more logging when the GitHub Action Debugging option is set
|
|
27
|
+
// https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
|
|
28
|
+
if (process.env['RUNNER_DEBUG']) {
|
|
29
|
+
console.error(error);
|
|
30
|
+
}
|
|
31
|
+
console.warn(
|
|
32
|
+
'Skipping browser installation because the Puppeteer build is not available. Run `npm install` again after you have re-built Puppeteer.',
|
|
33
|
+
);
|
|
34
|
+
process.exit(0);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
const {downloadBrowsers} = await importInstaller();
|
|
40
|
+
downloadBrowsers();
|
|
41
|
+
} catch (error) {
|
|
42
|
+
console.warn('Browser download failed', error);
|
|
43
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google Inc.
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { Configuration } from 'puppeteer-core';
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare const getConfiguration: () => Configuration;
|
|
11
|
+
//# sourceMappingURL=getConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfiguration.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAGV,aAAa,EAGd,MAAM,gBAAgB,CAAC;AAkGxB;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,aAgDnC,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2023 Google Inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.getConfiguration = void 0;
|
|
9
|
+
const node_os_1 = require("node:os");
|
|
10
|
+
const node_path_1 = require("node:path");
|
|
11
|
+
const cosmiconfig_1 = require("cosmiconfig");
|
|
12
|
+
function getBooleanEnvVar(name) {
|
|
13
|
+
const env = process.env[name];
|
|
14
|
+
if (env === undefined) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
switch (env.toLowerCase()) {
|
|
18
|
+
case '':
|
|
19
|
+
case '0':
|
|
20
|
+
case 'false':
|
|
21
|
+
case 'off':
|
|
22
|
+
return false;
|
|
23
|
+
default:
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
function isSupportedBrowser(product) {
|
|
31
|
+
switch (product) {
|
|
32
|
+
case 'chrome':
|
|
33
|
+
case 'firefox':
|
|
34
|
+
return true;
|
|
35
|
+
default:
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
function getDefaultBrowser(browser) {
|
|
43
|
+
// Validate configuration.
|
|
44
|
+
if (browser && !isSupportedBrowser(browser)) {
|
|
45
|
+
throw new Error(`Unsupported browser ${browser}`);
|
|
46
|
+
}
|
|
47
|
+
switch (browser) {
|
|
48
|
+
case 'firefox':
|
|
49
|
+
return 'firefox';
|
|
50
|
+
default:
|
|
51
|
+
return 'chrome';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
function getLogLevel(logLevel) {
|
|
58
|
+
switch (logLevel) {
|
|
59
|
+
case 'silent':
|
|
60
|
+
return 'silent';
|
|
61
|
+
case 'error':
|
|
62
|
+
return 'error';
|
|
63
|
+
default:
|
|
64
|
+
return 'warn';
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function getBrowserSetting(browser, configuration, defaultConfig = {}) {
|
|
68
|
+
if (configuration.skipDownload) {
|
|
69
|
+
return {
|
|
70
|
+
skipDownload: true,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
const browserSetting = {};
|
|
74
|
+
const browserEnvName = browser.replaceAll('-', '_').toUpperCase();
|
|
75
|
+
browserSetting.version =
|
|
76
|
+
process.env[`PUPPETEER_${browserEnvName}_VERSION`] ??
|
|
77
|
+
configuration[browser]?.version ??
|
|
78
|
+
defaultConfig.version;
|
|
79
|
+
browserSetting.downloadBaseUrl =
|
|
80
|
+
process.env[`PUPPETEER_${browserEnvName}_DOWNLOAD_BASE_URL`] ??
|
|
81
|
+
configuration[browser]?.downloadBaseUrl ??
|
|
82
|
+
defaultConfig.downloadBaseUrl;
|
|
83
|
+
browserSetting.skipDownload =
|
|
84
|
+
getBooleanEnvVar(`PUPPETEER_${browserEnvName}_SKIP_DOWNLOAD`) ??
|
|
85
|
+
getBooleanEnvVar(`PUPPETEER_SKIP_${browserEnvName}_DOWNLOAD`) ??
|
|
86
|
+
configuration[browser]?.skipDownload ??
|
|
87
|
+
defaultConfig.skipDownload;
|
|
88
|
+
return browserSetting;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
const getConfiguration = () => {
|
|
94
|
+
const result = (0, cosmiconfig_1.cosmiconfigSync)('puppeteer', {
|
|
95
|
+
searchStrategy: 'global',
|
|
96
|
+
}).search();
|
|
97
|
+
const configuration = result ? { ...result.config } : {};
|
|
98
|
+
configuration.logLevel = getLogLevel(process.env['PUPPETEER_LOGLEVEL'] ?? configuration.logLevel);
|
|
99
|
+
// Merging environment variables.
|
|
100
|
+
configuration.defaultBrowser = getDefaultBrowser(process.env['PUPPETEER_BROWSER'] ?? configuration.defaultBrowser);
|
|
101
|
+
configuration.executablePath =
|
|
102
|
+
process.env['PUPPETEER_EXECUTABLE_PATH'] ?? configuration.executablePath;
|
|
103
|
+
// Default to skipDownload if executablePath is set
|
|
104
|
+
if (configuration.executablePath) {
|
|
105
|
+
configuration.skipDownload = true;
|
|
106
|
+
}
|
|
107
|
+
// Set skipDownload explicitly or from default
|
|
108
|
+
configuration.skipDownload =
|
|
109
|
+
getBooleanEnvVar('PUPPETEER_SKIP_DOWNLOAD') ?? configuration.skipDownload;
|
|
110
|
+
// Prepare variables used in browser downloading
|
|
111
|
+
configuration.chrome = getBrowserSetting('chrome', configuration);
|
|
112
|
+
configuration['chrome-headless-shell'] = getBrowserSetting('chrome-headless-shell', configuration);
|
|
113
|
+
configuration.firefox = getBrowserSetting('firefox', configuration, {
|
|
114
|
+
skipDownload: true,
|
|
115
|
+
});
|
|
116
|
+
configuration.cacheDirectory =
|
|
117
|
+
process.env['PUPPETEER_CACHE_DIR'] ??
|
|
118
|
+
configuration.cacheDirectory ??
|
|
119
|
+
(0, node_path_1.join)((0, node_os_1.homedir)(), '.cache', 'puppeteer');
|
|
120
|
+
configuration.temporaryDirectory =
|
|
121
|
+
process.env['PUPPETEER_TMP_DIR'] ?? configuration.temporaryDirectory;
|
|
122
|
+
configuration.experiments ??= {};
|
|
123
|
+
return configuration;
|
|
124
|
+
};
|
|
125
|
+
exports.getConfiguration = getConfiguration;
|
|
126
|
+
//# sourceMappingURL=getConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfiguration.js","sourceRoot":"","sources":["../../../src/getConfiguration.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,qCAAgC;AAChC,yCAA+B;AAE/B,6CAA4C;AAS5C,SAAS,gBAAgB,CAAC,IAAY;IACpC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9B,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO;IACT,CAAC;IACD,QAAQ,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC;QAC1B,KAAK,EAAE,CAAC;QACR,KAAK,GAAG,CAAC;QACT,KAAK,OAAO,CAAC;QACb,KAAK,KAAK;YACR,OAAO,KAAK,CAAC;QACf;YACE,OAAO,IAAI,CAAC;IAChB,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,OAAgB;IAC1C,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,QA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G,iBAAiB,CACxD,uBAAuB,EACvB,aAAa,CACd,CAAC;IACF,aAAa,CAAC,OAAO,GAAG,iBAAiB,CAAC,SAAS,EAAE,aAAa,EAAE;QAClE,YAAY,EAAE,IAAI;KACnB,CAAC,CAAC;IAEH,aAAa,CAAC,cAAc;QAC1B,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC;YAClC,aAAa,CAAC,cAAc;YAC5B,IAAA,gBAAI,EAAC,IAAA,iBAAO,GAAE,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IAEzC,aAAa,CAAC,kBAAkB;QAC9B,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,IAAI,aAAa,CAAC,kBAAkB,CAAC;IAEvE,aAAa,CAAC,WAAW,KAAK,EAAE,CAAC;IAEjC,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAhDW,QAAA,gBAAgB,oBAgD3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/node/cli.ts"],"names":[],"mappings":";AAEA;;;;GAIG"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2023 Google Inc.
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*/
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const browsers_1 = require("@puppeteer/browsers");
|
|
13
|
+
const revisions_js_1 = require("puppeteer-core/internal/revisions.js");
|
|
14
|
+
const version_js_1 = require("puppeteer-core/internal/util/version.js");
|
|
15
|
+
const puppeteer_js_1 = __importDefault(require("../puppeteer.js"));
|
|
16
|
+
const cacheDir = puppeteer_js_1.default.configuration
|
|
17
|
+
.cacheDirectory;
|
|
18
|
+
void new browsers_1.CLI({
|
|
19
|
+
cachePath: cacheDir,
|
|
20
|
+
scriptName: 'puppeteer',
|
|
21
|
+
version: version_js_1.packageVersion,
|
|
22
|
+
prefixCommand: {
|
|
23
|
+
cmd: 'browsers',
|
|
24
|
+
description: 'Manage browsers of this Puppeteer installation',
|
|
25
|
+
},
|
|
26
|
+
allowCachePathOverride: false,
|
|
27
|
+
pinnedBrowsers: {
|
|
28
|
+
[browsers_1.Browser.CHROME]: {
|
|
29
|
+
buildId: puppeteer_js_1.default.configuration.chrome?.version ||
|
|
30
|
+
revisions_js_1.PUPPETEER_REVISIONS['chrome'] ||
|
|
31
|
+
'latest',
|
|
32
|
+
skipDownload: puppeteer_js_1.default.configuration.chrome
|
|
33
|
+
?.skipDownload ?? false,
|
|
34
|
+
},
|
|
35
|
+
[browsers_1.Browser.FIREFOX]: {
|
|
36
|
+
buildId: puppeteer_js_1.default.configuration.firefox
|
|
37
|
+
?.version ||
|
|
38
|
+
revisions_js_1.PUPPETEER_REVISIONS['firefox'] ||
|
|
39
|
+
'latest',
|
|
40
|
+
skipDownload: puppeteer_js_1.default.configuration.firefox
|
|
41
|
+
?.skipDownload ?? true,
|
|
42
|
+
},
|
|
43
|
+
[browsers_1.Browser.CHROMEHEADLESSSHELL]: {
|
|
44
|
+
buildId: puppeteer_js_1.default.configuration['chrome-headless-shell']?.version ||
|
|
45
|
+
revisions_js_1.PUPPETEER_REVISIONS['chrome-headless-shell'] ||
|
|
46
|
+
'latest',
|
|
47
|
+
skipDownload: puppeteer_js_1.default.configuration['chrome-headless-shell']?.skipDownload ?? false,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
}).run(process.argv);
|
|
51
|
+
//# sourceMappingURL=cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/node/cli.ts"],"names":[],"mappings":";;AAEA;;;;GAIG;;;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":["../../../../src/node/install.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA2DH;;GAEG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAkEtD"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2020 Google Inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.downloadBrowsers = downloadBrowsers;
|
|
9
|
+
const browsers_1 = require("@puppeteer/browsers");
|
|
10
|
+
const revisions_js_1 = require("puppeteer-core/internal/revisions.js");
|
|
11
|
+
const getConfiguration_js_1 = require("../getConfiguration.js");
|
|
12
|
+
async function downloadBrowser({ browser, configuration, cacheDir, platform, }) {
|
|
13
|
+
const unresolvedBuildId = configuration?.version || revisions_js_1.PUPPETEER_REVISIONS[browser] || 'latest';
|
|
14
|
+
const baseUrl = configuration?.downloadBaseUrl;
|
|
15
|
+
const buildId = await (0, browsers_1.resolveBuildId)(browser, platform, unresolvedBuildId);
|
|
16
|
+
try {
|
|
17
|
+
const result = await (0, browsers_1.install)({
|
|
18
|
+
browser,
|
|
19
|
+
cacheDir,
|
|
20
|
+
platform,
|
|
21
|
+
buildId,
|
|
22
|
+
downloadProgressCallback: 'default',
|
|
23
|
+
baseUrl,
|
|
24
|
+
buildIdAlias: buildId !== unresolvedBuildId ? unresolvedBuildId : undefined,
|
|
25
|
+
});
|
|
26
|
+
logPolitely(`${browser} (${result.buildId}) downloaded to ${result.path}`);
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
throw new Error(`ERROR: Failed to set up ${browser} v${buildId}! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.`, {
|
|
30
|
+
cause: error,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
async function downloadBrowsers() {
|
|
38
|
+
overrideProxy();
|
|
39
|
+
const configuration = (0, getConfiguration_js_1.getConfiguration)();
|
|
40
|
+
if (configuration.skipDownload) {
|
|
41
|
+
logPolitely('**INFO** Skipping downloading browsers as instructed.');
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const platform = (0, browsers_1.detectBrowserPlatform)();
|
|
45
|
+
if (!platform) {
|
|
46
|
+
throw new Error('The current platform is not supported.');
|
|
47
|
+
}
|
|
48
|
+
const cacheDir = configuration.cacheDirectory;
|
|
49
|
+
const installationJobs = [];
|
|
50
|
+
if (configuration.chrome?.skipDownload) {
|
|
51
|
+
logPolitely('**INFO** Skipping Chrome download as instructed.');
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
const browser = browsers_1.Browser.CHROME;
|
|
55
|
+
installationJobs.push(downloadBrowser({
|
|
56
|
+
browser,
|
|
57
|
+
configuration: configuration[browser] ?? {},
|
|
58
|
+
cacheDir,
|
|
59
|
+
platform,
|
|
60
|
+
}));
|
|
61
|
+
}
|
|
62
|
+
if (configuration['chrome-headless-shell']?.skipDownload) {
|
|
63
|
+
logPolitely('**INFO** Skipping Chrome download as instructed.');
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const browser = browsers_1.Browser.CHROMEHEADLESSSHELL;
|
|
67
|
+
installationJobs.push(downloadBrowser({
|
|
68
|
+
browser,
|
|
69
|
+
configuration: configuration[browser] ?? {},
|
|
70
|
+
cacheDir,
|
|
71
|
+
platform,
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
if (configuration.firefox?.skipDownload) {
|
|
75
|
+
logPolitely('**INFO** Skipping Firefox download as instructed.');
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
const browser = browsers_1.Browser.FIREFOX;
|
|
79
|
+
installationJobs.push(downloadBrowser({
|
|
80
|
+
browser,
|
|
81
|
+
configuration: configuration[browser] ?? {},
|
|
82
|
+
cacheDir,
|
|
83
|
+
platform,
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
86
|
+
try {
|
|
87
|
+
await Promise.all(installationJobs);
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
console.error(error);
|
|
91
|
+
process.exit(1);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
function logPolitely(toBeLogged) {
|
|
98
|
+
const logLevel = process.env['npm_config_loglevel'] || '';
|
|
99
|
+
const logLevelDisplay = ['silent', 'error', 'warn'].indexOf(logLevel) > -1;
|
|
100
|
+
if (!logLevelDisplay) {
|
|
101
|
+
console.log(toBeLogged);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
function overrideProxy() {
|
|
108
|
+
// Override current environment proxy settings with npm configuration, if any.
|
|
109
|
+
const NPM_HTTPS_PROXY = process.env['npm_config_https_proxy'] || process.env['npm_config_proxy'];
|
|
110
|
+
const NPM_HTTP_PROXY = process.env['npm_config_http_proxy'] || process.env['npm_config_proxy'];
|
|
111
|
+
const NPM_NO_PROXY = process.env['npm_config_no_proxy'];
|
|
112
|
+
if (NPM_HTTPS_PROXY) {
|
|
113
|
+
process.env['HTTPS_PROXY'] = NPM_HTTPS_PROXY;
|
|
114
|
+
}
|
|
115
|
+
if (NPM_HTTP_PROXY) {
|
|
116
|
+
process.env['HTTP_PROXY'] = NPM_HTTP_PROXY;
|
|
117
|
+
}
|
|
118
|
+
if (NPM_NO_PROXY) {
|
|
119
|
+
process.env['NO_PROXY'] = NPM_NO_PROXY;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=install.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../../src/node/install.ts"],"names":[],"mappings":";AAAA;;;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
* @license
|
|
3
|
+
* Copyright 2017 Google Inc.
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
export * from 'puppeteer-core';
|
|
7
|
+
import { PuppeteerNode } from 'puppeteer-core';
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
declare const puppeteer: PuppeteerNode;
|
|
12
|
+
export declare const
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
connect: (options: import("puppeteer-core").ConnectOptions) => Promise<import("puppeteer-core").Browser>,
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
defaultArgs: (options?: import("puppeteer-core").LaunchOptions) => string[],
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
executablePath: {
|
|
25
|
+
(channel: import("puppeteer-core").ChromeReleaseChannel): string;
|
|
26
|
+
(options: import("puppeteer-core").LaunchOptions): string;
|
|
27
|
+
(): string;
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
launch: (options?: import("puppeteer-core").LaunchOptions) => Promise<import("puppeteer-core").Browser>,
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
trimCache: () => Promise<void>;
|
|
37
|
+
export default puppeteer;
|
|
38
|
+
//# sourceMappingURL=puppeteer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"puppeteer.d.ts","sourceRoot":"","sources":["../../../src/puppeteer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAM7C;;GAEG;AAEH,QAAA,MAAM,SAAS,eAGb,CAAC;AAEH,eAAO;AACL;;GAEG;AACH,OAAO;AACP;;GAEG;AACH,WAAW;AACX;;GAEG;AACH,cAAc;;;;;AACd;;GAEG;AACH,MAAM;AACN;;GAEG;AACH,SAAS,qBACE,CAAC;AAEd,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2017 Google Inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.trimCache = exports.launch = exports.executablePath = exports.defaultArgs = exports.connect = void 0;
|
|
23
|
+
__exportStar(require("puppeteer-core"), exports);
|
|
24
|
+
const puppeteer_core_1 = require("puppeteer-core");
|
|
25
|
+
const getConfiguration_js_1 = require("./getConfiguration.js");
|
|
26
|
+
const configuration = (0, getConfiguration_js_1.getConfiguration)();
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
// @ts-expect-error using internal API.
|
|
31
|
+
const puppeteer = new puppeteer_core_1.PuppeteerNode({
|
|
32
|
+
isPuppeteerCore: false,
|
|
33
|
+
configuration,
|
|
34
|
+
});
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
exports.connect = puppeteer.connect,
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
exports.defaultArgs = puppeteer.defaultArgs,
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
exports.executablePath = puppeteer.executablePath,
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
exports.launch = puppeteer.launch,
|
|
51
|
+
/**
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
exports.trimCache = puppeteer.trimCache;
|
|
55
|
+
exports.default = puppeteer;
|
|
56
|
+
//# sourceMappingURL=puppeteer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"puppeteer.js","sourceRoot":"","sources":["../../../src/puppeteer.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;AAEH,iDAA+B;AAE/B,mDAA6C;AAE7C,+DAAuD;AAEvD,MAAM,aAAa,GAAG,IAAA,sCAAgB,GAAE,CAAC;AAEzC;;GAEG;AACH,uCAAuC;AACvC,MAAM,SAAS,GAAG,IAAI,8BAAa,CAAC;IAClC,eAAe,EAAE,KAAK;IACtB,aAAa;CACd,CAAC,CAAC;AAGD;;GAEG;AACH,eAAO,GAiBL,SAAS;AAhBX;;GAEG;AACH,mBAAW,GAaT,SAAS;AAZX;;GAEG;AACH,sBAAc,GASZ,SAAS;AARX;;GAEG;AACH,cAAM,GAKJ,SAAS;AAJX;;GAEG;AACH,iBAAS,GACP,SAAS,WAAC;AAEd,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type": "module"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google Inc.
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { Configuration } from 'puppeteer-core';
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare const getConfiguration: () => Configuration;
|
|
11
|
+
//# sourceMappingURL=getConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfiguration.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAGV,aAAa,EAGd,MAAM,gBAAgB,CAAC;AAkGxB;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,aAgDnC,CAAC"}
|