jose-node-esm-runtime
Advanced tools
Comparing version 4.14.6 to 4.15.0
@@ -30,1 +30,2 @@ export { compactDecrypt } from './jwe/compact/decrypt.js'; | ||
export * as base64url from './util/base64url.js'; | ||
export { default as cryptoRuntime } from './runtime/runtime.js'; |
@@ -48,1 +48,2 @@ export { compactDecrypt } from './jwe/compact/decrypt'; | ||
export type { KeyLike, JWK, FlattenedJWSInput, GeneralJWSInput, FlattenedJWS, GeneralJWS, JoseHeaderParameters, JWSHeaderParameters, JWEKeyManagementHeaderParameters, FlattenedJWE, GeneralJWE, JWEHeaderParameters, CritOption, DeflateOption, DecryptOptions, EncryptOptions, JWTClaimVerificationOptions, VerifyOptions, SignOptions, JWTPayload, DeflateFunction, InflateFunction, FlattenedDecryptResult, GeneralDecryptResult, CompactDecryptResult, FlattenedVerifyResult, GeneralVerifyResult, CompactVerifyResult, JWTVerifyResult, JWTDecryptResult, ResolvedKey, CompactJWEHeaderParameters, CompactJWSHeaderParameters, JWTHeaderParameters, JSONWebKeySet, } from './types'; | ||
export { default as cryptoRuntime } from './runtime/runtime'; |
@@ -79,12 +79,21 @@ /** | ||
/** | ||
* Generic Interface for consuming operations dynamic key resolution. No token components have been | ||
* verified at the time of this function call. | ||
* Generic Interface for consuming operations dynamic key resolution. | ||
* | ||
* If you cannot match a key suitable for the token, throw an error instead. | ||
* | ||
* @param protectedHeader JWE or JWS Protected Header. | ||
* @param token The consumed JWE or JWS token. | ||
* @param IProtectedHeader Type definition of the JWE or JWS Protected Header. | ||
* @param IToken Type definition of the consumed JWE or JWS token. | ||
*/ | ||
export interface GetKeyFunction<T, T2> { | ||
(protectedHeader: T, token: T2): Promise<KeyLike | Uint8Array> | KeyLike | Uint8Array | ||
export interface GetKeyFunction<IProtectedHeader, IToken> { | ||
/** | ||
* Dynamic key resolution function. No token components have been verified at the time of this | ||
* function call. | ||
* | ||
* If you cannot match a key suitable for the token, throw an error instead. | ||
* | ||
* @param protectedHeader JWE or JWS Protected Header. | ||
* @param token The consumed JWE or JWS token. | ||
*/ | ||
( | ||
protectedHeader: IProtectedHeader, | ||
token: IToken, | ||
): Promise<KeyLike | Uint8Array> | KeyLike | Uint8Array | ||
} | ||
@@ -601,1 +610,3 @@ | ||
} | ||
export type CryptoRuntime = 'WebCryptoAPI' | 'node:crypto' |
{ | ||
"name": "jose-node-esm-runtime", | ||
"version": "4.14.6", | ||
"version": "4.15.0", | ||
"homepage": "https://github.com/panva/jose", | ||
@@ -5,0 +5,0 @@ "repository": "panva/jose", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
223191
117
5581