jose 6.2.5 → 6.2.6

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.
@@ -778,7 +778,7 @@ export interface JSONWebKeySet {
778
778
  * {@link !createSecretKey} to obtain a {@link !KeyObject} from your existing key material.
779
779
  */
780
780
  export interface KeyObject {
781
- type: 'private' | 'public' | 'secret'
781
+ type: string
782
782
  }
783
783
 
784
784
  /**
@@ -794,18 +794,16 @@ export type CryptoKey = typeof globalThis extends {
794
794
  : CryptoKeyStructuralFallback
795
795
 
796
796
  /**
797
- * Used as {@link CryptoKey} only when the host runtime's `crypto` global is not typed at all, e.g. a
798
- * consumer compiling with neither the DOM lib nor `@types/node`. Whenever a `CryptoKey` type is
799
- * available it is aliased instead, deliberately, so that this module never introduces a competing
800
- * nominal `CryptoKey` and values flow freely to and from {@link !SubtleCrypto} APIs.
797
+ * Used as {@link CryptoKey} when the host runtime's `crypto` global is not exposed on `typeof
798
+ * globalThis`, including when it is absent from ambient types or declared with `const` or `let`. It
799
+ * remains structurally compatible with host {@link !CryptoKey} declarations so values flow freely to
800
+ * and from {@link !SubtleCrypto} APIs.
801
801
  */
802
802
  export interface CryptoKeyStructuralFallback {
803
803
  readonly algorithm: { name: string }
804
804
  readonly extractable: boolean
805
- readonly type: 'private' | 'public' | 'secret'
806
- readonly usages: (
807
- 'decrypt' | 'deriveBits' | 'deriveKey' | 'encrypt' | 'sign' | 'unwrapKey' | 'verify' | 'wrapKey'
808
- )[]
805
+ readonly type: string
806
+ readonly usages: string[]
809
807
  }
810
808
 
811
809
  /** Generic interface for JWT producing classes. */
@@ -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 = 'v6.2.5';
12
+ const VERSION = 'v6.2.6';
13
13
  USER_AGENT = `${NAME}/${VERSION}`;
14
14
  }
15
15
  export const customFetch = Symbol();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jose",
3
- "version": "6.2.5",
3
+ "version": "6.2.6",
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
  "akp",