Socket
Socket
Sign inDemoInstall

jose

Package Overview
Dependencies
Maintainers
1
Versions
209
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jose - npm Package Compare versions

Comparing version 3.10.0 to 3.11.0

42

dist/browser/util/errors.js
export class JOSEError extends Error {
constructor(message) {
super(message);
this.code = 'ERR_JOSE_GENERIC';
this.code = JOSEError.code;
this.name = this.constructor.name;

@@ -11,6 +11,7 @@ if (Error.captureStackTrace) {

}
JOSEError.code = 'ERR_JOSE_GENERIC';
export class JWTClaimValidationFailed extends JOSEError {
constructor(message, claim = 'unspecified', reason = 'unspecified') {
super(message);
this.code = 'ERR_JWT_CLAIM_VALIDATION_FAILED';
this.code = JWTClaimValidationFailed.code;
this.claim = claim;

@@ -20,77 +21,90 @@ this.reason = reason;

}
JWTClaimValidationFailed.code = 'ERR_JWT_CLAIM_VALIDATION_FAILED';
export class JOSEAlgNotAllowed extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JOSE_ALG_NOT_ALLOWED';
this.code = JOSEAlgNotAllowed.code;
}
}
JOSEAlgNotAllowed.code = 'ERR_JOSE_ALG_NOT_ALLOWED';
export class JOSENotSupported extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JOSE_NOT_SUPPORTED';
this.code = JOSENotSupported.code;
}
}
JOSENotSupported.code = 'ERR_JOSE_NOT_SUPPORTED';
export class JWEDecryptionFailed extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWE_DECRYPTION_FAILED';
this.code = JWEDecryptionFailed.code;
this.message = 'decryption operation failed';
}
}
JWEDecryptionFailed.code = 'ERR_JWE_DECRYPTION_FAILED';
export class JWEInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWE_INVALID';
this.code = JWEInvalid.code;
}
}
JWEInvalid.code = 'ERR_JWE_INVALID';
export class JWSInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWS_INVALID';
this.code = JWSInvalid.code;
}
}
JWSInvalid.code = 'ERR_JWS_INVALID';
export class JWTInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWT_INVALID';
this.code = JWTInvalid.code;
}
}
JWTInvalid.code = 'ERR_JWT_INVALID';
export class JWKInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWK_INVALID';
this.code = JWKInvalid.code;
}
}
JWKInvalid.code = 'ERR_JWK_INVALID';
export class JWKSInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWKS_INVALID';
this.code = JWKSInvalid.code;
}
}
JWKSInvalid.code = 'ERR_JWKS_INVALID';
export class JWKSNoMatchingKey extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWKS_NO_MATCHING_KEY';
this.code = JWKSNoMatchingKey.code;
this.message = 'no applicable key found in the JSON Web Key Set';
}
}
JWKSNoMatchingKey.code = 'ERR_JWKS_NO_MATCHING_KEY';
export class JWKSMultipleMatchingKeys extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS';
this.code = JWKSMultipleMatchingKeys.code;
this.message = 'multiple matching keys found in the JSON Web Key Set';
}
}
JWKSMultipleMatchingKeys.code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS';
export class JWSSignatureVerificationFailed extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED';
this.code = JWSSignatureVerificationFailed.code;
this.message = 'signature verification failed';
}
}
JWSSignatureVerificationFailed.code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED';
export class JWTExpired extends JWTClaimValidationFailed {
constructor() {
super(...arguments);
this.code = 'ERR_JWT_EXPIRED';
this.code = JWTExpired.code;
}
}
JWTExpired.code = 'ERR_JWT_EXPIRED';

@@ -7,3 +7,3 @@ "use strict";

super(message);
this.code = 'ERR_JOSE_GENERIC';
this.code = JOSEError.code;
this.name = this.constructor.name;

@@ -16,6 +16,7 @@ if (Error.captureStackTrace) {

exports.JOSEError = JOSEError;
JOSEError.code = 'ERR_JOSE_GENERIC';
class JWTClaimValidationFailed extends JOSEError {
constructor(message, claim = 'unspecified', reason = 'unspecified') {
super(message);
this.code = 'ERR_JWT_CLAIM_VALIDATION_FAILED';
this.code = JWTClaimValidationFailed.code;
this.claim = claim;

@@ -26,20 +27,23 @@ this.reason = reason;

exports.JWTClaimValidationFailed = JWTClaimValidationFailed;
JWTClaimValidationFailed.code = 'ERR_JWT_CLAIM_VALIDATION_FAILED';
class JOSEAlgNotAllowed extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JOSE_ALG_NOT_ALLOWED';
this.code = JOSEAlgNotAllowed.code;
}
}
exports.JOSEAlgNotAllowed = JOSEAlgNotAllowed;
JOSEAlgNotAllowed.code = 'ERR_JOSE_ALG_NOT_ALLOWED';
class JOSENotSupported extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JOSE_NOT_SUPPORTED';
this.code = JOSENotSupported.code;
}
}
exports.JOSENotSupported = JOSENotSupported;
JOSENotSupported.code = 'ERR_JOSE_NOT_SUPPORTED';
class JWEDecryptionFailed extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWE_DECRYPTION_FAILED';
this.code = JWEDecryptionFailed.code;
this.message = 'decryption operation failed';

@@ -49,41 +53,47 @@ }

exports.JWEDecryptionFailed = JWEDecryptionFailed;
JWEDecryptionFailed.code = 'ERR_JWE_DECRYPTION_FAILED';
class JWEInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWE_INVALID';
this.code = JWEInvalid.code;
}
}
exports.JWEInvalid = JWEInvalid;
JWEInvalid.code = 'ERR_JWE_INVALID';
class JWSInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWS_INVALID';
this.code = JWSInvalid.code;
}
}
exports.JWSInvalid = JWSInvalid;
JWSInvalid.code = 'ERR_JWS_INVALID';
class JWTInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWT_INVALID';
this.code = JWTInvalid.code;
}
}
exports.JWTInvalid = JWTInvalid;
JWTInvalid.code = 'ERR_JWT_INVALID';
class JWKInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWK_INVALID';
this.code = JWKInvalid.code;
}
}
exports.JWKInvalid = JWKInvalid;
JWKInvalid.code = 'ERR_JWK_INVALID';
class JWKSInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWKS_INVALID';
this.code = JWKSInvalid.code;
}
}
exports.JWKSInvalid = JWKSInvalid;
JWKSInvalid.code = 'ERR_JWKS_INVALID';
class JWKSNoMatchingKey extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWKS_NO_MATCHING_KEY';
this.code = JWKSNoMatchingKey.code;
this.message = 'no applicable key found in the JSON Web Key Set';

@@ -93,6 +103,7 @@ }

exports.JWKSNoMatchingKey = JWKSNoMatchingKey;
JWKSNoMatchingKey.code = 'ERR_JWKS_NO_MATCHING_KEY';
class JWKSMultipleMatchingKeys extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS';
this.code = JWKSMultipleMatchingKeys.code;
this.message = 'multiple matching keys found in the JSON Web Key Set';

@@ -102,6 +113,7 @@ }

exports.JWKSMultipleMatchingKeys = JWKSMultipleMatchingKeys;
JWKSMultipleMatchingKeys.code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS';
class JWSSignatureVerificationFailed extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED';
this.code = JWSSignatureVerificationFailed.code;
this.message = 'signature verification failed';

@@ -111,8 +123,10 @@ }

exports.JWSSignatureVerificationFailed = JWSSignatureVerificationFailed;
JWSSignatureVerificationFailed.code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED';
class JWTExpired extends JWTClaimValidationFailed {
constructor() {
super(...arguments);
this.code = 'ERR_JWT_EXPIRED';
this.code = JWTExpired.code;
}
}
exports.JWTExpired = JWTExpired;
JWTExpired.code = 'ERR_JWT_EXPIRED';
export class JOSEError extends Error {
constructor(message) {
super(message);
this.code = 'ERR_JOSE_GENERIC';
this.code = JOSEError.code;
this.name = this.constructor.name;

@@ -11,6 +11,7 @@ if (Error.captureStackTrace) {

}
JOSEError.code = 'ERR_JOSE_GENERIC';
export class JWTClaimValidationFailed extends JOSEError {
constructor(message, claim = 'unspecified', reason = 'unspecified') {
super(message);
this.code = 'ERR_JWT_CLAIM_VALIDATION_FAILED';
this.code = JWTClaimValidationFailed.code;
this.claim = claim;

@@ -20,77 +21,90 @@ this.reason = reason;

}
JWTClaimValidationFailed.code = 'ERR_JWT_CLAIM_VALIDATION_FAILED';
export class JOSEAlgNotAllowed extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JOSE_ALG_NOT_ALLOWED';
this.code = JOSEAlgNotAllowed.code;
}
}
JOSEAlgNotAllowed.code = 'ERR_JOSE_ALG_NOT_ALLOWED';
export class JOSENotSupported extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JOSE_NOT_SUPPORTED';
this.code = JOSENotSupported.code;
}
}
JOSENotSupported.code = 'ERR_JOSE_NOT_SUPPORTED';
export class JWEDecryptionFailed extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWE_DECRYPTION_FAILED';
this.code = JWEDecryptionFailed.code;
this.message = 'decryption operation failed';
}
}
JWEDecryptionFailed.code = 'ERR_JWE_DECRYPTION_FAILED';
export class JWEInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWE_INVALID';
this.code = JWEInvalid.code;
}
}
JWEInvalid.code = 'ERR_JWE_INVALID';
export class JWSInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWS_INVALID';
this.code = JWSInvalid.code;
}
}
JWSInvalid.code = 'ERR_JWS_INVALID';
export class JWTInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWT_INVALID';
this.code = JWTInvalid.code;
}
}
JWTInvalid.code = 'ERR_JWT_INVALID';
export class JWKInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWK_INVALID';
this.code = JWKInvalid.code;
}
}
JWKInvalid.code = 'ERR_JWK_INVALID';
export class JWKSInvalid extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWKS_INVALID';
this.code = JWKSInvalid.code;
}
}
JWKSInvalid.code = 'ERR_JWKS_INVALID';
export class JWKSNoMatchingKey extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWKS_NO_MATCHING_KEY';
this.code = JWKSNoMatchingKey.code;
this.message = 'no applicable key found in the JSON Web Key Set';
}
}
JWKSNoMatchingKey.code = 'ERR_JWKS_NO_MATCHING_KEY';
export class JWKSMultipleMatchingKeys extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS';
this.code = JWKSMultipleMatchingKeys.code;
this.message = 'multiple matching keys found in the JSON Web Key Set';
}
}
JWKSMultipleMatchingKeys.code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS';
export class JWSSignatureVerificationFailed extends JOSEError {
constructor() {
super(...arguments);
this.code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED';
this.code = JWSSignatureVerificationFailed.code;
this.message = 'signature verification failed';
}
}
JWSSignatureVerificationFailed.code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED';
export class JWTExpired extends JWTClaimValidationFailed {
constructor() {
super(...arguments);
this.code = 'ERR_JWT_EXPIRED';
this.code = JWTExpired.code;
}
}
JWTExpired.code = 'ERR_JWT_EXPIRED';
export declare class JOSEError extends Error {
static code: string;
code: string;

@@ -6,2 +7,3 @@ constructor(message?: string);

export declare class JWTClaimValidationFailed extends JOSEError {
static code: string;
code: string;

@@ -13,8 +15,11 @@ claim: string;

export declare class JOSEAlgNotAllowed extends JOSEError {
static code: string;
code: string;
}
export declare class JOSENotSupported extends JOSEError {
static code: string;
code: string;
}
export declare class JWEDecryptionFailed extends JOSEError {
static code: string;
code: string;

@@ -24,17 +29,23 @@ message: string;

export declare class JWEInvalid extends JOSEError {
static code: string;
code: string;
}
export declare class JWSInvalid extends JOSEError {
static code: string;
code: string;
}
export declare class JWTInvalid extends JOSEError {
static code: string;
code: string;
}
export declare class JWKInvalid extends JOSEError {
static code: string;
code: string;
}
export declare class JWKSInvalid extends JOSEError {
static code: string;
code: string;
}
export declare class JWKSNoMatchingKey extends JOSEError {
static code: string;
code: string;

@@ -44,2 +55,3 @@ message: string;

export declare class JWKSMultipleMatchingKeys extends JOSEError {
static code: string;
code: string;

@@ -49,2 +61,3 @@ message: string;

export declare class JWSSignatureVerificationFailed extends JOSEError {
static code: string;
code: string;

@@ -54,3 +67,4 @@ message: string;

export declare class JWTExpired extends JWTClaimValidationFailed {
static code: string;
code: string;
}
{
"name": "jose",
"version": "3.10.0",
"version": "3.11.0",
"description": "Universal 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK with no dependencies",

@@ -5,0 +5,0 @@ "keywords": [

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