jose-browser-runtime
Advanced tools
Comparing version 4.11.1 to 4.11.2
export class JOSEError extends Error { | ||
static get code() { | ||
return 'ERR_JOSE_GENERIC'; | ||
} | ||
constructor(message) { | ||
@@ -9,7 +12,7 @@ var _a; | ||
} | ||
} | ||
export class JWTClaimValidationFailed extends JOSEError { | ||
static get code() { | ||
return 'ERR_JOSE_GENERIC'; | ||
return 'ERR_JWT_CLAIM_VALIDATION_FAILED'; | ||
} | ||
} | ||
export class JWTClaimValidationFailed extends JOSEError { | ||
constructor(message, claim = 'unspecified', reason = 'unspecified') { | ||
@@ -21,7 +24,7 @@ super(message); | ||
} | ||
} | ||
export class JWTExpired extends JOSEError { | ||
static get code() { | ||
return 'ERR_JWT_CLAIM_VALIDATION_FAILED'; | ||
return 'ERR_JWT_EXPIRED'; | ||
} | ||
} | ||
export class JWTExpired extends JOSEError { | ||
constructor(message, claim = 'unspecified', reason = 'unspecified') { | ||
@@ -33,5 +36,2 @@ super(message); | ||
} | ||
static get code() { | ||
return 'ERR_JWT_EXPIRED'; | ||
} | ||
} | ||
@@ -38,0 +38,0 @@ export class JOSEAlgNotAllowed extends JOSEError { |
@@ -6,3 +6,3 @@ import type { FlattenedJWSInput, JWSHeaderParameters } from '../types'; | ||
* token's "jwk" (JSON Web Key) Header Parameter. It is recommended to combine this with the verify | ||
* algorithms option to whitelist JWS algorithms to accept. | ||
* function's `algorithms` option to define accepted JWS "alg" (Algorithm) Header Parameter values. | ||
* | ||
@@ -9,0 +9,0 @@ * @example Usage |
import type { JWSHeaderParameters, JWEHeaderParameters } from '../types'; | ||
export declare type ProtectedHeaderParameters = JWSHeaderParameters & JWEHeaderParameters; | ||
export type ProtectedHeaderParameters = JWSHeaderParameters & JWEHeaderParameters; | ||
/** | ||
@@ -4,0 +4,0 @@ * Decodes the Protected Header of a JWE/JWS/JWT token utilizing any JOSE serialization. |
{ | ||
"name": "jose-browser-runtime", | ||
"version": "4.11.1", | ||
"version": "4.11.2", | ||
"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
227708