@@ -40,3 +40,4 @@ export { compactDecrypt } from './jwe/compact/decrypt.js'; | ||
| export type { ProtectedHeaderParameters } from './util/decode_protected_header.js'; | ||
| export * as errors from './util/errors.js'; | ||
| import * as errors from './util/errors.js'; | ||
| export { errors }; | ||
| export { generateKeyPair } from './key/generate_key_pair.js'; | ||
@@ -46,3 +47,4 @@ export type { GenerateKeyPairResult, GenerateKeyPairOptions } from './key/generate_key_pair.js'; | ||
| export type { GenerateSecretOptions } from './key/generate_secret.js'; | ||
| export * as base64url from './util/base64url.js'; | ||
| import * as base64url from './util/base64url.js'; | ||
| export { base64url }; | ||
| export type { CompactDecryptResult, CompactJWEHeaderParameters, CompactJWSHeaderParameters, CompactVerifyResult, CritOption, CryptoKey, DecryptOptions, EncryptOptions, FlattenedDecryptResult, FlattenedJWE, FlattenedJWS, FlattenedJWSInput, FlattenedVerifyResult, GeneralDecryptResult, GeneralJWE, GeneralJWS, GeneralJWSInput, GeneralVerifyResult, GetKeyFunction, JoseHeaderParameters, JSONWebKeySet, JWEHeaderParameters, JWEKeyManagementHeaderParameters, JWK_EC_Private, JWK_EC_Public, JWK_oct, JWK_OKP_Private, JWK_OKP_Public, JWK_RSA_Private, JWK_RSA_Public, JWK, JWKParameters, JWSHeaderParameters, JWTClaimVerificationOptions, JWTDecryptResult, JWTHeaderParameters, JWTPayload, JWTVerifyResult, KeyObject, ProduceJWT, ResolvedKey, SignOptions, VerifyOptions, } from './types.d.ts'; | ||
@@ -49,0 +51,0 @@ /** |
@@ -182,8 +182,7 @@ /** Generic JSON Web Key Parameters. */ | ||
| */ | ||
| export interface GetKeyFunction<IProtectedHeader, IToken> | ||
| extends GenericGetKeyFunction< | ||
| IProtectedHeader, | ||
| IToken, | ||
| CryptoKey | KeyObject | JWK | Uint8Array | ||
| > {} | ||
| export interface GetKeyFunction<IProtectedHeader, IToken> extends GenericGetKeyFunction< | ||
| IProtectedHeader, | ||
| IToken, | ||
| CryptoKey | KeyObject | JWK | Uint8Array | ||
| > {} | ||
@@ -190,0 +189,0 @@ /** |
@@ -26,6 +26,8 @@ export { compactDecrypt } from './jwe/compact/decrypt.js'; | ||
| export { decodeJwt } from './util/decode_jwt.js'; | ||
| export * as errors from './util/errors.js'; | ||
| import * as errors from './util/errors.js'; | ||
| export { errors }; | ||
| export { generateKeyPair } from './key/generate_key_pair.js'; | ||
| export { generateSecret } from './key/generate_secret.js'; | ||
| export * as base64url from './util/base64url.js'; | ||
| import * as base64url from './util/base64url.js'; | ||
| export { base64url }; | ||
| export const cryptoRuntime = 'WebCryptoAPI'; |
@@ -12,3 +12,3 @@ import { JOSEError, JWKSNoMatchingKey, JWKSTimeout } from '../util/errors.js'; | ||
| const NAME = 'jose'; | ||
| const VERSION = 'v6.1.2'; | ||
| const VERSION = 'v6.1.3'; | ||
| USER_AGENT = `${NAME}/${VERSION}`; | ||
@@ -15,0 +15,0 @@ } |
@@ -79,3 +79,3 @@ import { withAlg as invalidKeyInput } from './invalid_key_input.js'; | ||
| return; | ||
| throw new TypeError(`JSON Web Key for this operation be a private JWK`); | ||
| throw new TypeError(`JSON Web Key for this operation must be a private JWK`); | ||
| case 'encrypt': | ||
@@ -85,3 +85,3 @@ case 'verify': | ||
| return; | ||
| throw new TypeError(`JSON Web Key for this operation be a public JWK`); | ||
| throw new TypeError(`JSON Web Key for this operation must be a public JWK`); | ||
| } | ||
@@ -88,0 +88,0 @@ } |
+1
-1
| { | ||
| "name": "jose", | ||
| "version": "6.1.2", | ||
| "version": "6.1.3", | ||
| "description": "JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
257508
0.03%6330
0.05%