Files
2024-03-07 12:48:47 +01:00

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.',
)
}