Skip to content

Commit 7c6edc8

Browse files
committed
chore: add named imports from pako
Signed-off-by: Krishna Waske <[email protected]>
1 parent 64254e4 commit 7c6edc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/modules/vc/models/credential/w3c-credential-status/bitstring-status-list/VerifyBitStringCredentialStatus.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { BitStringStatusListCredential, BitStringStatusListEntry } from './BitStringStatusList'
22
import type { AgentContext } from '../../../../../../agent/context'
33

4-
import * as pako from 'pako'
4+
import { ungzip } from 'pako'
55

66
import { CredoError } from '../../../../../../error'
77

@@ -45,7 +45,7 @@ export const verifyBitStringCredentialStatus = async (
4545
const compressedBuffer = Uint8Array.from(atob(encodedBitString), (char) => char.charCodeAt(0))
4646

4747
// Decompress the bit string using pako
48-
const decodedBitString = pako.ungzip(compressedBuffer, { to: 'string' })
48+
const decodedBitString = ungzip(compressedBuffer, { to: 'string' })
4949
const statusListIndex = Number(credentialStatus.statusListIndex)
5050

5151
// Ensure the statusListIndex is within bounds

0 commit comments

Comments
 (0)