Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Jul 29, 2022
1 parent 1cfc8ff commit 00e32d5
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/util/generateJwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,19 @@ export function generateJwt<T extends Audience>(
}

// /*
const {sign}: {sign: typeof import('jsonwebtoken-esm/sign')['default']} = suspend(() => {
// eslint-disable-next-line @typescript-eslint/no-shadow
// const {default: sign} = await import('jsonwebtoken-esm/sign')
// eslint-disable-next-line @typescript-eslint/no-shadow
return import(
/* webpackIgnore: true */
// @ts-expect-error -- TS don't like HRL classes in dynamic imports even though it's valid
new URL(
'https://cdn.skypack.dev/pin/[email protected]/mode=imports,min/optimized/jsonwebtoken-esm/sign.js'
const {default: sign}: {default: typeof import('jsonwebtoken-esm/sign')['default']} =
suspend(() => {
// eslint-disable-next-line @typescript-eslint/no-shadow
// const {default: sign} = await import('jsonwebtoken-esm/sign')
// eslint-disable-next-line @typescript-eslint/no-shadow
return import(
/* webpackIgnore: true */
// @ts-expect-error -- TS don't like HRL classes in dynamic imports even though it's valid
new URL(
'https://cdn.skypack.dev/pin/[email protected]/mode=imports,min/optimized/jsonwebtoken-esm/sign.js'
)
)
)
}, ['sanity-plugin-mux-input', 'jsonwebtoken-esm/sign'])
}, ['sanity-plugin-mux-input', 'jsonwebtoken-esm/sign'])
// */

return sign(
Expand Down

0 comments on commit 00e32d5

Please sign in to comment.