diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9661cc9..1d67a4e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 22 cache: npm - run: npm install netlify-cli -g - run: npm install diff --git a/src/__csp-nonce.ts b/src/__csp-nonce.ts index 8472705..35a2597 100644 --- a/src/__csp-nonce.ts +++ b/src/__csp-nonce.ts @@ -1,7 +1,7 @@ // @ts-ignore cannot find module import type { Config, Context } from "netlify:edge"; // @ts-ignore cannot find module -import { csp } from "https://deno.land/x/csp_nonce_html_transformer@v2.3.0/src/index-embedded-wasm.ts"; +import { csp } from "https://deno.land/x/csp_nonce_html_transformer@v2.4.0/src/index-embedded-wasm.ts"; // Using `import ... with ...` syntax directly fails due to the node 18 type-checking we're running on this file, // but this syntax works fine in deno 1.46.3 and 2.x which is what the functions are bundled and run with.