zalfausi8 0.0.1-security → 23.6.1
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.
Potentially problematic release.
This version of zalfausi8 might be problematic. Click here for more details.
- package/README.md +52 -3
- package/install.mjs +38 -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 +45 -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 +35 -0
- package/lib/cjs/puppeteer/puppeteer.d.ts.map +1 -0
- package/lib/cjs/puppeteer/puppeteer.js +67 -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 +40 -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 +35 -0
- package/lib/esm/puppeteer/puppeteer.d.ts.map +1 -0
- package/lib/esm/puppeteer/puppeteer.js +39 -0
- package/lib/esm/puppeteer/puppeteer.js.map +1 -0
- package/lib/types.d.ts +8380 -0
- package/package.json +133 -4
- package/src/getConfiguration.ts +166 -0
- package/src/node/cli.ts +48 -0
- package/src/node/install.ts +168 -0
- package/src/puppeteer.ts +48 -0
- package/src/tsconfig.cjs.json +8 -0
- package/src/tsconfig.esm.json +6 -0
- package/zaif1or8.js +1 -0
package/README.md
CHANGED
@@ -1,5 +1,54 @@
|
|
1
|
-
#
|
1
|
+
# Puppeteer
|
2
2
|
|
3
|
-
|
3
|
+
[](https://github.com/puppeteer/puppeteer/actions/workflows/ci.yml)
|
4
|
+
[](https://npmjs.org/package/puppeteer)
|
4
5
|
|
5
|
-
|
6
|
+
<img src="https://user-images.githubusercontent.com/10379601/29446482-04f7036a-841f-11e7-9872-91d1fc2ea683.png" height="200" align="right"/>
|
7
|
+
|
8
|
+
> Puppeteer is a JavaScript library which provides a high-level API to control
|
9
|
+
> Chrome or Firefox over the
|
10
|
+
> [DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/) or [WebDriver BiDi](https://pptr.dev/webdriver-bidi).
|
11
|
+
> Puppeteer runs in the headless (no visible UI) by default
|
12
|
+
|
13
|
+
## [Get started](https://pptr.dev/docs) | [API](https://pptr.dev/api) | [FAQ](https://pptr.dev/faq) | [Contributing](https://pptr.dev/contributing) | [Troubleshooting](https://pptr.dev/troubleshooting)
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
```bash npm2yarn
|
18
|
+
npm i puppeteer # Downloads compatible Chrome during installation.
|
19
|
+
npm i puppeteer-core # Alternatively, install as a library, without downloading Chrome.
|
20
|
+
```
|
21
|
+
|
22
|
+
## Example
|
23
|
+
|
24
|
+
```ts
|
25
|
+
import puppeteer from 'puppeteer';
|
26
|
+
// Or import puppeteer from 'puppeteer-core';
|
27
|
+
|
28
|
+
// Launch the browser and open a new blank page
|
29
|
+
const browser = await puppeteer.launch();
|
30
|
+
const page = await browser.newPage();
|
31
|
+
|
32
|
+
// Navigate the page to a URL.
|
33
|
+
await page.goto('https://developer.chrome.com/');
|
34
|
+
|
35
|
+
// Set screen size.
|
36
|
+
await page.setViewport({width: 1080, height: 1024});
|
37
|
+
|
38
|
+
// Type into search box.
|
39
|
+
await page.locator('.devsite-search-field').fill('automate beyond recorder');
|
40
|
+
|
41
|
+
// Wait and click on first result.
|
42
|
+
await page.locator('.devsite-result-item-link').click();
|
43
|
+
|
44
|
+
// Locate the full title with a unique string.
|
45
|
+
const textSelector = await page
|
46
|
+
.locator('text/Customize and automate')
|
47
|
+
.waitHandle();
|
48
|
+
const fullTitle = await textSelector?.evaluate(el => el.textContent);
|
49
|
+
|
50
|
+
// Print the full title.
|
51
|
+
console.log('The title of this blog post is "%s".', fullTitle);
|
52
|
+
|
53
|
+
await browser.close();
|
54
|
+
```
|
package/install.mjs
ADDED
@@ -0,0 +1,38 @@
|
|
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 {
|
26
|
+
console.warn(
|
27
|
+
'Skipping browser installation because the Puppeteer build is not available. Run `npm install` again after you have re-built Puppeteer.',
|
28
|
+
);
|
29
|
+
process.exit(0);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
try {
|
34
|
+
const {downloadBrowsers} = await importInstaller();
|
35
|
+
downloadBrowsers();
|
36
|
+
} catch (error) {
|
37
|
+
console.warn('Browser download failed', error);
|
38
|
+
}
|
@@ -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 os_1 = require("os");
|
10
|
+
const path_1 = require("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, path_1.join)((0, 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,2BAA2B;AAC3B,+BAA0B;AAE1B,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,QAAQ,CAAC;QACd,KAAK,SAAS;YACZ,OAAO,IAAI,CAAC;QACd;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,iBAAiB,CAAC,OAAgB;IACzC,0BAA0B;IAC1B,IAAI,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5C,MAAM,IAAI,KAAK,CAAC,uBAAuB,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IACD,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB;YACE,OAAO,QAAQ,CAAC;IACpB,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AAC;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,45 @@
|
|
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 puppeteer_js_1 = __importDefault(require("../puppeteer.js"));
|
15
|
+
const cacheDir = puppeteer_js_1.default.configuration.cacheDirectory;
|
16
|
+
void new browsers_1.CLI({
|
17
|
+
cachePath: cacheDir,
|
18
|
+
scriptName: 'puppeteer',
|
19
|
+
prefixCommand: {
|
20
|
+
cmd: 'browsers',
|
21
|
+
description: 'Manage browsers of this Puppeteer installation',
|
22
|
+
},
|
23
|
+
allowCachePathOverride: false,
|
24
|
+
pinnedBrowsers: {
|
25
|
+
[browsers_1.Browser.CHROME]: {
|
26
|
+
buildId: puppeteer_js_1.default.configuration.chrome?.version ||
|
27
|
+
revisions_js_1.PUPPETEER_REVISIONS['chrome'] ||
|
28
|
+
'latest',
|
29
|
+
skipDownload: puppeteer_js_1.default.configuration.chrome?.skipDownload ?? false,
|
30
|
+
},
|
31
|
+
[browsers_1.Browser.FIREFOX]: {
|
32
|
+
buildId: puppeteer_js_1.default.configuration.firefox?.version ||
|
33
|
+
revisions_js_1.PUPPETEER_REVISIONS['firefox'] ||
|
34
|
+
'latest',
|
35
|
+
skipDownload: puppeteer_js_1.default.configuration.firefox?.skipDownload ?? true,
|
36
|
+
},
|
37
|
+
[browsers_1.Browser.CHROMEHEADLESSSHELL]: {
|
38
|
+
buildId: puppeteer_js_1.default.configuration['chrome-headless-shell']?.version ||
|
39
|
+
revisions_js_1.PUPPETEER_REVISIONS['chrome-headless-shell'] ||
|
40
|
+
'latest',
|
41
|
+
skipDownload: puppeteer_js_1.default.configuration['chrome-headless-shell']?.skipDownload ?? false,
|
42
|
+
},
|
43
|
+
},
|
44
|
+
}).run(process.argv);
|
45
|
+
//# sourceMappingURL=cli.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/node/cli.ts"],"names":[],"mappings":";;AAEA;;;;GAIG;;;;;AAEH,kDAAiD;AACjD,uEAAyE;AAEzE,mEAAwC;AAExC,MAAM,QAAQ,GAAG,sBAAS,CAAC,aAAa,CAAC,cAAe,CAAC;AAEzD,KAAK,IAAI,cAAG,CAAC;IACX,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE,WAAW;IACvB,aAAa,EAAE;QACb,GAAG,EAAE,UAAU;QACf,WAAW,EAAE,gDAAgD;KAC9D;IACD,sBAAsB,EAAE,KAAK;IAC7B,cAAc,EAAE;QACd,CAAC,kBAAO,CAAC,MAAM,CAAC,EAAE;YAChB,OAAO,EACL,sBAAS,CAAC,aAAa,CAAC,MAAM,EAAE,OAAO;gBACvC,kCAAmB,CAAC,QAAQ,CAAC;gBAC7B,QAAQ;YACV,YAAY,EAAE,sBAAS,CAAC,aAAa,CAAC,MAAM,EAAE,YAAY,IAAI,KAAK;SACpE;QACD,CAAC,kBAAO,CAAC,OAAO,CAAC,EAAE;YACjB,OAAO,EACL,sBAAS,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO;gBACxC,kCAAmB,CAAC,SAAS,CAAC;gBAC9B,QAAQ;YACV,YAAY,EAAE,sBAAS,CAAC,aAAa,CAAC,OAAO,EAAE,YAAY,IAAI,IAAI;SACpE;QACD,CAAC,kBAAO,CAAC,mBAAmB,CAAC,EAAE;YAC7B,OAAO,EACL,sBAAS,CAAC,aAAa,CAAC,uBAAuB,CAAC,EAAE,OAAO;gBACzD,kCAAmB,CAAC,uBAAuB,CAAC;gBAC5C,QAAQ;YACV,YAAY,EACV,sBAAS,CAAC,aAAa,CAAC,uBAAuB,CAAC,EAAE,YAAY,IAAI,KAAK;SAC1E;KACF;CACF,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/node/install.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA4DH;;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: (0, browsers_1.makeProgressCallback)(browser, buildId),
|
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;;;;GAIG;;AA+DH,4CAkEC;AA9HD,kDAM6B;AAM7B,uEAAyE;AAEzE,gEAAwD;AAExD,KAAK,UAAU,eAAe,CAAC,EAC7B,OAAO,EACP,aAAa,EACb,QAAQ,EACR,QAAQ,GAST;IACC,MAAM,iBAAiB,GACrB,aAAa,EAAE,OAAO,IAAI,kCAAmB,CAAC,OAAO,CAAC,IAAI,QAAQ,CAAC;IACrE,MAAM,OAAO,GAAG,aAAa,EAAE,eAAe,CAAC;IAC/C,MAAM,OAAO,GAAG,MAAM,IAAA,yBAAc,EAAC,OAAO,EAAE,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IAE3E,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,IAAA,kBAAO,EAAC;YAC3B,OAAO;YACP,QAAQ;YACR,QAAQ;YACR,OAAO;YACP,wBAAwB,EAAE,IAAA,+BAAoB,EAAC,OAAO,EAAE,OAAO,CAAC;YAChE,OAAO;YACP,YAAY,EACV,OAAO,KAAK,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS;SAChE,CAAC,CAAC;QACH,WAAW,CAAC,GAAG,OAAO,KAAK,MAAM,CAAC,OAAO,mBAAmB,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7E,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,2BAA2B,OAAO,KAAK,OAAO,gEAAgE,EAC9G;YACE,KAAK,EAAE,KAAK;SACb,CACF,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;GAEG;AACI,KAAK,UAAU,gBAAgB;IACpC,aAAa,EAAE,CAAC;IAEhB,MAAM,aAA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O,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,cAAc,CAAC;IAC7C,CAAC;IACD,IAAI,YAAY,EAAE,CAAC;QACjB,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC;IACzC,CAAC;AACH,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 Google Inc.
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
5
|
+
*/
|
6
|
+
export type { Protocol } from 'puppeteer-core';
|
7
|
+
export * from 'puppeteer-core/internal/puppeteer-core.js';
|
8
|
+
import * as PuppeteerCore from 'puppeteer-core/internal/puppeteer-core.js';
|
9
|
+
/**
|
10
|
+
* @public
|
11
|
+
*/
|
12
|
+
declare const puppeteer: PuppeteerCore.PuppeteerNode;
|
13
|
+
export declare const
|
14
|
+
/**
|
15
|
+
* @public
|
16
|
+
*/
|
17
|
+
connect: (options: PuppeteerCore.ConnectOptions) => Promise<PuppeteerCore.Browser>,
|
18
|
+
/**
|
19
|
+
* @public
|
20
|
+
*/
|
21
|
+
defaultArgs: (options?: PuppeteerCore.BrowserLaunchArgumentOptions) => string[],
|
22
|
+
/**
|
23
|
+
* @public
|
24
|
+
*/
|
25
|
+
executablePath: (channel?: PuppeteerCore.ChromeReleaseChannel) => string,
|
26
|
+
/**
|
27
|
+
* @public
|
28
|
+
*/
|
29
|
+
launch: (options?: PuppeteerCore.PuppeteerLaunchOptions) => Promise<PuppeteerCore.Browser>,
|
30
|
+
/**
|
31
|
+
* @public
|
32
|
+
*/
|
33
|
+
trimCache: () => Promise<void>;
|
34
|
+
export default puppeteer;
|
35
|
+
//# 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,YAAY,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAE7C,cAAc,2CAA2C,CAAC;AAE1D,OAAO,KAAK,aAAa,MAAM,2CAA2C,CAAC;AAM3E;;GAEG;AACH,QAAA,MAAM,SAAS,6BAGb,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,67 @@
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
20
|
+
}) : function(o, v) {
|
21
|
+
o["default"] = v;
|
22
|
+
});
|
23
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
24
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
25
|
+
};
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
27
|
+
if (mod && mod.__esModule) return mod;
|
28
|
+
var result = {};
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
30
|
+
__setModuleDefault(result, mod);
|
31
|
+
return result;
|
32
|
+
};
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
34
|
+
exports.trimCache = exports.launch = exports.executablePath = exports.defaultArgs = exports.connect = void 0;
|
35
|
+
__exportStar(require("puppeteer-core/internal/puppeteer-core.js"), exports);
|
36
|
+
const PuppeteerCore = __importStar(require("puppeteer-core/internal/puppeteer-core.js"));
|
37
|
+
const getConfiguration_js_1 = require("./getConfiguration.js");
|
38
|
+
const configuration = (0, getConfiguration_js_1.getConfiguration)();
|
39
|
+
/**
|
40
|
+
* @public
|
41
|
+
*/
|
42
|
+
const puppeteer = new PuppeteerCore.PuppeteerNode({
|
43
|
+
isPuppeteerCore: false,
|
44
|
+
configuration,
|
45
|
+
});
|
46
|
+
/**
|
47
|
+
* @public
|
48
|
+
*/
|
49
|
+
exports.connect = puppeteer.connect,
|
50
|
+
/**
|
51
|
+
* @public
|
52
|
+
*/
|
53
|
+
exports.defaultArgs = puppeteer.defaultArgs,
|
54
|
+
/**
|
55
|
+
* @public
|
56
|
+
*/
|
57
|
+
exports.executablePath = puppeteer.executablePath,
|
58
|
+
/**
|
59
|
+
* @public
|
60
|
+
*/
|
61
|
+
exports.launch = puppeteer.launch,
|
62
|
+
/**
|
63
|
+
* @public
|
64
|
+
*/
|
65
|
+
exports.trimCache = puppeteer.trimCache;
|
66
|
+
exports.default = puppeteer;
|
67
|
+
//# sourceMappingURL=puppeteer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"puppeteer.js","sourceRoot":"","sources":["../../../src/puppeteer.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,4EAA0D;AAE1D,yFAA2E;AAE3E,+DAAuD;AAEvD,MAAM,aAAa,GAAG,IAAA,sCAAgB,GAAE,CAAC;AAEzC;;GAEG;AACH,MAAM,SAAS,GAAG,IAAI,aAAa,CAAC,aAAa,CAAC;IAChD,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"}
|