jose 4.14.2 → 4.14.3

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.
@@ -29,11 +29,6 @@
29
29
  */
30
30
  export type KeyLike = { type: string }
31
31
 
32
- type JsonObject = { [Key in string]?: JsonValue }
33
- type JsonArray = JsonValue[]
34
- type JsonPrimitive = string | number | boolean | null
35
- type JsonValue = JsonPrimitive | JsonObject | JsonArray
36
-
37
32
  /**
38
33
  * JSON Web Key ({@link https://www.rfc-editor.org/rfc/rfc7517 JWK}). "RSA", "EC", "OKP", and "oct"
39
34
  * key types are supported.
@@ -77,7 +72,7 @@ export interface JWK {
77
72
  /** JWK "x5u" (X.509 URL) Parameter. */
78
73
  x5u?: string
79
74
 
80
- [propName: string]: JsonValue | undefined
75
+ [propName: string]: unknown
81
76
  }
82
77
 
83
78
  /**
@@ -201,7 +196,7 @@ export interface JWSHeaderParameters extends JoseHeaderParameters {
201
196
  crit?: string[]
202
197
 
203
198
  /** Any other JWS Header member. */
204
- [propName: string]: JsonValue | undefined
199
+ [propName: string]: unknown
205
200
  }
206
201
 
207
202
  /** Recognized JWE Key Management-related Header Parameters. */
@@ -309,7 +304,7 @@ export interface JWEHeaderParameters extends JoseHeaderParameters {
309
304
  zip?: string
310
305
 
311
306
  /** Any other JWE Header member. */
312
- [propName: string]: JsonValue | undefined
307
+ [propName: string]: unknown
313
308
  }
314
309
 
315
310
  /** Shared Interface with a "crit" property for all sign, verify, encrypt and decrypt operations. */
@@ -483,7 +478,7 @@ export interface JWTPayload {
483
478
  iat?: number
484
479
 
485
480
  /** Any other JWT Claim Set member. */
486
- [propName: string]: JsonValue | undefined
481
+ [propName: string]: unknown
487
482
  }
488
483
 
489
484
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jose",
3
- "version": "4.14.2",
3
+ "version": "4.14.3",
4
4
  "description": "'JSON Web Almost Everything' - 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",