jose 5.9.0 → 5.9.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.
|
@@ -10,7 +10,7 @@ function isCloudflareWorkers() {
|
|
|
10
10
|
let USER_AGENT;
|
|
11
11
|
if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) {
|
|
12
12
|
const NAME = 'jose';
|
|
13
|
-
const VERSION = 'v5.9.
|
|
13
|
+
const VERSION = 'v5.9.1';
|
|
14
14
|
USER_AGENT = `${NAME}/${VERSION}`;
|
|
15
15
|
}
|
|
16
16
|
export const jwksCache = Symbol();
|
|
@@ -13,7 +13,7 @@ function isCloudflareWorkers() {
|
|
|
13
13
|
let USER_AGENT;
|
|
14
14
|
if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) {
|
|
15
15
|
const NAME = 'jose';
|
|
16
|
-
const VERSION = 'v5.9.
|
|
16
|
+
const VERSION = 'v5.9.1';
|
|
17
17
|
USER_AGENT = `${NAME}/${VERSION}`;
|
|
18
18
|
}
|
|
19
19
|
exports.jwksCache = Symbol();
|
|
@@ -10,7 +10,7 @@ function isCloudflareWorkers() {
|
|
|
10
10
|
let USER_AGENT;
|
|
11
11
|
if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) {
|
|
12
12
|
const NAME = 'jose';
|
|
13
|
-
const VERSION = 'v5.9.
|
|
13
|
+
const VERSION = 'v5.9.1';
|
|
14
14
|
USER_AGENT = `${NAME}/${VERSION}`;
|
|
15
15
|
}
|
|
16
16
|
export const jwksCache = Symbol();
|
package/dist/types/index.d.ts
CHANGED
|
@@ -44,5 +44,5 @@ export type { GenerateKeyPairResult, GenerateKeyPairOptions } from './key/genera
|
|
|
44
44
|
export { generateSecret } from './key/generate_secret';
|
|
45
45
|
export type { GenerateSecretOptions } from './key/generate_secret';
|
|
46
46
|
export * as base64url from './util/base64url';
|
|
47
|
-
export type { KeyLike, JWK, FlattenedJWSInput, GeneralJWSInput, FlattenedJWS, GeneralJWS, JoseHeaderParameters, JWSHeaderParameters, JWEKeyManagementHeaderParameters, FlattenedJWE, GeneralJWE, JWEHeaderParameters, CritOption, DecryptOptions, EncryptOptions, JWTClaimVerificationOptions, VerifyOptions, SignOptions, JWTPayload, FlattenedDecryptResult, GeneralDecryptResult, CompactDecryptResult, FlattenedVerifyResult, GeneralVerifyResult, CompactVerifyResult, JWTVerifyResult, JWTDecryptResult, ResolvedKey, CompactJWEHeaderParameters, CompactJWSHeaderParameters, JWTHeaderParameters, JSONWebKeySet, CryptoRuntime, GetKeyFunction, } from './types';
|
|
47
|
+
export type { KeyLike, JWK, JWKParameters, JWK_OKP_Public, JWK_OKP_Private, JWK_EC_Public, JWK_EC_Private, JWK_RSA_Public, JWK_RSA_Private, JWK_oct, FlattenedJWSInput, GeneralJWSInput, FlattenedJWS, GeneralJWS, JoseHeaderParameters, JWSHeaderParameters, JWEKeyManagementHeaderParameters, FlattenedJWE, GeneralJWE, JWEHeaderParameters, CritOption, DecryptOptions, EncryptOptions, JWTClaimVerificationOptions, VerifyOptions, SignOptions, JWTPayload, FlattenedDecryptResult, GeneralDecryptResult, CompactDecryptResult, FlattenedVerifyResult, GeneralVerifyResult, CompactVerifyResult, JWTVerifyResult, JWTDecryptResult, ResolvedKey, CompactJWEHeaderParameters, CompactJWSHeaderParameters, JWTHeaderParameters, JSONWebKeySet, CryptoRuntime, GetKeyFunction, } from './types';
|
|
48
48
|
export { default as cryptoRuntime } from './util/runtime';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ export interface JWKParameters {
|
|
|
51
51
|
x5u?: string
|
|
52
52
|
/** JWK "kid" (Key ID) Parameter. */
|
|
53
53
|
kid?: string
|
|
54
|
+
|
|
55
|
+
[propName: string]: unknown
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
/** Convenience interface for Public OKP JSON Web Keys */
|
|
@@ -59,12 +61,16 @@ export interface JWK_OKP_Public extends JWKParameters {
|
|
|
59
61
|
crv: string
|
|
60
62
|
/** The public key */
|
|
61
63
|
x: string
|
|
64
|
+
|
|
65
|
+
[propName: string]: unknown
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
/** Convenience interface for Private OKP JSON Web Keys */
|
|
65
69
|
export interface JWK_OKP_Private extends JWK_OKP_Public, JWKParameters {
|
|
66
70
|
/** The Private Key */
|
|
67
71
|
d: string
|
|
72
|
+
|
|
73
|
+
[propName: string]: unknown
|
|
68
74
|
}
|
|
69
75
|
|
|
70
76
|
/** Convenience interface for Public EC JSON Web Keys */
|
|
@@ -75,12 +81,16 @@ export interface JWK_EC_Public extends JWKParameters {
|
|
|
75
81
|
x: string
|
|
76
82
|
/** Y Coordinate */
|
|
77
83
|
y: string
|
|
84
|
+
|
|
85
|
+
[propName: string]: unknown
|
|
78
86
|
}
|
|
79
87
|
|
|
80
88
|
/** Convenience interface for Private EC JSON Web Keys */
|
|
81
89
|
export interface JWK_EC_Private extends JWK_EC_Public, JWKParameters {
|
|
82
90
|
/** ECC Private Key */
|
|
83
91
|
d: string
|
|
92
|
+
|
|
93
|
+
[propName: string]: unknown
|
|
84
94
|
}
|
|
85
95
|
|
|
86
96
|
/** Convenience interface for Public RSA JSON Web Keys */
|
|
@@ -89,6 +99,8 @@ export interface JWK_RSA_Public extends JWKParameters {
|
|
|
89
99
|
e: string
|
|
90
100
|
/** Modulus */
|
|
91
101
|
n: string
|
|
102
|
+
|
|
103
|
+
[propName: string]: unknown
|
|
92
104
|
}
|
|
93
105
|
|
|
94
106
|
/** Convenience interface for Private RSA JSON Web Keys */
|
|
@@ -111,19 +123,29 @@ export interface JWK_RSA_Private extends JWK_RSA_Public, JWKParameters {
|
|
|
111
123
|
q: string
|
|
112
124
|
/** First CRT Coefficient */
|
|
113
125
|
qi: string
|
|
126
|
+
|
|
127
|
+
[propName: string]: unknown
|
|
114
128
|
}
|
|
115
129
|
|
|
116
|
-
/**
|
|
117
|
-
* Convenience interface for oct JSON Web Keys
|
|
118
|
-
*/
|
|
130
|
+
/** Convenience interface for oct JSON Web Keys */
|
|
119
131
|
export interface JWK_oct extends JWKParameters {
|
|
120
132
|
/** Key Value */
|
|
121
133
|
k: string
|
|
134
|
+
|
|
135
|
+
[propName: string]: unknown
|
|
122
136
|
}
|
|
123
137
|
|
|
124
138
|
/**
|
|
125
139
|
* JSON Web Key ({@link https://www.rfc-editor.org/rfc/rfc7517 JWK}). "RSA", "EC", "OKP", and "oct"
|
|
126
140
|
* key types are supported.
|
|
141
|
+
*
|
|
142
|
+
* @see {@link JWK_OKP_Public}
|
|
143
|
+
* @see {@link JWK_OKP_Private}
|
|
144
|
+
* @see {@link JWK_EC_Public}
|
|
145
|
+
* @see {@link JWK_EC_Private}
|
|
146
|
+
* @see {@link JWK_RSA_Public}
|
|
147
|
+
* @see {@link JWK_RSA_Private}
|
|
148
|
+
* @see {@link JWK_oct}
|
|
127
149
|
*/
|
|
128
150
|
export interface JWK extends JWKParameters {
|
|
129
151
|
/**
|