From 01dfa48deedaf562dafabbb97fddceedc2cf3aed Mon Sep 17 00:00:00 2001 From: zuisong Date: Tue, 7 Nov 2023 11:08:17 +0800 Subject: [PATCH] upgrade deps --- deno.jsonc | 2 +- deno.lock | 37 +++++++++++++++++++++---------------- deps.ts | 2 +- rollup-deno-plugin.ts | 2 +- rollup.config.ts | 6 +++--- 5 files changed, 27 insertions(+), 22 deletions(-) diff --git a/deno.jsonc b/deno.jsonc index 068a9ab..9a493e6 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,6 +1,6 @@ { "imports": { - "deno_std/": "https://deno.land/std@0.202.0/", + "deno_std/": "https://deno.land/std@0.205.0/", "esm.sh/": "https://esm.sh/v133/", "@happy-dom/global-registrator": "npm:@happy-dom/global-registrator", "userscript-metadata-generator": "https://raw.githubusercontent.com/trim21/userscript-metadata-generator/v0.2.4/src/index.ts" diff --git a/deno.lock b/deno.lock index 74ab207..c9adf21 100644 --- a/deno.lock +++ b/deno.lock @@ -2,7 +2,8 @@ "version": "3", "packages": { "specifiers": { - "npm:@happy-dom/global-registrator": "npm:@happy-dom/global-registrator@12.10.3" + "npm:@happy-dom/global-registrator": "npm:@happy-dom/global-registrator@12.10.3", + "npm:@rollup/wasm-node@4.3.0": "npm:@rollup/wasm-node@4.3.0" }, "npm": { "@happy-dom/global-registrator@12.10.3": { @@ -11,6 +12,12 @@ "happy-dom": "happy-dom@12.10.3" } }, + "@rollup/wasm-node@4.3.0": { + "integrity": "sha512-Zo3f1XZcLBgwpRhbiilP8frsDVvdBisczrNZi+ByCcBh5Ua+9QfxiL0GLlqaVRueeakWRPp66ek/pqdBhHVuVw==", + "dependencies": { + "fsevents": "fsevents@2.3.3" + } + }, "css.escape@1.5.1": { "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==", "dependencies": {} @@ -19,6 +26,10 @@ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", "dependencies": {} }, + "fsevents@2.3.3": { + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dependencies": {} + }, "happy-dom@12.10.3": { "integrity": "sha512-JzUXOh0wdNGY54oKng5hliuBkq/+aT1V3YpTM+lrN/GoLQTANZsMaIvmHiHe612rauHvPJnDZkZ+5GZR++1Abg==", "dependencies": { @@ -56,28 +67,22 @@ } } }, - "redirects": { - "https://esm.sh/v133/@babel/standalone?bundle": "https://esm.sh/v133/@babel/standalone@7.23.2?bundle", - "https://esm.sh/v133/terser?bundle": "https://esm.sh/v133/terser@5.23.0?bundle" - }, "remote": { - "https://deno.land/std@0.202.0/assert/_constants.ts": "8a9da298c26750b28b326b297316cdde860bc237533b07e1337c021379e6b2a9", - "https://deno.land/std@0.202.0/assert/_diff.ts": "1a3c044aedf77647d6cac86b798c6417603361b66b54c53331b312caeb447aea", - "https://deno.land/std@0.202.0/assert/_format.ts": "a69126e8a469009adf4cf2a50af889aca364c349797e63174884a52ff75cf4c7", - "https://deno.land/std@0.202.0/assert/assert_equals.ts": "d8ec8a22447fbaf2fc9d7c3ed2e66790fdb74beae3e482855d75782218d68227", - "https://deno.land/std@0.202.0/assert/assertion_error.ts": "4d0bde9b374dfbcbe8ac23f54f567b77024fb67dbb1906a852d67fe050d42f56", - "https://deno.land/std@0.202.0/assert/equal.ts": "9f1a46d5993966d2596c44e5858eec821859b45f783a5ee2f7a695dfc12d8ece", - "https://deno.land/std@0.202.0/fmt/colors.ts": "c51c4642678eb690dcf5ffee5918b675bf01a33fba82acf303701ae1a4f8c8d9", - "https://deno.land/std@0.202.0/testing/_test_suite.ts": "30f018feeb3835f12ab198d8a518f9089b1bcb2e8c838a8b615ab10d5005465c", - "https://deno.land/std@0.202.0/testing/bdd.ts": "3f446df5ef8e856a869e8eec54c8482590415741ff0b6358a00c43486cc15769", + "https://deno.land/std@0.205.0/assert/_constants.ts": "8a9da298c26750b28b326b297316cdde860bc237533b07e1337c021379e6b2a9", + "https://deno.land/std@0.205.0/assert/_diff.ts": "58e1461cc61d8eb1eacbf2a010932bf6a05b79344b02ca38095f9b805795dc48", + "https://deno.land/std@0.205.0/assert/_format.ts": "a69126e8a469009adf4cf2a50af889aca364c349797e63174884a52ff75cf4c7", + "https://deno.land/std@0.205.0/assert/assert_equals.ts": "d8ec8a22447fbaf2fc9d7c3ed2e66790fdb74beae3e482855d75782218d68227", + "https://deno.land/std@0.205.0/assert/assertion_error.ts": "4d0bde9b374dfbcbe8ac23f54f567b77024fb67dbb1906a852d67fe050d42f56", + "https://deno.land/std@0.205.0/assert/equal.ts": "9f1a46d5993966d2596c44e5858eec821859b45f783a5ee2f7a695dfc12d8ece", + "https://deno.land/std@0.205.0/fmt/colors.ts": "c51c4642678eb690dcf5ffee5918b675bf01a33fba82acf303701ae1a4f8c8d9", + "https://deno.land/std@0.205.0/testing/_test_suite.ts": "30f018feeb3835f12ab198d8a518f9089b1bcb2e8c838a8b615ab10d5005465c", + "https://deno.land/std@0.205.0/testing/bdd.ts": "3f446df5ef8e856a869e8eec54c8482590415741ff0b6358a00c43486cc15769", "https://esm.sh/v133/@babel/standalone@7.23.2/denonext/standalone.bundle.mjs": "540cd1d819a18eff93d294bfa102f9f6134059e50314f4eeed2e4421be22fe04", "https://esm.sh/v133/@babel/standalone@7.23.2?bundle": "ccbfef0a1428605446970d63066dba5619a5d3d025d48b4803829eae2a399d6b", "https://esm.sh/v133/@jridgewell/resolve-uri@3.1.1": "2d2308789691294f8b0946f5684fcdef9234b01eb1114764b108cce884f7132a", "https://esm.sh/v133/@jridgewell/resolve-uri@3.1.1/denonext/resolve-uri.mjs": "239f11fbc4483ded7e3bc97eeaf942760d5e83d2e15cb8199e48ea61b6b49948", "https://esm.sh/v133/fflate@0.8.0": "4fb3aca65c818d1498afe625eb1df540d00a8d24dc283b5d3751e884a2175c35", "https://esm.sh/v133/fflate@0.8.0/denonext/fflate.mjs": "2792676fe3ccd7b23597f69e7601ef914ccf1883465609ae2788d5dd75548937", - "https://esm.sh/v133/rollup@3.29.4/denonext/rollup.bundle.mjs": "98f0918f2bfd9ae488ee90ae27aec98ee87f1b166b5de6d5d7bd4bef995b809d", - "https://esm.sh/v133/rollup@3.29.4?bundle": "e5971e2c362d9fa984560ca71030d786741559e249a65dc73913312bca0c7e4f", "https://esm.sh/v133/terser@5.23.0/denonext/terser.bundle.mjs": "7983c0c4d5955959529d57febeb4970d32ae52255e1f1ed58410cebe226242bb", "https://esm.sh/v133/terser@5.23.0?bundle": "d6777effcac73f733716c5e62e256c57aeb0b14360abcea286d000d2458bed3a", "https://raw.githubusercontent.com/trim21/userscript-metadata-generator/v0.2.4/src/index.ts": "829adaef20804c8bf4e8b8eaaf675b95bfd036da08b47494cab1897688033e27" diff --git a/deps.ts b/deps.ts index 36dca3c..b2bc771 100644 --- a/deps.ts +++ b/deps.ts @@ -1,3 +1,3 @@ -import * as rollup from "esm.sh/rollup@3.29.4?bundle"; +import * as rollup from "npm:@rollup/wasm-node@4.3.0"; export { default as resolveUri } from "esm.sh/@jridgewell/resolve-uri@3.1.1"; export { rollup }; diff --git a/rollup-deno-plugin.ts b/rollup-deno-plugin.ts index ba5c3ff..adc5006 100644 --- a/rollup-deno-plugin.ts +++ b/rollup-deno-plugin.ts @@ -57,7 +57,7 @@ class DenoResolve { private async info(nameStr: string, cwd?: string) { const p = new Deno.Command(Deno.execPath(), { args: ["info", nameStr, "--json"], - cwd: cwd, + cwd, }); const output = await p.output(); if (!output.success) { diff --git a/rollup.config.ts b/rollup.config.ts index f962118..7bf7e0d 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -1,10 +1,10 @@ import { meta } from "./build-common.ts"; import { rollup } from "./deps.ts"; import denoResolve from "./rollup-deno-plugin.ts"; -import * as babel from "esm.sh/@babel/standalone?bundle"; -import * as terser from "esm.sh/terser?bundle"; +import * as babel from "esm.sh/@babel/standalone@7.23.2?bundle"; +import * as terser from "esm.sh/terser@5.23.0?bundle"; -const config: rollup.RollupInoutOptions & { output: rollup.OutputOptions } = { +const config: rollup.InputOptions & { output: rollup.OutputOptions } = { input: ["./src/index.ts"], output: { sourcemap: true,