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.
package/dist/types/types.d.ts
CHANGED
|
@@ -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:
|
|
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}
|
|
798
|
-
*
|
|
799
|
-
*
|
|
800
|
-
*
|
|
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:
|
|
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.
|
|
12
|
+
const VERSION = 'v6.2.6';
|
|
13
13
|
USER_AGENT = `${NAME}/${VERSION}`;
|
|
14
14
|
}
|
|
15
15
|
export const customFetch = Symbol();
|