@open-wa/driver-puppeteer 5.3.0 → 5.5.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 +8 -7
- package/dist/index.cjs +105 -67
- package/dist/index.d.cts +2 -1
- package/dist/index.d.cts.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -12,10 +12,12 @@ bun add @open-wa/driver-puppeteer
|
|
|
12
12
|
|
|
13
13
|
## Browser setup
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
Installing the driver installs `puppeteer-core` without downloading a browser.
|
|
16
|
+
Startup reuses cached Chrome, or downloads the Puppeteer-matched Chrome for
|
|
17
|
+
Testing with progress when it is missing. Set `browser.kind: 'chromium'` to
|
|
18
|
+
download and reuse Chromium instead. Downloads use `PUPPETEER_CACHE_DIR` or
|
|
19
|
+
`~/.cache/puppeteer`. Concurrent open-wa starts share one installation; an
|
|
20
|
+
interrupted download is retried on the next start.
|
|
19
21
|
|
|
20
22
|
Use the same resolver to pre-provision a deployment cache:
|
|
21
23
|
|
|
@@ -31,9 +33,8 @@ console.log(executablePath);
|
|
|
31
33
|
Provision on the same operating system and architecture as the deployment.
|
|
32
34
|
Then pass `browser: { cacheDirectory: '/app/browser-cache', download: 'never' }`
|
|
33
35
|
to `create()` or the driver's `launch()` to forbid downloads at runtime. An
|
|
34
|
-
explicit `download` option takes precedence over
|
|
35
|
-
|
|
36
|
-
setting are respected.
|
|
36
|
+
explicit `download` option takes precedence over `PUPPETEER_SKIP_DOWNLOAD` and
|
|
37
|
+
`PUPPETEER_CHROME_SKIP_DOWNLOAD`; otherwise those environment settings are respected.
|
|
37
38
|
|
|
38
39
|
`executablePath` overrides managed Chrome. A missing or non-executable path
|
|
39
40
|
produces an error, so a typo cannot silently select a different browser.
|
package/dist/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@ let node_fs = require("node:fs");
|
|
|
3
3
|
let node_fs_promises = require("node:fs/promises");
|
|
4
4
|
let node_os = require("node:os");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
|
+
let _open_wa_driver_interface = require("@open-wa/driver-interface");
|
|
6
7
|
//#region src/PuppeteerElementHandle.ts
|
|
7
8
|
var PuppeteerElementHandle = class {
|
|
8
9
|
constructor(element) {
|
|
@@ -264,6 +265,9 @@ var PuppeteerPage = class {
|
|
|
264
265
|
const buffer = await this.page.screenshot(options);
|
|
265
266
|
return new Uint8Array(buffer);
|
|
266
267
|
}
|
|
268
|
+
async grantMediaPermissions(origin) {
|
|
269
|
+
await this.page.browserContext().overridePermissions(origin, ["microphone", "camera"]);
|
|
270
|
+
}
|
|
267
271
|
async exposeFunction(name, fn) {
|
|
268
272
|
await this.page.exposeFunction(name, fn);
|
|
269
273
|
}
|
|
@@ -421,104 +425,136 @@ function report(ctx, message) {
|
|
|
421
425
|
else console.error(`[open-wa] ${message}`);
|
|
422
426
|
}
|
|
423
427
|
/**
|
|
424
|
-
* Resolve
|
|
425
|
-
*
|
|
428
|
+
* Resolve a browser without launching it. Chrome's default revision comes from
|
|
429
|
+
* puppeteer-core, so the same cache can be pre-provisioned during
|
|
426
430
|
* deployment and reused by startup with `browser.download: 'never'`.
|
|
427
431
|
*/
|
|
428
|
-
async function
|
|
429
|
-
const
|
|
430
|
-
const configuration = await puppeteer.configuration();
|
|
431
|
-
const configuredPath = options.executablePath ?? configuration.executablePath;
|
|
432
|
+
async function provisionBrowser(options = {}, ctx) {
|
|
433
|
+
const configuredPath = options.executablePath ?? process.env.PUPPETEER_EXECUTABLE_PATH;
|
|
432
434
|
if (configuredPath !== void 0) {
|
|
433
435
|
const executablePath = (0, node_path.resolve)(configuredPath);
|
|
434
436
|
if (!configuredPath || !await isExecutable(executablePath)) throw new Error(`The configured browser executable is missing or not executable: ${configuredPath || "(empty path)"}. Set executablePath (or PUPPETEER_EXECUTABLE_PATH) to the browser binary, or remove it to use managed Chrome.`);
|
|
435
437
|
return executablePath;
|
|
436
438
|
}
|
|
437
|
-
const { Browser, Cache, detectBrowserPlatform, install } = await import("@puppeteer/browsers");
|
|
439
|
+
const { Browser, Cache, detectBrowserPlatform, install, resolveBuildId } = await import("@puppeteer/browsers");
|
|
438
440
|
const platform = detectBrowserPlatform();
|
|
439
441
|
if (!platform) throw new Error(`Automatic browser setup is unavailable on ${process.platform}/${process.arch}. Configure executablePath with a compatible Chrome installation.`);
|
|
440
|
-
const browser = Browser.CHROME;
|
|
441
|
-
const
|
|
442
|
-
|
|
443
|
-
const cacheDir = (0, node_path.resolve)(options.browser?.cacheDirectory ?? configuration.cacheDirectory ?? (0, node_path.join)((0, node_os.homedir)(), ".cache", "puppeteer"));
|
|
442
|
+
const browser = options.browser?.kind === "chromium" ? Browser.CHROMIUM : Browser.CHROME;
|
|
443
|
+
const label = browser === Browser.CHROMIUM ? "Chromium" : "Chrome";
|
|
444
|
+
const cacheDir = (0, node_path.resolve)(options.browser?.cacheDirectory ?? process.env.PUPPETEER_CACHE_DIR ?? (0, node_path.join)((0, node_os.homedir)(), ".cache", "puppeteer"));
|
|
444
445
|
const cache = new Cache(cacheDir);
|
|
446
|
+
const skipDownload = [process.env.PUPPETEER_SKIP_DOWNLOAD, process.env.PUPPETEER_CHROME_SKIP_DOWNLOAD].some((value) => value !== void 0 && ![
|
|
447
|
+
"",
|
|
448
|
+
"0",
|
|
449
|
+
"false",
|
|
450
|
+
"off"
|
|
451
|
+
].includes(value.toLowerCase()));
|
|
452
|
+
const allowDownload = options.browser?.download !== void 0 ? options.browser.download === "auto" : !skipDownload;
|
|
453
|
+
let buildId;
|
|
454
|
+
if (browser === Browser.CHROMIUM) {
|
|
455
|
+
const installed = cache.getInstalledBrowsers().filter((item) => item.browser === browser && item.platform === platform).sort((a, b) => Number(b.buildId) - Number(a.buildId));
|
|
456
|
+
for (const item of installed) if (await isExecutable(item.executablePath)) return item.executablePath;
|
|
457
|
+
if (!allowDownload) throw new Error(`Chromium is missing from ${cacheDir} and browser downloads are disabled. Configure executablePath or enable browser.download.`);
|
|
458
|
+
if (platform === "linux_arm") throw new Error("Managed Chromium snapshots are unavailable for Linux ARM64. Configure executablePath to a native Chromium installation.");
|
|
459
|
+
buildId = (await resolveBuildId(browser, platform, "latest")).trim();
|
|
460
|
+
} else {
|
|
461
|
+
const { PUPPETEER_REVISIONS } = await import("puppeteer-core/internal/revisions.js");
|
|
462
|
+
buildId = process.env.PUPPETEER_CHROME_VERSION ?? PUPPETEER_REVISIONS.chrome;
|
|
463
|
+
if (!/^\d+\.\d+\.\d+\.\d+$/.test(buildId)) throw new Error("PUPPETEER_CHROME_VERSION must be an exact Chrome version. Remove it to use the Puppeteer-matched version.");
|
|
464
|
+
}
|
|
445
465
|
const executablePath = cache.computeExecutablePath({
|
|
446
466
|
browser,
|
|
447
467
|
buildId,
|
|
448
468
|
platform
|
|
449
469
|
});
|
|
450
470
|
if (await isExecutable(executablePath)) return executablePath;
|
|
451
|
-
|
|
452
|
-
|
|
471
|
+
for (const installed of cache.getInstalledBrowsers().filter((item) => item.browser === browser && item.platform === platform).sort((a, b) => b.buildId.localeCompare(a.buildId, void 0, { numeric: true }))) if (await isExecutable(installed.executablePath)) return installed.executablePath;
|
|
472
|
+
if (!allowDownload) throw new Error(`${label} ${buildId} is missing from ${cacheDir} and browser downloads are disabled. Pre-provision this cache with await ensureBrowser({ browser: { download: "auto", cacheDirectory: "..." } }) on a connected machine of the same platform, or configure executablePath.`);
|
|
473
|
+
const { Data, Effect, Schedule } = await import("effect");
|
|
453
474
|
const { lock } = await import("proper-lockfile");
|
|
454
|
-
|
|
455
|
-
const
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}
|
|
466
|
-
onCompromised(error) {
|
|
467
|
-
compromised = error;
|
|
468
|
-
}
|
|
469
|
-
}).catch((cause) => {
|
|
470
|
-
throw new Error(`Could not acquire the browser installation lock in ${cacheDir}. Another startup may still be downloading Chrome; retry after it finishes.`, { cause });
|
|
475
|
+
class BrowserProvisionError extends Data.TaggedError("BrowserProvisionError") {}
|
|
476
|
+
const io = (operation, stage = "download") => Effect.tryPromise({
|
|
477
|
+
try: operation,
|
|
478
|
+
catch: (cause) => new BrowserProvisionError({
|
|
479
|
+
message: stage === "lock" ? `Could not acquire the browser installation lock in ${cacheDir}. Another startup may still be downloading ${label}; retry after it finishes.` : `Unable to provision ${label} ${buildId}: ${cause instanceof Error ? cause.message : String(cause)}. Check your connection, proxy settings, browser.downloadBaseUrl and write access to ${cacheDir}, then retry.`,
|
|
480
|
+
cause,
|
|
481
|
+
details: {
|
|
482
|
+
browser: label,
|
|
483
|
+
buildId,
|
|
484
|
+
stage
|
|
485
|
+
}
|
|
486
|
+
})
|
|
471
487
|
});
|
|
472
|
-
let
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
488
|
+
let compromised;
|
|
489
|
+
const program = Effect.gen(function* () {
|
|
490
|
+
yield* io(() => (0, node_fs_promises.mkdir)(cacheDir, { recursive: true }));
|
|
491
|
+
yield* Effect.acquireRelease(io(() => lock(cache.installationDir(browser, platform, buildId), {
|
|
492
|
+
realpath: false,
|
|
493
|
+
lockfilePath: (0, node_path.join)(cacheDir, `.open-wa-${browser}-${platform}-${buildId}.lock`),
|
|
494
|
+
stale: 12e4,
|
|
495
|
+
update: 1e4,
|
|
496
|
+
retries: 0,
|
|
497
|
+
onCompromised(error) {
|
|
498
|
+
compromised = error;
|
|
499
|
+
}
|
|
500
|
+
}), "lock").pipe(Effect.retry({
|
|
501
|
+
times: 600,
|
|
502
|
+
schedule: Schedule.spaced("1 second"),
|
|
503
|
+
while: (error) => error.cause?.code === "ELOCKED"
|
|
504
|
+
})), (release) => compromised ? Effect.void : io(() => release(), "lock release").pipe(Effect.orDie));
|
|
505
|
+
if (yield* Effect.promise(() => isExecutable(executablePath))) return executablePath;
|
|
506
|
+
const stagingPrefix = `.open-wa-${browser}-${platform}-${buildId}-download-`;
|
|
507
|
+
for (const name of yield* io(() => (0, node_fs_promises.readdir)(cacheDir))) if (name.startsWith(stagingPrefix)) yield* io(() => (0, node_fs_promises.rm)((0, node_path.join)(cacheDir, name), {
|
|
477
508
|
recursive: true,
|
|
478
509
|
force: true
|
|
479
|
-
});
|
|
480
|
-
staging =
|
|
481
|
-
|
|
510
|
+
}));
|
|
511
|
+
const staging = yield* Effect.acquireRelease(io(() => (0, node_fs_promises.mkdtemp)((0, node_path.join)(cacheDir, stagingPrefix))), (path) => io(() => (0, node_fs_promises.rm)(path, {
|
|
512
|
+
recursive: true,
|
|
513
|
+
force: true
|
|
514
|
+
}), "staging cleanup").pipe(Effect.orDie));
|
|
515
|
+
report(ctx, `Downloading ${label} ${buildId} for ${platform}. It will be reused from ${cacheDir}.`);
|
|
482
516
|
let lastReport = 0;
|
|
483
|
-
const installed =
|
|
517
|
+
const installed = yield* io(() => install({
|
|
484
518
|
browser,
|
|
485
519
|
buildId,
|
|
486
520
|
platform,
|
|
487
521
|
cacheDir: staging,
|
|
488
|
-
baseUrl: options.browser?.downloadBaseUrl ??
|
|
522
|
+
baseUrl: options.browser?.downloadBaseUrl ?? (browser === Browser.CHROME ? process.env.PUPPETEER_CHROME_DOWNLOAD_BASE_URL : void 0),
|
|
489
523
|
installDeps: false,
|
|
490
524
|
downloadProgressCallback(downloaded, total) {
|
|
491
525
|
const now = Date.now();
|
|
492
526
|
if (now - lastReport < 2e3 && downloaded !== total) return;
|
|
493
527
|
lastReport = now;
|
|
494
528
|
const progress = total > 0 ? `${Math.min(100, Math.floor(downloaded / total * 100))}%` : `${Math.round(downloaded / 1048576)} MiB`;
|
|
495
|
-
report(ctx, `Downloading
|
|
529
|
+
report(ctx, `Downloading ${label} ${buildId}: ${progress}`);
|
|
496
530
|
}
|
|
497
|
-
});
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
force: true
|
|
505
|
-
});
|
|
506
|
-
if (compromised) throw compromised;
|
|
507
|
-
await (0, node_fs_promises.rename)(installed.path, destination);
|
|
508
|
-
report(ctx, `Chrome ${buildId} is ready.`);
|
|
509
|
-
return executablePath;
|
|
510
|
-
} catch (cause) {
|
|
511
|
-
throw new Error(`Unable to provision Chrome ${buildId}. Check your connection, HTTP_PROXY/HTTPS_PROXY/NO_PROXY, browser.downloadBaseUrl and write access to ${cacheDir}, then retry. Alternatively, configure executablePath to an installed Chrome binary.`, { cause });
|
|
512
|
-
} finally {
|
|
513
|
-
try {
|
|
514
|
-
if (staging) await (0, node_fs_promises.rm)(staging, {
|
|
531
|
+
}));
|
|
532
|
+
yield* io(async () => {
|
|
533
|
+
if (compromised) throw compromised;
|
|
534
|
+
if (!await isExecutable(installed.executablePath)) throw new Error(`The browser archive did not contain an executable ${label} binary.`);
|
|
535
|
+
const destination = cache.installationDir(browser, platform, buildId);
|
|
536
|
+
await (0, node_fs_promises.mkdir)(cache.browserRoot(browser), { recursive: true });
|
|
537
|
+
await (0, node_fs_promises.rm)(destination, {
|
|
515
538
|
recursive: true,
|
|
516
539
|
force: true
|
|
517
540
|
});
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
}
|
|
521
|
-
|
|
541
|
+
if (compromised) throw compromised;
|
|
542
|
+
await (0, node_fs_promises.rename)(installed.path, destination);
|
|
543
|
+
}, "publication");
|
|
544
|
+
report(ctx, `${label} ${buildId} is ready.`);
|
|
545
|
+
return executablePath;
|
|
546
|
+
});
|
|
547
|
+
return Effect.runPromise(Effect.scoped(Effect.uninterruptible(program)).pipe(Effect.withSpan("browser.provision", { attributes: {
|
|
548
|
+
browser: label,
|
|
549
|
+
buildId,
|
|
550
|
+
platform
|
|
551
|
+
} })));
|
|
552
|
+
}
|
|
553
|
+
/** Promise boundary: callers receive ordinary SDK errors, never Effect internals. */
|
|
554
|
+
function ensureBrowser(options = {}, ctx) {
|
|
555
|
+
return provisionBrowser(options, ctx).catch((cause) => {
|
|
556
|
+
throw (0, _open_wa_driver_interface.toPublicError)(cause);
|
|
557
|
+
});
|
|
522
558
|
}
|
|
523
559
|
//#endregion
|
|
524
560
|
//#region src/PuppeteerDriver.ts
|
|
@@ -547,11 +583,12 @@ var PuppeteerDriver = class {
|
|
|
547
583
|
}
|
|
548
584
|
async init(ctx) {
|
|
549
585
|
this.ctx = ctx;
|
|
550
|
-
const
|
|
551
|
-
|
|
586
|
+
const { default: puppeteer } = await import("puppeteer-core");
|
|
587
|
+
const { addExtra } = await import("puppeteer-extra");
|
|
588
|
+
this.puppeteer = addExtra(puppeteer);
|
|
552
589
|
try {
|
|
553
590
|
const { createRequire } = await import("node:module");
|
|
554
|
-
const pkg = createRequire(__filename)("puppeteer/package.json");
|
|
591
|
+
const pkg = createRequire(__filename)("puppeteer-core/package.json");
|
|
555
592
|
this.version = pkg.version;
|
|
556
593
|
} catch {}
|
|
557
594
|
this.ctx?.logger?.info("PuppeteerDriver initialized", { version: this.version });
|
|
@@ -565,7 +602,8 @@ var PuppeteerDriver = class {
|
|
|
565
602
|
browser: "chrome",
|
|
566
603
|
headless: options?.headless ?? true,
|
|
567
604
|
executablePath,
|
|
568
|
-
args: options?.args || [],
|
|
605
|
+
args: ["--autoplay-policy=no-user-gesture-required", ...options?.args || []],
|
|
606
|
+
ignoreDefaultArgs: ["--mute-audio"],
|
|
569
607
|
defaultViewport: options?.defaultViewport,
|
|
570
608
|
userDataDir: options?.userDataDir,
|
|
571
609
|
timeout: options?.timeoutMs
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BrowserProvisionOptions, ConnectOptions, DisposableHandle, DriverCapabilities, IBrowser, IDriver, IDriverContext, IElementHandle, IFrame, IPage, LaunchOptions, NavigationWaitUntil, PageEventHandler, WaitForFunctionOptions } from "@open-wa/driver-interface";
|
|
2
|
-
import { Browser, CDPSession, ElementHandle, Page } from "puppeteer";
|
|
2
|
+
import { Browser, CDPSession, ElementHandle, Page } from "puppeteer-core";
|
|
3
3
|
//#region src/PuppeteerDriver.d.ts
|
|
4
4
|
export declare class PuppeteerDriver implements IDriver {
|
|
5
5
|
readonly name: 'puppeteer';
|
|
@@ -79,6 +79,7 @@ export declare class PuppeteerPage implements IPage {
|
|
|
79
79
|
type?: 'png' | 'jpeg';
|
|
80
80
|
fullPage?: boolean;
|
|
81
81
|
}): Promise<Uint8Array>;
|
|
82
|
+
grantMediaPermissions(origin: string): Promise<void>;
|
|
82
83
|
exposeFunction(name: string, fn: (...args: any[]) => any): Promise<void>;
|
|
83
84
|
on<K extends string>(event: K, handler: ((...args: any[]) => void | Promise<void>) | PageEventHandler<any>): DisposableHandle;
|
|
84
85
|
off<K extends string>(event: K, handler: ((...args: any[]) => void | Promise<void>) | PageEventHandler<any>): void;
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/PuppeteerDriver.ts","../src/ensureBrowser.ts","../src/PuppeteerBrowser.ts","../src/PuppeteerPage.ts","../src/PuppeteerElementHandle.ts"],"mappings":";;;qBAIa,2BAA2B;WAC3B;EACT;WACS,cAAc;UAEf;UACA;EAER;EAgBM,KAAK,MAAM,iBAAiB;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/PuppeteerDriver.ts","../src/ensureBrowser.ts","../src/PuppeteerBrowser.ts","../src/PuppeteerPage.ts","../src/PuppeteerElementHandle.ts"],"mappings":";;;qBAIa,2BAA2B;WAC3B;EACT;WACS,cAAc;UAEf;UACA;EAER;EAgBM,KAAK,MAAM,iBAAiB;EAiB5B,OAAO,UAAU,gBAAgB,QAAQ;EAmCzC,QAAQ,SAAS,iBAAiB,QAAQ;EAWhD;EAIA,IAAI,kBAAkB,KAAK;EAI3B,QAAQ,kBAAkB,KAAK;;;;iBC7FlB;EACb;EACA,UAAU;;wBA2LE,cAAc,UAAS,sBAA2B,MAAM,iBAAiB;;;qBC/L5E,4BAA4B;UAIzB;UACA;WAJH;EAET,YACY,SAAS,SACT,cAAc;EAGpB,QAAQ;IACV;MACA,QAAQ;EAWN,SAAS,QAAQ;EAKjB,SAAS;EAIf;EAIM,iBAAiB;EAIvB;EAIA,UAAU;;;;qBCoHD,yBAAyB;UAKtB;UACA;WALH;mBACQ;EAEjB,YACY,MAAM,MACN,cAAc;EAGpB,KAAK,aAAa;IAAY,YAAY;IAAqB;MAAuB;EAO5F;EAIM,UAAU;EAIhB,aAAa;EAIP,sBAAsB,KAAK,KAC7B,KAAK,KAAK,QAAQ,MAAM,QAAQ,MAChC,KAAK,MACN;EAIG,SAAS,KAAK,KAAK,KAAK,KAAK,QAAQ,MAAM,QAAQ,MAAM,KAAK,MAAM,QAAQ;EAS5E,eAAe,eAAe,iBAAiB,QAAQ;EAQvD,cAAc,iBAAiB,QAAQ;EAiBvC,YAAY;IAAY;IAAe;MAAmB;EAI1D,aAAa,aAAa;EAI1B,uBAAuB,mBAAmB;EAK1C,gBAAgB,kBAAkB;IAAY;MAAuB,QAAQ;EAY7E,gBAAgB,gBAAgB,UAAU,yBAAyB;EACnE,gBAAgB,KAAK,KAAK,KAAK,iBAAiB,KAAK,KAAK,UAAU,yBAAyB;EAoC7F,EAAE,mBAAmB,QAAQ;EAK7B,GAAG,mBAAmB,QAAQ;EAK9B,MAAM,mBAAmB;EAIzB,KAAK,kBAAkB,cAAc;IAAY;MAAqB;EAItE,WAAW;IAAY;IAAuB;MAAuB,QAAQ;EAK7E,sBAAsB,iBAAiB;EAIvC,eAAe,cAAc,QAAQ,sBAAsB;EAIjE,GAAG,kBAAkB,OAAO,GAAG,cAAc,uBAAuB,iBAAiB,wBAAwB;EAiB7G,IAAI,kBAAkB,OAAO,GAAG,cAAc,uBAAuB,iBAAiB;EAchF,SAAS;EAIf;EAIA,IAAI,kBAAkB,KAAK;EAI3B,QAAQ,kBAAkB,KAAK;EAUzB,OAAO,QAAQ;EAKf,uBAAuB,kBAAkB;EAKzC,IAAI;IAAY;IAAe;MAAoB,QAAQ;EAM3D,aAAa;IAAY;IAAe;MAA0B;EAKlE,eAAe,QAAQ;EAM7B,UAAU;UAIF;UAgBA;UAkBA;UAcA;;;;qBCrcC,kCAAkC;UACvB;EAApB,YAAoB,SAAS;EAEvB,SAAS;EAIT,KAAK,eAAe;EAIpB,aAAa,eAAe;EAK5B,eAAe;EAKf,WAAW;EAIjB,UAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-wa/driver-puppeteer",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"description": "Puppeteer driver implementation for open-wa",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"types": "./dist/index.d.cts",
|
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@open-wa/driver-interface": "5.
|
|
15
|
+
"@open-wa/driver-interface": "5.5.0",
|
|
16
16
|
"@puppeteer/browsers": "^3.2.3",
|
|
17
|
+
"effect": "4.0.2",
|
|
17
18
|
"proper-lockfile": "^4.1.2",
|
|
18
19
|
"proxy-agent": "^8.0.1",
|
|
19
|
-
"puppeteer": "^25.12.0",
|
|
20
|
+
"puppeteer-core": "^25.12.0",
|
|
20
21
|
"puppeteer-extra": "^3.3.6"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|