Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jose-node-esm-runtime

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jose-node-esm-runtime - npm Package Compare versions

Comparing version 4.14.6 to 4.15.0

dist/node/esm/runtime/runtime.js

1

dist/node/esm/index.js

@@ -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';

27

dist/types/types.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc