From 5193dc0b32446d1bb02999176f0b7cb282c45511 Mon Sep 17 00:00:00 2001 From: uki00a Date: Mon, 8 Jan 2024 15:20:21 +0900 Subject: [PATCH 01/18] chore: bump deno and std --- .github/workflows/ci.yml | 3 +-- deps.ts | 27 +++++++++++++-------------- import_map.test.json | 2 +- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e884a6..280623b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@master - uses: denoland/setup-deno@main with: - deno-version: "1.24.0" + deno-version: "1.39.2" - uses: browser-actions/setup-chrome@latest - name: Run linter if: matrix.os == 'ubuntu-latest' @@ -37,4 +37,3 @@ jobs: - name: Run tests run: | deno task test - diff --git a/deps.ts b/deps.ts index a5e80f3..80c7442 100644 --- a/deps.ts +++ b/deps.ts @@ -1,22 +1,21 @@ -export { exists } from "https://deno.land/std@0.149.0/fs/exists.ts"; -export { - dirname, - fromFileUrl, - join, - resolve, -} from "https://deno.land/std@0.149.0/path/mod.ts"; -export { BufReader } from "https://deno.land/std@0.149.0/io/bufio.ts"; -export { concat } from "https://deno.land/std@0.149.0/bytes/mod.ts"; +export { exists } from "https://deno.land/std@0.211.0/fs/exists.ts"; +export { dirname } from "https://deno.land/std@0.211.0/path/dirname.ts"; +export { fromFileUrl } from "https://deno.land/std@0.211.0/path/from_file_url.ts"; +export { join } from "https://deno.land/std@0.211.0/path/join.ts"; +export { resolve } from "https://deno.land/std@0.211.0/path/resolve.ts"; +export { BufReader } from "https://deno.land/std@0.211.0/io/bufio.ts"; +export { concat } from "https://deno.land/std@0.211.0/bytes/mod.ts"; // TODO: Remove this import statement. export { decode, encode } from "https://deno.land/std@0.84.0/encoding/utf8.ts"; export { - decode as decodeFromBase64, - encode as encodeToBase64, -} from "https://deno.land/std@0.149.0/encoding/base64.ts"; + decodeBase64 as decodeFromBase64, + encodeBase64 as encodeToBase64, +} from "https://deno.land/std@0.211.0/encoding/base64.ts"; export { deferred } from "https://deno.land/std@0.149.0/async/deferred.ts"; export type { Deferred } from "https://deno.land/std@0.149.0/async/deferred.ts"; -export { readAll, writeAll } from "https://deno.land/std@0.149.0/io/util.ts"; +export { readAll } from "https://deno.land/std@0.211.0/streams/read_all.ts"; +export { writeAll } from "https://deno.land/std@0.211.0/streams/write_all.ts"; export { assert, @@ -25,7 +24,7 @@ export { assertStrictEquals, assertStringIncludes, fail, -} from "https://deno.land/std@0.149.0/testing/asserts.ts"; +} from "https://deno.land/std@0.149.0/assert/mod.ts"; export { default as puppeteer } from "https://unpkg.com/puppeteer@13.3.2/lib/esm/puppeteer/web.js"; export { EventEmitter } from "https://unpkg.com/puppeteer@13.3.2/lib/esm/puppeteer/common/EventEmitter.js"; diff --git a/import_map.test.json b/import_map.test.json index 148c1af..daa0475 100644 --- a/import_map.test.json +++ b/import_map.test.json @@ -1,6 +1,6 @@ { "imports": { "https://deno.land/x/carol/mod.ts": "./mod.ts", - "https://deno.land/std/path/mod.ts": "https://deno.land/std@0.107.0/path/mod.ts" + "https://deno.land/std/path/mod.ts": "https://deno.land/std@0.211.0/path/mod.ts" } } From 0075d5ee68f1b2be48a75de6af1f4bfd11b97a0b Mon Sep 17 00:00:00 2001 From: uki00a Date: Mon, 8 Jan 2024 15:24:28 +0900 Subject: [PATCH 02/18] chore: fmt --- color.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/color.ts b/color.ts index 55cec6c..a32cad4 100644 --- a/color.ts +++ b/color.ts @@ -108,7 +108,7 @@ export class Color { ) { return null; } - const hasAlpha = (values[3] !== undefined); + const hasAlpha = values[3] !== undefined; if (match[1]) { // rgb/rgba const rgba = [ From 73fa91e455ddfbd068a76e2d4d0416c35fd8d67d Mon Sep 17 00:00:00 2001 From: uki00a Date: Mon, 8 Jan 2024 15:25:20 +0900 Subject: [PATCH 03/18] chore: set `timeout-minutes` --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 280623b..564c3dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] + timeout-minutes: 10 steps: - uses: actions/checkout@master - uses: denoland/setup-deno@main From 67d14c20446bf1cc798a66a06ce59f450fd8ecde Mon Sep 17 00:00:00 2001 From: uki00a Date: Mon, 8 Jan 2024 15:27:33 +0900 Subject: [PATCH 04/18] chore: lint --- puppeteer.ts | 1 + tools/generate_rpc_client.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/puppeteer.ts b/puppeteer.ts index c8c883c..801a18b 100644 --- a/puppeteer.ts +++ b/puppeteer.ts @@ -53,6 +53,7 @@ export async function launch( options: AppOptions, ): Promise { const chromeArgs = prepareChromeArgs(executablePath, headless, options); + // deno-lint-ignore no-deprecated-deno-api const chromeProcess = Deno.run({ cmd: chromeArgs, stderr: "piped", diff --git a/tools/generate_rpc_client.ts b/tools/generate_rpc_client.ts index 8488233..3ce8fa0 100644 --- a/tools/generate_rpc_client.ts +++ b/tools/generate_rpc_client.ts @@ -41,6 +41,7 @@ function validateOutput(output: string): void { } async function formatSource(source: string): Promise { + // deno-lint-ignore no-deprecated-deno-api const deno = Deno.run({ cmd: [Deno.execPath(), "fmt", "-"], stdin: "piped", From 2abf7e88427df58aa4797b3d2940ca06a516572c Mon Sep 17 00:00:00 2001 From: uki00a Date: Mon, 8 Jan 2024 15:29:41 +0900 Subject: [PATCH 05/18] fix: deps --- deps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps.ts b/deps.ts index 80c7442..d21dd71 100644 --- a/deps.ts +++ b/deps.ts @@ -3,7 +3,7 @@ export { dirname } from "https://deno.land/std@0.211.0/path/dirname.ts"; export { fromFileUrl } from "https://deno.land/std@0.211.0/path/from_file_url.ts"; export { join } from "https://deno.land/std@0.211.0/path/join.ts"; export { resolve } from "https://deno.land/std@0.211.0/path/resolve.ts"; -export { BufReader } from "https://deno.land/std@0.211.0/io/bufio.ts"; +export { BufReader } from "https://deno.land/std@0.211.0/io/buf_reader.ts"; export { concat } from "https://deno.land/std@0.211.0/bytes/mod.ts"; // TODO: Remove this import statement. export { decode, encode } from "https://deno.land/std@0.84.0/encoding/utf8.ts"; From 1e29d8be338b963f786286e5f17a4a6d029b91c0 Mon Sep 17 00:00:00 2001 From: uki00a Date: Mon, 8 Jan 2024 15:33:44 +0900 Subject: [PATCH 06/18] fix: assert module could not be imported --- deps.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/deps.ts b/deps.ts index d21dd71..23ab1ed 100644 --- a/deps.ts +++ b/deps.ts @@ -17,14 +17,12 @@ export type { Deferred } from "https://deno.land/std@0.149.0/async/deferred.ts"; export { readAll } from "https://deno.land/std@0.211.0/streams/read_all.ts"; export { writeAll } from "https://deno.land/std@0.211.0/streams/write_all.ts"; -export { - assert, - assertEquals, - assertRejects, - assertStrictEquals, - assertStringIncludes, - fail, -} from "https://deno.land/std@0.149.0/assert/mod.ts"; +export { assert } from "https://deno.land/std@0.211.0/assert/assert.ts"; +export { assertEquals } from "https://deno.land/std@0.211.0/assert/assert_equals.ts"; +export { assertRejects } from "https://deno.land/std@0.211.0/assert/assert_rejects.ts"; +export { assertStrictEquals } from "https://deno.land/std@0.211.0/assert/assert_strict_equals.ts"; +export { assertStringIncludes } from "https://deno.land/std@0.211.0/assert/assert_string_includes.ts"; +export { fail } from "https://deno.land/std@0.211.0/assert/fail.ts"; export { default as puppeteer } from "https://unpkg.com/puppeteer@13.3.2/lib/esm/puppeteer/web.js"; export { EventEmitter } from "https://unpkg.com/puppeteer@13.3.2/lib/esm/puppeteer/common/EventEmitter.js"; From 6e7623085c72acd89d59c1e021b9ce4d0a9b42dd Mon Sep 17 00:00:00 2001 From: uki00a Date: Mon, 8 Jan 2024 15:39:53 +0900 Subject: [PATCH 07/18] fix: type errors --- http_request.ts | 2 +- locate.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/http_request.ts b/http_request.ts index a01694e..4e3e272 100644 --- a/http_request.ts +++ b/http_request.ts @@ -189,7 +189,7 @@ export class HttpRequest implements types.HttpRequest { text += CRLF; let responseBuffer = encode(text); if (body) { - responseBuffer = concat(responseBuffer, body); + responseBuffer = concat([responseBuffer, body]); } return this.resolve_({ diff --git a/locate.ts b/locate.ts index ee13658..191de9d 100644 --- a/locate.ts +++ b/locate.ts @@ -27,10 +27,8 @@ import { exists } from "./deps.ts"; -type OS = "darwin" | "linux" | "windows"; - export async function locateChrome( - os: OS = Deno.build.os, + os: typeof Deno.build.os = Deno.build.os, env = Deno.env, ): Promise { let paths!: string[]; From 81f454d9c3f00daa053084f83368d5c3ea113164 Mon Sep 17 00:00:00 2001 From: uki00a Date: Mon, 8 Jan 2024 15:54:46 +0900 Subject: [PATCH 08/18] chore: set CAROL_DEBUG --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 564c3dd..1a6fad0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,5 +36,7 @@ jobs: - name: Show chrome version run: chrome --version - name: Run tests + env: + CAROL_DEBUG: 1 run: | deno task test From bb4e617f187475856d1908adeaf1e0cf679d0a1f Mon Sep 17 00:00:00 2001 From: uki00a Date: Mon, 8 Jan 2024 16:09:06 +0900 Subject: [PATCH 09/18] fix: log error --- carol.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/carol.ts b/carol.ts index 56b3eae..999af81 100644 --- a/carol.ts +++ b/carol.ts @@ -26,6 +26,7 @@ import { EventEmitter, exists, join, + readAll, } from "./deps.ts"; import type { Browser, CDPSession, Page, Target } from "./deps.ts"; import { launch as launchPuppeteer } from "./puppeteer.ts"; @@ -803,7 +804,14 @@ export async function launch( options, ); const app = new Application(browser, chromeProcess, logger, options); - await app.init_(); + try { + await app.init_(); + } catch (e) { + const errorMessage = decode(await readAll(chromeProcess.stderr)); + logger.error(e); + await app.exit(); + throw e; + } return app; } catch (e) { if (e.toString().includes("Target closed")) { From 728096d2a6eda27e17b4a95f23b868bf688d99b3 Mon Sep 17 00:00:00 2001 From: uki00a Date: Mon, 8 Jan 2024 16:11:43 +0900 Subject: [PATCH 10/18] fix: lint error --- carol.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/carol.ts b/carol.ts index 999af81..f6e7552 100644 --- a/carol.ts +++ b/carol.ts @@ -807,8 +807,11 @@ export async function launch( try { await app.init_(); } catch (e) { - const errorMessage = decode(await readAll(chromeProcess.stderr)); logger.error(e); + + const errorMessage = decode(await readAll(chromeProcess.stderr)); + logger.error(errorMessage); + await app.exit(); throw e; } From b15566ff7814f7241de2d4cd6a60504146d06b99 Mon Sep 17 00:00:00 2001 From: uki00a Date: Mon, 8 Jan 2024 16:15:48 +0900 Subject: [PATCH 11/18] fix: type error --- carol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/carol.ts b/carol.ts index f6e7552..d4190eb 100644 --- a/carol.ts +++ b/carol.ts @@ -809,7 +809,7 @@ export async function launch( } catch (e) { logger.error(e); - const errorMessage = decode(await readAll(chromeProcess.stderr)); + const errorMessage = decode(await readAll(chromeProcess.stderr!)); logger.error(errorMessage); await app.exit(); From 26baea345aa3e97030f055c26496ad562d9b0da2 Mon Sep 17 00:00:00 2001 From: uki00a Date: Mon, 8 Jan 2024 16:23:02 +0900 Subject: [PATCH 12/18] chore: remove logging --- carol.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/carol.ts b/carol.ts index d4190eb..56b3eae 100644 --- a/carol.ts +++ b/carol.ts @@ -26,7 +26,6 @@ import { EventEmitter, exists, join, - readAll, } from "./deps.ts"; import type { Browser, CDPSession, Page, Target } from "./deps.ts"; import { launch as launchPuppeteer } from "./puppeteer.ts"; @@ -804,17 +803,7 @@ export async function launch( options, ); const app = new Application(browser, chromeProcess, logger, options); - try { - await app.init_(); - } catch (e) { - logger.error(e); - - const errorMessage = decode(await readAll(chromeProcess.stderr!)); - logger.error(errorMessage); - - await app.exit(); - throw e; - } + await app.init_(); return app; } catch (e) { if (e.toString().includes("Target closed")) { From 9b933fe7f6633a6294fa4b62795c008f6c31abd3 Mon Sep 17 00:00:00 2001 From: uki00a Date: Wed, 10 Jan 2024 03:18:35 +0900 Subject: [PATCH 13/18] ci: pin chrome to v103 --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a6fad0..a4982c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,8 @@ jobs: with: deno-version: "1.39.2" - uses: browser-actions/setup-chrome@latest + with: + chrome-version: 103 - name: Run linter if: matrix.os == 'ubuntu-latest' run: | From 5bec6efc28e98b19dcac43a02df8b3f8b2f62c37 Mon Sep 17 00:00:00 2001 From: uki00a Date: Wed, 10 Jan 2024 03:26:38 +0900 Subject: [PATCH 14/18] chore: pin chrome version to v113 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4982c3..1462531 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: deno-version: "1.39.2" - uses: browser-actions/setup-chrome@latest with: - chrome-version: 103 + chrome-version: 113 - name: Run linter if: matrix.os == 'ubuntu-latest' run: | From d0d8763562b89e925d39cef223a122c26c9ef571 Mon Sep 17 00:00:00 2001 From: uki00a Date: Thu, 11 Jan 2024 03:53:32 +0900 Subject: [PATCH 15/18] deps: migrate to `puppeteer-core@20.1.0` --- deps.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/deps.ts b/deps.ts index 23ab1ed..51cae20 100644 --- a/deps.ts +++ b/deps.ts @@ -24,11 +24,11 @@ export { assertStrictEquals } from "https://deno.land/std@0.211.0/assert/assert_ export { assertStringIncludes } from "https://deno.land/std@0.211.0/assert/assert_string_includes.ts"; export { fail } from "https://deno.land/std@0.211.0/assert/fail.ts"; -export { default as puppeteer } from "https://unpkg.com/puppeteer@13.3.2/lib/esm/puppeteer/web.js"; -export { EventEmitter } from "https://unpkg.com/puppeteer@13.3.2/lib/esm/puppeteer/common/EventEmitter.js"; -export { BrowserWebSocketTransport } from "https://unpkg.com/puppeteer@13.3.2/lib/esm/puppeteer/common/BrowserWebSocketTransport.js"; +export { default as puppeteer } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/puppeteer-core.js?pin=v135"; +export { EventEmitter } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/common/EventEmitter.js?pin=v135"; +export { BrowserWebSocketTransport } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/common/BrowserWebSocketTransport.js?pin=v135"; -export type { Browser } from "https://unpkg.com/puppeteer@13.3.2/lib/esm/puppeteer/common/Browser.js"; -export type { Target } from "https://unpkg.com/puppeteer@13.3.2/lib/esm/puppeteer/common/Target.js"; -export type { CDPSession } from "https://unpkg.com/puppeteer@13.3.2/lib/esm/puppeteer/common/Connection.js"; -export type { Page } from "https://unpkg.com/puppeteer@13.3.2/lib/esm/puppeteer/common/Page.js"; +export type { Browser } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/common/Browser.js?pin=v135"; +export type { Target } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/common/Target.js?pin=v135"; +export type { CDPSession } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/common/Connection.js?pin=v135"; +export type { Page } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/common/Page.js?pin=v135"; From 1327637aad91d9347c50d2f12caad0e1c8e53ace Mon Sep 17 00:00:00 2001 From: uki00a Date: Thu, 11 Jan 2024 03:59:43 +0900 Subject: [PATCH 16/18] fix: puppeteer-core imports --- deps.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/deps.ts b/deps.ts index 51cae20..0301e15 100644 --- a/deps.ts +++ b/deps.ts @@ -24,11 +24,12 @@ export { assertStrictEquals } from "https://deno.land/std@0.211.0/assert/assert_ export { assertStringIncludes } from "https://deno.land/std@0.211.0/assert/assert_string_includes.ts"; export { fail } from "https://deno.land/std@0.211.0/assert/fail.ts"; -export { default as puppeteer } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/puppeteer-core.js?pin=v135"; -export { EventEmitter } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/common/EventEmitter.js?pin=v135"; -export { BrowserWebSocketTransport } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/common/BrowserWebSocketTransport.js?pin=v135"; - -export type { Browser } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/common/Browser.js?pin=v135"; -export type { Target } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/common/Target.js?pin=v135"; -export type { CDPSession } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/common/Connection.js?pin=v135"; -export type { Page } from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/common/Page.js?pin=v135"; +export { + type Browser, + BrowserWebSocketTransport, + type CDPSession, + default as puppeteer, + EventEmitter, + type Page, + type Target, +} from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/puppeteer-core.js?pin=v135"; From 9bc97fd11b231ae4387d4d75a2a6cc35c5ef9364 Mon Sep 17 00:00:00 2001 From: uki00a Date: Sat, 13 Jan 2024 20:41:04 +0900 Subject: [PATCH 17/18] deps: bump deno and std --- .github/workflows/ci.yml | 2 +- deps.ts | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1462531..de1d419 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@master - uses: denoland/setup-deno@main with: - deno-version: "1.39.2" + deno-version: "1.39.3" - uses: browser-actions/setup-chrome@latest with: chrome-version: 113 diff --git a/deps.ts b/deps.ts index 0301e15..0d3d201 100644 --- a/deps.ts +++ b/deps.ts @@ -1,28 +1,28 @@ -export { exists } from "https://deno.land/std@0.211.0/fs/exists.ts"; -export { dirname } from "https://deno.land/std@0.211.0/path/dirname.ts"; -export { fromFileUrl } from "https://deno.land/std@0.211.0/path/from_file_url.ts"; -export { join } from "https://deno.land/std@0.211.0/path/join.ts"; -export { resolve } from "https://deno.land/std@0.211.0/path/resolve.ts"; -export { BufReader } from "https://deno.land/std@0.211.0/io/buf_reader.ts"; -export { concat } from "https://deno.land/std@0.211.0/bytes/mod.ts"; +export { exists } from "https://deno.land/std@0.212.0/fs/exists.ts"; +export { dirname } from "https://deno.land/std@0.212.0/path/dirname.ts"; +export { fromFileUrl } from "https://deno.land/std@0.212.0/path/from_file_url.ts"; +export { join } from "https://deno.land/std@0.212.0/path/join.ts"; +export { resolve } from "https://deno.land/std@0.212.0/path/resolve.ts"; +export { BufReader } from "https://deno.land/std@0.212.0/io/buf_reader.ts"; +export { concat } from "https://deno.land/std@0.212.0/bytes/mod.ts"; // TODO: Remove this import statement. export { decode, encode } from "https://deno.land/std@0.84.0/encoding/utf8.ts"; export { decodeBase64 as decodeFromBase64, encodeBase64 as encodeToBase64, -} from "https://deno.land/std@0.211.0/encoding/base64.ts"; +} from "https://deno.land/std@0.212.0/encoding/base64.ts"; export { deferred } from "https://deno.land/std@0.149.0/async/deferred.ts"; export type { Deferred } from "https://deno.land/std@0.149.0/async/deferred.ts"; -export { readAll } from "https://deno.land/std@0.211.0/streams/read_all.ts"; -export { writeAll } from "https://deno.land/std@0.211.0/streams/write_all.ts"; +export { readAll } from "https://deno.land/std@0.212.0/streams/read_all.ts"; +export { writeAll } from "https://deno.land/std@0.212.0/streams/write_all.ts"; -export { assert } from "https://deno.land/std@0.211.0/assert/assert.ts"; -export { assertEquals } from "https://deno.land/std@0.211.0/assert/assert_equals.ts"; -export { assertRejects } from "https://deno.land/std@0.211.0/assert/assert_rejects.ts"; -export { assertStrictEquals } from "https://deno.land/std@0.211.0/assert/assert_strict_equals.ts"; -export { assertStringIncludes } from "https://deno.land/std@0.211.0/assert/assert_string_includes.ts"; -export { fail } from "https://deno.land/std@0.211.0/assert/fail.ts"; +export { assert } from "https://deno.land/std@0.212.0/assert/assert.ts"; +export { assertEquals } from "https://deno.land/std@0.212.0/assert/assert_equals.ts"; +export { assertRejects } from "https://deno.land/std@0.212.0/assert/assert_rejects.ts"; +export { assertStrictEquals } from "https://deno.land/std@0.212.0/assert/assert_strict_equals.ts"; +export { assertStringIncludes } from "https://deno.land/std@0.212.0/assert/assert_string_includes.ts"; +export { fail } from "https://deno.land/std@0.212.0/assert/fail.ts"; export { type Browser, From 570b3a751b07cccb2dc6c37c9c126b16a2934b4c Mon Sep 17 00:00:00 2001 From: uki00a Date: Sat, 13 Jan 2024 20:54:08 +0900 Subject: [PATCH 18/18] deps: use puppeteer-core via npm: --- deps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps.ts b/deps.ts index 0d3d201..4fcabb5 100644 --- a/deps.ts +++ b/deps.ts @@ -32,4 +32,4 @@ export { EventEmitter, type Page, type Target, -} from "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/puppeteer-core.js?pin=v135"; +} from "npm:puppeteer-core@20.1.0"; // "https://esm.sh/puppeteer-core@20.1.0/lib/esm/puppeteer/puppeteer-core.js?pin=v135";