Skip to content
Myr

fix(types): fix unhandled types for Deno 2.2 (#3977)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by GitHub · parent fe90028 · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:src/adapter/bun/websocket.ts+1 added-1 removed
modified:src/middleware/secure-headers/secure-headers.ts+3 added-3 removed
124 unmodified lines
125 headersToSet: [string, string | string[]][]126) => [string, string][]127128const generateNonce = () => {129 const buffer = new Uint8Array(16)130 crypto.getRandomValues(buffer)131 return encodeBase64(buffer)129 const arrayBuffer = new Uint8Array(16)130 crypto.getRandomValues(arrayBuffer)131 return encodeBase64(arrayBuffer.buffer)132}133134export const NONCE: ContentSecurityPolicyOptionHandler = (ctx) => {135 const key = 'secureHeadersNonce'
196 unmodified lines