mirror of
https://github.com/danbulant/jose
synced 2026-05-24 20:41:46 +00:00
BREAKING CHANGE: Revised, Promise-based API BREAKING CHANGE: No dependencies BREAKING CHANGE: Browser support (using [Web Cryptography API](https://www.w3.org/TR/WebCryptoAPI/)) BREAKING CHANGE: Support for verification using a remote JWKS endpoint BREAKING CHANGE: Experimental Node.js libuv thread pool based runtime (non-blocking 🎉)
13 lines
630 B
TypeScript
13 lines
630 B
TypeScript
import { JOSENotSupported } from '../../util/errors.js'
|
|
import type { InflateFunction, DeflateFunction } from '../../types.d'
|
|
|
|
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, e.g. using the "pako" module.',
|
|
)
|
|
}
|
|
export const deflate: DeflateFunction = async () => {
|
|
throw new JOSENotSupported(
|
|
'JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime.',
|
|
)
|
|
}
|