jose 6.0.0 → 6.0.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.
- package/dist/types/index.d.ts +47 -47
- package/dist/types/jwe/compact/decrypt.d.ts +1 -1
- package/dist/types/jwe/compact/encrypt.d.ts +1 -1
- package/dist/types/jwe/flattened/decrypt.d.ts +1 -1
- package/dist/types/jwe/flattened/encrypt.d.ts +1 -1
- package/dist/types/jwe/general/decrypt.d.ts +1 -1
- package/dist/types/jwe/general/encrypt.d.ts +1 -1
- package/dist/types/jwk/embedded.d.ts +1 -1
- package/dist/types/jwk/thumbprint.d.ts +1 -1
- package/dist/types/jwks/local.d.ts +1 -1
- package/dist/types/jwks/remote.d.ts +1 -1
- package/dist/types/jws/compact/sign.d.ts +1 -1
- package/dist/types/jws/compact/verify.d.ts +1 -1
- package/dist/types/jws/flattened/sign.d.ts +1 -1
- package/dist/types/jws/flattened/verify.d.ts +1 -1
- package/dist/types/jws/general/sign.d.ts +1 -1
- package/dist/types/jws/general/verify.d.ts +1 -1
- package/dist/types/jwt/decrypt.d.ts +1 -1
- package/dist/types/jwt/encrypt.d.ts +2 -2
- package/dist/types/jwt/produce.d.ts +1 -1
- package/dist/types/jwt/sign.d.ts +2 -2
- package/dist/types/jwt/unsecured.d.ts +2 -2
- package/dist/types/jwt/verify.d.ts +1 -1
- package/dist/types/key/export.d.ts +1 -1
- package/dist/types/key/generate_key_pair.d.ts +1 -1
- package/dist/types/key/generate_secret.d.ts +1 -1
- package/dist/types/key/import.d.ts +1 -1
- package/dist/types/util/decode_jwt.d.ts +1 -1
- package/dist/types/util/decode_protected_header.d.ts +1 -1
- package/dist/types/util/errors.d.ts +1 -1
- package/dist/webapi/jwks/remote.js +1 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
export { compactDecrypt } from './jwe/compact/decrypt';
|
|
2
|
-
export type { CompactDecryptGetKey } from './jwe/compact/decrypt';
|
|
3
|
-
export { flattenedDecrypt } from './jwe/flattened/decrypt';
|
|
4
|
-
export type { FlattenedDecryptGetKey } from './jwe/flattened/decrypt';
|
|
5
|
-
export { generalDecrypt } from './jwe/general/decrypt';
|
|
6
|
-
export type { GeneralDecryptGetKey } from './jwe/general/decrypt';
|
|
7
|
-
export { GeneralEncrypt } from './jwe/general/encrypt';
|
|
8
|
-
export type { Recipient } from './jwe/general/encrypt';
|
|
9
|
-
export { compactVerify } from './jws/compact/verify';
|
|
10
|
-
export type { CompactVerifyGetKey } from './jws/compact/verify';
|
|
11
|
-
export { flattenedVerify } from './jws/flattened/verify';
|
|
12
|
-
export type { FlattenedVerifyGetKey } from './jws/flattened/verify';
|
|
13
|
-
export { generalVerify } from './jws/general/verify';
|
|
14
|
-
export type { GeneralVerifyGetKey } from './jws/general/verify';
|
|
15
|
-
export { jwtVerify } from './jwt/verify';
|
|
16
|
-
export type { JWTVerifyOptions, JWTVerifyGetKey } from './jwt/verify';
|
|
17
|
-
export { jwtDecrypt } from './jwt/decrypt';
|
|
18
|
-
export type { JWTDecryptOptions, JWTDecryptGetKey } from './jwt/decrypt';
|
|
19
|
-
export type { ProduceJWT } from './jwt/produce';
|
|
20
|
-
export { CompactEncrypt } from './jwe/compact/encrypt';
|
|
21
|
-
export { FlattenedEncrypt } from './jwe/flattened/encrypt';
|
|
22
|
-
export { CompactSign } from './jws/compact/sign';
|
|
23
|
-
export { FlattenedSign } from './jws/flattened/sign';
|
|
24
|
-
export { GeneralSign } from './jws/general/sign';
|
|
25
|
-
export type { Signature } from './jws/general/sign';
|
|
26
|
-
export { SignJWT } from './jwt/sign';
|
|
27
|
-
export { EncryptJWT } from './jwt/encrypt';
|
|
28
|
-
export { calculateJwkThumbprint, calculateJwkThumbprintUri } from './jwk/thumbprint';
|
|
29
|
-
export { EmbeddedJWK } from './jwk/embedded';
|
|
30
|
-
export { createLocalJWKSet } from './jwks/local';
|
|
31
|
-
export { createRemoteJWKSet, jwksCache } from './jwks/remote';
|
|
32
|
-
export type { RemoteJWKSetOptions, JWKSCacheInput, ExportedJWKSCache, customFetch, FetchImplementation, } from './jwks/remote';
|
|
33
|
-
export { UnsecuredJWT } from './jwt/unsecured';
|
|
34
|
-
export type { UnsecuredResult } from './jwt/unsecured';
|
|
35
|
-
export { exportPKCS8, exportSPKI, exportJWK } from './key/export';
|
|
36
|
-
export { importSPKI, importPKCS8, importX509, importJWK } from './key/import';
|
|
37
|
-
export type { KeyImportOptions } from './key/import';
|
|
38
|
-
export { decodeProtectedHeader } from './util/decode_protected_header';
|
|
39
|
-
export { decodeJwt } from './util/decode_jwt';
|
|
40
|
-
export type { ProtectedHeaderParameters } from './util/decode_protected_header';
|
|
41
|
-
export * as errors from './util/errors';
|
|
42
|
-
export { generateKeyPair } from './key/generate_key_pair';
|
|
43
|
-
export type { GenerateKeyPairResult, GenerateKeyPairOptions } from './key/generate_key_pair';
|
|
44
|
-
export { generateSecret } from './key/generate_secret';
|
|
45
|
-
export type { GenerateSecretOptions } from './key/generate_secret';
|
|
46
|
-
export * as base64url from './util/base64url';
|
|
47
|
-
export type { CompactDecryptResult, CompactJWEHeaderParameters, CompactJWSHeaderParameters, CompactVerifyResult, CritOption, CryptoKey, DecryptOptions, EncryptOptions, FlattenedDecryptResult, FlattenedJWE, FlattenedJWS, FlattenedJWSInput, FlattenedVerifyResult, GeneralDecryptResult, GeneralJWE, GeneralJWS, GeneralJWSInput, GeneralVerifyResult, GetKeyFunction, JoseHeaderParameters, JSONWebKeySet, JWEHeaderParameters, JWEKeyManagementHeaderParameters, JWK_EC_Private, JWK_EC_Public, JWK_oct, JWK_OKP_Private, JWK_OKP_Public, JWK_RSA_Private, JWK_RSA_Public, JWK, JWKParameters, JWSHeaderParameters, JWTClaimVerificationOptions, JWTDecryptResult, JWTHeaderParameters, JWTPayload, JWTVerifyResult, KeyObject, ResolvedKey, SignOptions, VerifyOptions, } from './types';
|
|
1
|
+
export { compactDecrypt } from './jwe/compact/decrypt.js';
|
|
2
|
+
export type { CompactDecryptGetKey } from './jwe/compact/decrypt.js';
|
|
3
|
+
export { flattenedDecrypt } from './jwe/flattened/decrypt.js';
|
|
4
|
+
export type { FlattenedDecryptGetKey } from './jwe/flattened/decrypt.js';
|
|
5
|
+
export { generalDecrypt } from './jwe/general/decrypt.js';
|
|
6
|
+
export type { GeneralDecryptGetKey } from './jwe/general/decrypt.js';
|
|
7
|
+
export { GeneralEncrypt } from './jwe/general/encrypt.js';
|
|
8
|
+
export type { Recipient } from './jwe/general/encrypt.js';
|
|
9
|
+
export { compactVerify } from './jws/compact/verify.js';
|
|
10
|
+
export type { CompactVerifyGetKey } from './jws/compact/verify.js';
|
|
11
|
+
export { flattenedVerify } from './jws/flattened/verify.js';
|
|
12
|
+
export type { FlattenedVerifyGetKey } from './jws/flattened/verify.js';
|
|
13
|
+
export { generalVerify } from './jws/general/verify.js';
|
|
14
|
+
export type { GeneralVerifyGetKey } from './jws/general/verify.js';
|
|
15
|
+
export { jwtVerify } from './jwt/verify.js';
|
|
16
|
+
export type { JWTVerifyOptions, JWTVerifyGetKey } from './jwt/verify.js';
|
|
17
|
+
export { jwtDecrypt } from './jwt/decrypt.js';
|
|
18
|
+
export type { JWTDecryptOptions, JWTDecryptGetKey } from './jwt/decrypt.js';
|
|
19
|
+
export type { ProduceJWT } from './jwt/produce.js';
|
|
20
|
+
export { CompactEncrypt } from './jwe/compact/encrypt.js';
|
|
21
|
+
export { FlattenedEncrypt } from './jwe/flattened/encrypt.js';
|
|
22
|
+
export { CompactSign } from './jws/compact/sign.js';
|
|
23
|
+
export { FlattenedSign } from './jws/flattened/sign.js';
|
|
24
|
+
export { GeneralSign } from './jws/general/sign.js';
|
|
25
|
+
export type { Signature } from './jws/general/sign.js';
|
|
26
|
+
export { SignJWT } from './jwt/sign.js';
|
|
27
|
+
export { EncryptJWT } from './jwt/encrypt.js';
|
|
28
|
+
export { calculateJwkThumbprint, calculateJwkThumbprintUri } from './jwk/thumbprint.js';
|
|
29
|
+
export { EmbeddedJWK } from './jwk/embedded.js';
|
|
30
|
+
export { createLocalJWKSet } from './jwks/local.js';
|
|
31
|
+
export { createRemoteJWKSet, jwksCache } from './jwks/remote.js';
|
|
32
|
+
export type { RemoteJWKSetOptions, JWKSCacheInput, ExportedJWKSCache, customFetch, FetchImplementation, } from './jwks/remote.js';
|
|
33
|
+
export { UnsecuredJWT } from './jwt/unsecured.js';
|
|
34
|
+
export type { UnsecuredResult } from './jwt/unsecured.js';
|
|
35
|
+
export { exportPKCS8, exportSPKI, exportJWK } from './key/export.js';
|
|
36
|
+
export { importSPKI, importPKCS8, importX509, importJWK } from './key/import.js';
|
|
37
|
+
export type { KeyImportOptions } from './key/import.js';
|
|
38
|
+
export { decodeProtectedHeader } from './util/decode_protected_header.js';
|
|
39
|
+
export { decodeJwt } from './util/decode_jwt.js';
|
|
40
|
+
export type { ProtectedHeaderParameters } from './util/decode_protected_header.js';
|
|
41
|
+
export * as errors from './util/errors.js';
|
|
42
|
+
export { generateKeyPair } from './key/generate_key_pair.js';
|
|
43
|
+
export type { GenerateKeyPairResult, GenerateKeyPairOptions } from './key/generate_key_pair.js';
|
|
44
|
+
export { generateSecret } from './key/generate_secret.js';
|
|
45
|
+
export type { GenerateSecretOptions } from './key/generate_secret.js';
|
|
46
|
+
export * as base64url from './util/base64url.js';
|
|
47
|
+
export type { CompactDecryptResult, CompactJWEHeaderParameters, CompactJWSHeaderParameters, CompactVerifyResult, CritOption, CryptoKey, DecryptOptions, EncryptOptions, FlattenedDecryptResult, FlattenedJWE, FlattenedJWS, FlattenedJWSInput, FlattenedVerifyResult, GeneralDecryptResult, GeneralJWE, GeneralJWS, GeneralJWSInput, GeneralVerifyResult, GetKeyFunction, JoseHeaderParameters, JSONWebKeySet, JWEHeaderParameters, JWEKeyManagementHeaderParameters, JWK_EC_Private, JWK_EC_Public, JWK_oct, JWK_OKP_Private, JWK_OKP_Public, JWK_RSA_Private, JWK_RSA_Public, JWK, JWKParameters, JWSHeaderParameters, JWTClaimVerificationOptions, JWTDecryptResult, JWTHeaderParameters, JWTPayload, JWTVerifyResult, KeyObject, ResolvedKey, SignOptions, VerifyOptions, } from './types.d.ts';
|
|
48
48
|
export declare const cryptoRuntime = "WebCryptoAPI";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as types from '../types';
|
|
1
|
+
import type * as types from '../types.d.ts';
|
|
2
2
|
/**
|
|
3
3
|
* EmbeddedJWK is an implementation of a GetKeyFunction intended to be used with the JWS/JWT verify
|
|
4
4
|
* operations whenever you need to opt-in to verify signatures with a public key embedded in the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as types from '../types';
|
|
1
|
+
import type * as types from '../types.d.ts';
|
|
2
2
|
/**
|
|
3
3
|
* When passed to {@link jwks/remote.createRemoteJWKSet createRemoteJWKSet} this allows the resolver
|
|
4
4
|
* to make use of advanced fetch configurations, HTTP Proxies, retry on network errors, etc.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as types from '../types';
|
|
1
|
+
import type * as types from '../types.d.ts';
|
|
2
2
|
/** Combination of JWE Decryption options and JWT Claims Set verification options. */
|
|
3
3
|
export interface JWTDecryptOptions extends types.DecryptOptions, types.JWTClaimVerificationOptions {
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type * as types from '../types';
|
|
2
|
-
import { ProduceJWT } from './produce';
|
|
1
|
+
import type * as types from '../types.d.ts';
|
|
2
|
+
import { ProduceJWT } from './produce.js';
|
|
3
3
|
/**
|
|
4
4
|
* The EncryptJWT class is used to build and encrypt Compact JWE formatted JSON Web Tokens.
|
|
5
5
|
*
|
package/dist/types/jwt/sign.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type * as types from '../types';
|
|
2
|
-
import { ProduceJWT } from './produce';
|
|
1
|
+
import type * as types from '../types.d.ts';
|
|
2
|
+
import { ProduceJWT } from './produce.js';
|
|
3
3
|
/**
|
|
4
4
|
* The SignJWT class is used to build and sign Compact JWS formatted JSON Web Tokens.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type * as types from '../types';
|
|
2
|
-
import { ProduceJWT } from './produce';
|
|
1
|
+
import type * as types from '../types.d.ts';
|
|
2
|
+
import { ProduceJWT } from './produce.js';
|
|
3
3
|
export interface UnsecuredResult<PayloadType = types.JWTPayload> {
|
|
4
4
|
payload: PayloadType & types.JWTPayload;
|
|
5
5
|
header: types.JWSHeaderParameters;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as types from '../types';
|
|
1
|
+
import type * as types from '../types.d.ts';
|
|
2
2
|
/** Combination of JWS Verification options and JWT Claims Set verification options. */
|
|
3
3
|
export interface JWTVerifyOptions extends types.VerifyOptions, types.JWTClaimVerificationOptions {
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as types from '../types';
|
|
1
|
+
import type * as types from '../types.d.ts';
|
|
2
2
|
/**
|
|
3
3
|
* Decodes a signed JSON Web Token payload. This does not validate the JWT Claims Set types or
|
|
4
4
|
* values. This does not validate the JWS Signature. For a proper Signed JWT Claims Set validation
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as types from '../types';
|
|
1
|
+
import type * as types from '../types.d.ts';
|
|
2
2
|
export type ProtectedHeaderParameters = types.JWSHeaderParameters & types.JWEHeaderParameters;
|
|
3
3
|
/**
|
|
4
4
|
* Decodes the Protected Header of a JWE/JWS/JWT token utilizing any JOSE serialization.
|
|
@@ -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.0.
|
|
12
|
+
const VERSION = 'v6.0.1';
|
|
13
13
|
USER_AGENT = `${NAME}/${VERSION}`;
|
|
14
14
|
}
|
|
15
15
|
export const customFetch = Symbol();
|