mirror of
https://github.com/hanzoai/jose.git
synced 2026-09-24 17:00:01 +00:00
14 lines
684 B
TypeScript
14 lines
684 B
TypeScript
import { JOSENotSupported } from '../util/errors.ts'
|
|
import type { InflateFunction, DeflateFunction } from '../types.d.ts'
|
|
|
|
export const inflate: InflateFunction = async () => {
|
|
throw new JOSENotSupported(
|
|
'JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `inflateRaw` decrypt option to provide Inflate Raw implementation.',
|
|
)
|
|
}
|
|
export const deflate: DeflateFunction = async () => {
|
|
throw new JOSENotSupported(
|
|
'JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `deflateRaw` encrypt option to provide Deflate Raw implementation.',
|
|
)
|
|
}
|