jose-browser-runtime
Advanced tools
Comparing version 3.20.1 to 3.20.2
@@ -5,112 +5,142 @@ export class JOSEError extends Error { | ||
super(message); | ||
this.code = JOSEError.code; | ||
this.code = 'ERR_JOSE_GENERIC'; | ||
this.name = this.constructor.name; | ||
(_a = Error.captureStackTrace) === null || _a === void 0 ? void 0 : _a.call(Error, this, this.constructor); | ||
} | ||
static get code() { | ||
return 'ERR_JOSE_GENERIC'; | ||
} | ||
} | ||
JOSEError.code = 'ERR_JOSE_GENERIC'; | ||
export class JWTClaimValidationFailed extends JOSEError { | ||
constructor(message, claim = 'unspecified', reason = 'unspecified') { | ||
super(message); | ||
this.code = JWTClaimValidationFailed.code; | ||
this.code = 'ERR_JWT_CLAIM_VALIDATION_FAILED'; | ||
this.claim = claim; | ||
this.reason = reason; | ||
} | ||
static get code() { | ||
return 'ERR_JWT_CLAIM_VALIDATION_FAILED'; | ||
} | ||
} | ||
JWTClaimValidationFailed.code = 'ERR_JWT_CLAIM_VALIDATION_FAILED'; | ||
export class JOSEAlgNotAllowed extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = JOSEAlgNotAllowed.code; | ||
this.code = 'ERR_JOSE_ALG_NOT_ALLOWED'; | ||
} | ||
static get code() { | ||
return 'ERR_JOSE_ALG_NOT_ALLOWED'; | ||
} | ||
} | ||
JOSEAlgNotAllowed.code = 'ERR_JOSE_ALG_NOT_ALLOWED'; | ||
export class JOSENotSupported extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = JOSENotSupported.code; | ||
this.code = 'ERR_JOSE_NOT_SUPPORTED'; | ||
} | ||
static get code() { | ||
return 'ERR_JOSE_NOT_SUPPORTED'; | ||
} | ||
} | ||
JOSENotSupported.code = 'ERR_JOSE_NOT_SUPPORTED'; | ||
export class JWEDecryptionFailed extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = JWEDecryptionFailed.code; | ||
this.code = 'ERR_JWE_DECRYPTION_FAILED'; | ||
this.message = 'decryption operation failed'; | ||
} | ||
static get code() { | ||
return 'ERR_JWE_DECRYPTION_FAILED'; | ||
} | ||
} | ||
JWEDecryptionFailed.code = 'ERR_JWE_DECRYPTION_FAILED'; | ||
export class JWEInvalid extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = JWEInvalid.code; | ||
this.code = 'ERR_JWE_INVALID'; | ||
} | ||
static get code() { | ||
return 'ERR_JWE_INVALID'; | ||
} | ||
} | ||
JWEInvalid.code = 'ERR_JWE_INVALID'; | ||
export class JWSInvalid extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = JWSInvalid.code; | ||
this.code = 'ERR_JWS_INVALID'; | ||
} | ||
static get code() { | ||
return 'ERR_JWS_INVALID'; | ||
} | ||
} | ||
JWSInvalid.code = 'ERR_JWS_INVALID'; | ||
export class JWTInvalid extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = JWTInvalid.code; | ||
this.code = 'ERR_JWT_INVALID'; | ||
} | ||
static get code() { | ||
return 'ERR_JWT_INVALID'; | ||
} | ||
} | ||
JWTInvalid.code = 'ERR_JWT_INVALID'; | ||
export class JWKInvalid extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = JWKInvalid.code; | ||
this.code = 'ERR_JWK_INVALID'; | ||
} | ||
static get code() { | ||
return 'ERR_JWK_INVALID'; | ||
} | ||
} | ||
JWKInvalid.code = 'ERR_JWK_INVALID'; | ||
export class JWKSInvalid extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = JWKSInvalid.code; | ||
this.code = 'ERR_JWKS_INVALID'; | ||
} | ||
static get code() { | ||
return 'ERR_JWKS_INVALID'; | ||
} | ||
} | ||
JWKSInvalid.code = 'ERR_JWKS_INVALID'; | ||
export class JWKSNoMatchingKey extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = JWKSNoMatchingKey.code; | ||
this.code = 'ERR_JWKS_NO_MATCHING_KEY'; | ||
this.message = 'no applicable key found in the JSON Web Key Set'; | ||
} | ||
static get code() { | ||
return 'ERR_JWKS_NO_MATCHING_KEY'; | ||
} | ||
} | ||
JWKSNoMatchingKey.code = 'ERR_JWKS_NO_MATCHING_KEY'; | ||
export class JWKSMultipleMatchingKeys extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = JWKSMultipleMatchingKeys.code; | ||
this.code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS'; | ||
this.message = 'multiple matching keys found in the JSON Web Key Set'; | ||
} | ||
static get code() { | ||
return 'ERR_JWKS_MULTIPLE_MATCHING_KEYS'; | ||
} | ||
} | ||
JWKSMultipleMatchingKeys.code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS'; | ||
export class JWKSTimeout extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = JWKSTimeout.code; | ||
this.code = 'ERR_JWKS_TIMEOUT'; | ||
this.message = 'request timed out'; | ||
} | ||
static get code() { | ||
return 'ERR_JWKS_TIMEOUT'; | ||
} | ||
} | ||
JWKSTimeout.code = 'ERR_JWKS_TIMEOUT'; | ||
export class JWSSignatureVerificationFailed extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = JWSSignatureVerificationFailed.code; | ||
this.code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED'; | ||
this.message = 'signature verification failed'; | ||
} | ||
static get code() { | ||
return 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED'; | ||
} | ||
} | ||
JWSSignatureVerificationFailed.code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED'; | ||
export class JWTExpired extends JWTClaimValidationFailed { | ||
constructor() { | ||
super(...arguments); | ||
this.code = JWTExpired.code; | ||
this.code = 'ERR_JWT_EXPIRED'; | ||
} | ||
static get code() { | ||
return 'ERR_JWT_EXPIRED'; | ||
} | ||
} | ||
JWTExpired.code = 'ERR_JWT_EXPIRED'; |
export declare class JOSEError extends Error { | ||
static code: string; | ||
static get code(): string; | ||
code: string; | ||
@@ -7,3 +7,3 @@ constructor(message?: string); | ||
export declare class JWTClaimValidationFailed extends JOSEError { | ||
static code: string; | ||
static get code(): 'ERR_JWT_CLAIM_VALIDATION_FAILED'; | ||
code: string; | ||
@@ -15,11 +15,11 @@ claim: string; | ||
export declare class JOSEAlgNotAllowed extends JOSEError { | ||
static code: string; | ||
static get code(): 'ERR_JOSE_ALG_NOT_ALLOWED'; | ||
code: string; | ||
} | ||
export declare class JOSENotSupported extends JOSEError { | ||
static code: string; | ||
static get code(): 'ERR_JOSE_NOT_SUPPORTED'; | ||
code: string; | ||
} | ||
export declare class JWEDecryptionFailed extends JOSEError { | ||
static code: string; | ||
static get code(): 'ERR_JWE_DECRYPTION_FAILED'; | ||
code: string; | ||
@@ -29,23 +29,23 @@ message: string; | ||
export declare class JWEInvalid extends JOSEError { | ||
static code: string; | ||
static get code(): 'ERR_JWE_INVALID'; | ||
code: string; | ||
} | ||
export declare class JWSInvalid extends JOSEError { | ||
static code: string; | ||
static get code(): 'ERR_JWS_INVALID'; | ||
code: string; | ||
} | ||
export declare class JWTInvalid extends JOSEError { | ||
static code: string; | ||
static get code(): 'ERR_JWT_INVALID'; | ||
code: string; | ||
} | ||
export declare class JWKInvalid extends JOSEError { | ||
static code: string; | ||
static get code(): 'ERR_JWK_INVALID'; | ||
code: string; | ||
} | ||
export declare class JWKSInvalid extends JOSEError { | ||
static code: string; | ||
static get code(): 'ERR_JWKS_INVALID'; | ||
code: string; | ||
} | ||
export declare class JWKSNoMatchingKey extends JOSEError { | ||
static code: string; | ||
static get code(): 'ERR_JWKS_NO_MATCHING_KEY'; | ||
code: string; | ||
@@ -55,3 +55,3 @@ message: string; | ||
export declare class JWKSMultipleMatchingKeys extends JOSEError { | ||
static code: string; | ||
static get code(): 'ERR_JWKS_MULTIPLE_MATCHING_KEYS'; | ||
code: string; | ||
@@ -61,3 +61,3 @@ message: string; | ||
export declare class JWKSTimeout extends JOSEError { | ||
static code: string; | ||
static get code(): 'ERR_JWKS_TIMEOUT'; | ||
code: string; | ||
@@ -67,3 +67,3 @@ message: string; | ||
export declare class JWSSignatureVerificationFailed extends JOSEError { | ||
static code: string; | ||
static get code(): 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED'; | ||
code: string; | ||
@@ -73,4 +73,4 @@ message: string; | ||
export declare class JWTExpired extends JWTClaimValidationFailed { | ||
static code: string; | ||
static get code(): 'ERR_JWT_EXPIRED'; | ||
code: string; | ||
} |
{ | ||
"name": "jose-browser-runtime", | ||
"version": "3.20.1", | ||
"version": "3.20.2", | ||
"description": "(Browser Runtime) 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK with no dependencies", | ||
@@ -48,2 +48,3 @@ "keywords": [ | ||
"author": "Filip Skokan <panva.ip@gmail.com>", | ||
"sideEffects": false, | ||
"exports": { | ||
@@ -50,0 +51,0 @@ "./package.json": "./package.json", |
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
150072
3730