Skip to content
Myr

fix(jws): Only import necessary helper (not all helpers) (#2458)

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

* Update jws.ts This prevents a bundler from pulling in all helpers, including the "ssg" adapter which is not compatible with Cloudflare workers as it creates a "Request" in the global scope. * denoify

authored by Nick Randall · committed by GitHub · parent bda1321 · Browse files · 2 files+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:deno_dist/utils/jwt/jws.ts+1 added-1 removed
1import { getRuntimeKey } from '../../helper.ts'1import { getRuntimeKey } from '../../helper/adapter/index.ts'2import { decodeBase64 } from '../encode.ts'3import type { SignatureAlgorithm } from './jwa.ts'4import { JwtAlgorithmNotImplemented } from './types.ts'5import { CryptoKeyUsage } from './types.ts'
219 unmodified lines
modified:src/utils/jwt/jws.ts+1 added-1 removed
1import { getRuntimeKey } from '../../helper'1import { getRuntimeKey } from '../../helper/adapter'2import { decodeBase64 } from '../encode'3import type { SignatureAlgorithm } from './jwa'4import { JwtAlgorithmNotImplemented } from './types'5import { CryptoKeyUsage } from './types'
219 unmodified lines