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

jose-browser-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-browser-runtime - npm Package Compare versions

Comparing version 4.11.1 to 4.11.2

18

dist/browser/util/errors.js
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",

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