jose 5.4.0 → 5.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ function isCloudflareWorkers() {
9
9
  let USER_AGENT;
10
10
  if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) {
11
11
  const NAME = 'jose';
12
- const VERSION = 'v5.4.0';
12
+ const VERSION = 'v5.4.1';
13
13
  USER_AGENT = `${NAME}/${VERSION}`;
14
14
  }
15
15
  class RemoteJWKSet {
@@ -12,7 +12,7 @@ function isCloudflareWorkers() {
12
12
  let USER_AGENT;
13
13
  if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) {
14
14
  const NAME = 'jose';
15
- const VERSION = 'v5.4.0';
15
+ const VERSION = 'v5.4.1';
16
16
  USER_AGENT = `${NAME}/${VERSION}`;
17
17
  }
18
18
  class RemoteJWKSet {
@@ -9,7 +9,7 @@ function isCloudflareWorkers() {
9
9
  let USER_AGENT;
10
10
  if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) {
11
11
  const NAME = 'jose';
12
- const VERSION = 'v5.4.0';
12
+ const VERSION = 'v5.4.1';
13
13
  USER_AGENT = `${NAME}/${VERSION}`;
14
14
  }
15
15
  class RemoteJWKSet {
@@ -27,7 +27,12 @@ export declare class JWTClaimValidationFailed extends JOSEError {
27
27
  claim: string;
28
28
  /** Reason code for the validation failure. */
29
29
  reason: string;
30
- /** The parsed JWT payload. */
30
+ /**
31
+ * The parsed JWT Claims Set (aka payload). Other JWT claims may or may not have been verified at
32
+ * this point. The JSON Web Signature (JWS) or a JSON Web Encryption (JWE) structures' integrity
33
+ * has however been verified. Claims Set verification happens after the JWS Signature or JWE
34
+ * Decryption processes.
35
+ */
31
36
  payload: JWTPayload;
32
37
  /** @ignore */
33
38
  constructor(message: string, payload: JWTPayload, claim?: string, reason?: string);
@@ -44,7 +49,12 @@ export declare class JWTExpired extends JOSEError implements JWTClaimValidationF
44
49
  claim: string;
45
50
  /** Reason code for the validation failure. */
46
51
  reason: string;
47
- /** The parsed JWT payload. */
52
+ /**
53
+ * The parsed JWT Claims Set (aka payload). Other JWT claims may or may not have been verified at
54
+ * this point. The JSON Web Signature (JWS) or a JSON Web Encryption (JWE) structures' integrity
55
+ * has however been verified. Claims Set verification happens after the JWS Signature or JWE
56
+ * Decryption processes.
57
+ */
48
58
  payload: JWTPayload;
49
59
  /** @ignore */
50
60
  constructor(message: string, payload: JWTPayload, claim?: string, reason?: string);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jose",
3
- "version": "5.4.0",
3
+ "version": "5.4.1",
4
4
  "description": "JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes",
5
5
  "keywords": [
6
6
  "browser",