Skip to content

Commit

Permalink
fix(jws): Only import necessary helper (not all helpers) (#2458)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nicksrandall authored Apr 3, 2024
1 parent bda1321 commit c8b8cf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deno_dist/utils/jwt/jws.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getRuntimeKey } from '../../helper.ts'
import { getRuntimeKey } from '../../helper/adapter/index.ts'
import { decodeBase64 } from '../encode.ts'
import type { SignatureAlgorithm } from './jwa.ts'
import { JwtAlgorithmNotImplemented } from './types.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/utils/jwt/jws.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getRuntimeKey } from '../../helper'
import { getRuntimeKey } from '../../helper/adapter'
import { decodeBase64 } from '../encode'
import type { SignatureAlgorithm } from './jwa'
import { JwtAlgorithmNotImplemented } from './types'
Expand Down

0 comments on commit c8b8cf4

Please sign in to comment.