Skip to content

Commit 72ecff6

Browse files
committed
feat: add subpath module exports
1 parent c502731 commit 72ecff6

File tree

62 files changed

+472
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+472
-4
lines changed

docs/classes/jwe_compact_encrypt.CompactEncrypt.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Support from the community to continue maintaining and improving this module is
88

99
The CompactEncrypt class is used to build and encrypt Compact JWE strings.
1010

11+
This class is exported (as a named export) from the main `'jose'` module entry point as well as
12+
from its subpath export `'jose/jwe/compact/encrypt'`.
13+
1114
**`Example`**
1215

1316
```js

docs/classes/jwe_flattened_encrypt.FlattenedEncrypt.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Support from the community to continue maintaining and improving this module is
88

99
The FlattenedEncrypt class is used to build and encrypt Flattened JWE objects.
1010

11+
This class is exported (as a named export) from the main `'jose'` module entry point as well as
12+
from its subpath export `'jose/jwe/flattened/encrypt'`.
13+
1114
**`Example`**
1215

1316
```js

docs/classes/jwe_general_encrypt.GeneralEncrypt.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Support from the community to continue maintaining and improving this module is
88

99
The GeneralEncrypt class is used to build and encrypt General JWE objects.
1010

11+
This class is exported (as a named export) from the main `'jose'` module entry point as well as
12+
from its subpath export `'jose/jwe/general/encrypt'`.
13+
1114
**`Example`**
1215

1316
```js

docs/classes/jws_compact_sign.CompactSign.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Support from the community to continue maintaining and improving this module is
88

99
The CompactSign class is used to build and sign Compact JWS strings.
1010

11+
This class is exported (as a named export) from the main `'jose'` module entry point as well as
12+
from its subpath export `'jose/jws/compact/sign'`.
13+
1114
**`Example`**
1215

1316
```js

docs/classes/jws_flattened_sign.FlattenedSign.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Support from the community to continue maintaining and improving this module is
88

99
The FlattenedSign class is used to build and sign Flattened JWS objects.
1010

11+
This class is exported (as a named export) from the main `'jose'` module entry point as well as
12+
from its subpath export `'jose/jws/flattened/sign'`.
13+
1114
**`Example`**
1215

1316
```js

docs/classes/jws_general_sign.GeneralSign.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Support from the community to continue maintaining and improving this module is
88

99
The GeneralSign class is used to build and sign General JWS objects.
1010

11+
This class is exported (as a named export) from the main `'jose'` module entry point as well as
12+
from its subpath export `'jose/jws/general/sign'`.
13+
1114
**`Example`**
1215

1316
```js

docs/classes/jwt_encrypt.EncryptJWT.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Support from the community to continue maintaining and improving this module is
88

99
The EncryptJWT class is used to build and encrypt Compact JWE formatted JSON Web Tokens.
1010

11+
This class is exported (as a named export) from the main `'jose'` module entry point as well as
12+
from its subpath export `'jose/jwt/encrypt'`.
13+
1114
**`Example`**
1215

1316
```js

docs/classes/jwt_sign.SignJWT.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Support from the community to continue maintaining and improving this module is
88

99
The SignJWT class is used to build and sign Compact JWS formatted JSON Web Tokens.
1010

11+
This class is exported (as a named export) from the main `'jose'` module entry point as well as
12+
from its subpath export `'jose/jwt/sign'`.
13+
1114
**`Example`**
1215

1316
Usage with a symmetric secret

docs/classes/jwt_unsecured.UnsecuredJWT.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Support from the community to continue maintaining and improving this module is
88

99
The UnsecuredJWT class is a utility for dealing with `{ "alg": "none" }` Unsecured JWTs.
1010

11+
This class is exported (as a named export) from the main `'jose'` module entry point as well as
12+
from its subpath export `'jose/jwt/unsecured'`.
13+
1114
**`Example`**
1215

1316
Encoding

docs/functions/jwe_compact_decrypt.compactDecrypt.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Support from the community to continue maintaining and improving this module is
1010

1111
Decrypts a Compact JWE.
1212

13+
This function is exported (as a named export) from the main `'jose'` module entry point as well
14+
as from its subpath export `'jose/jwe/compact/decrypt'`.
15+
1316
#### Parameters
1417

1518
| Name | Type | Description |

docs/functions/jwe_flattened_decrypt.flattenedDecrypt.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Support from the community to continue maintaining and improving this module is
1010

1111
Decrypts a Flattened JWE.
1212

13+
This function is exported (as a named export) from the main `'jose'` module entry point as well
14+
as from its subpath export `'jose/jwe/flattened/decrypt'`.
15+
1316
#### Parameters
1417

1518
| Name | Type | Description |

docs/functions/jwe_general_decrypt.generalDecrypt.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Support from the community to continue maintaining and improving this module is
1010

1111
Decrypts a General JWE.
1212

13+
This function is exported (as a named export) from the main `'jose'` module entry point as well
14+
as from its subpath export `'jose/jwe/general/decrypt'`.
15+
1316
#### Parameters
1417

1518
| Name | Type | Description |

docs/functions/jwk_embedded.EmbeddedJWK.md

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ operations whenever you need to opt-in to verify signatures with a public key em
1313
token's "jwk" (JSON Web Key) Header Parameter. It is recommended to combine this with the verify
1414
function's `algorithms` option to define accepted JWS "alg" (Algorithm) Header Parameter values.
1515

16+
This function is exported (as a named export) from the main `'jose'` module entry point as well
17+
as from its subpath export `'jose/jwk/embedded'`.
18+
1619
#### Type parameters
1720

1821
| Name | Type |

docs/functions/jwk_thumbprint.calculateJwkThumbprint.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Support from the community to continue maintaining and improving this module is
1010

1111
Calculates a base64url-encoded JSON Web Key (JWK) Thumbprint
1212

13+
This function is exported (as a named export) from the main `'jose'` module entry point as well
14+
as from its subpath export `'jose/jwk/thumbprint'`.
15+
1316
#### Parameters
1417

1518
| Name | Type | Description |

docs/functions/jwk_thumbprint.calculateJwkThumbprintUri.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Support from the community to continue maintaining and improving this module is
1010

1111
Calculates a JSON Web Key (JWK) Thumbprint URI
1212

13+
This function is exported (as a named export) from the main `'jose'` module entry point as well
14+
as from its subpath export `'jose/jwk/thumbprint'`.
15+
1316
#### Parameters
1417

1518
| Name | Type | Description |

docs/functions/jwks_local.createLocalJWKSet.md

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ verification in an iterative manner.
2323
Note: The function's purpose is to resolve public keys used for verifying signatures and will not
2424
work for public encryption keys.
2525

26+
This function is exported (as a named export) from the main `'jose'` module entry point as well
27+
as from its subpath export `'jose/jwks/local'`.
28+
2629
#### Type parameters
2730

2831
| Name | Type |

docs/functions/jwks_remote.createRemoteJWKSet.md

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ verification in an iterative manner.
2525
Note: The function's purpose is to resolve public keys used for verifying signatures and will not
2626
work for public encryption keys.
2727

28+
This function is exported (as a named export) from the main `'jose'` module entry point as well
29+
as from its subpath export `'jose/jwks/remote'`.
30+
2831
#### Type parameters
2932

3033
| Name | Type |

docs/functions/jws_compact_verify.compactVerify.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Support from the community to continue maintaining and improving this module is
1010

1111
Verifies the signature and format of and afterwards decodes the Compact JWS.
1212

13+
This function is exported (as a named export) from the main `'jose'` module entry point as well
14+
as from its subpath export `'jose/jws/compact/verify'`.
15+
1316
#### Parameters
1417

1518
| Name | Type | Description |

docs/functions/jws_flattened_verify.flattenedVerify.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Support from the community to continue maintaining and improving this module is
1010

1111
Verifies the signature and format of and afterwards decodes the Flattened JWS.
1212

13+
This function is exported (as a named export) from the main `'jose'` module entry point as well
14+
as from its subpath export `'jose/jws/flattened/verify'`.
15+
1316
#### Parameters
1417

1518
| Name | Type | Description |

docs/functions/jws_general_verify.generalVerify.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Support from the community to continue maintaining and improving this module is
1010

1111
Verifies the signature and format of and afterwards decodes the General JWS.
1212

13+
This function is exported (as a named export) from the main `'jose'` module entry point as well
14+
as from its subpath export `'jose/jws/general/verify'`.
15+
1316
#### Parameters
1417

1518
| Name | Type | Description |

docs/functions/jwt_decrypt.jwtDecrypt.md

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Support from the community to continue maintaining and improving this module is
1111
Verifies the JWT format (to be a JWE Compact format), decrypts the ciphertext, validates the JWT
1212
Claims Set.
1313

14+
This function is exported (as a named export) from the main `'jose'` module entry point as well
15+
as from its subpath export `'jose/jwt/decrypt'`.
16+
1417
#### Type parameters
1518

1619
| Name | Type |

docs/functions/jwt_verify.jwtVerify.md

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Support from the community to continue maintaining and improving this module is
1111
Verifies the JWT format (to be a JWS Compact format), verifies the JWS signature, validates the
1212
JWT Claims Set.
1313

14+
This function is exported (as a named export) from the main `'jose'` module entry point as well
15+
as from its subpath export `'jose/jwt/verify'`.
16+
1417
#### Type parameters
1518

1619
| Name | Type |

docs/functions/key_export.exportJWK.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Support from the community to continue maintaining and improving this module is
1010

1111
Exports a runtime-specific key representation (KeyLike) to a JWK.
1212

13+
This function is exported (as a named export) from the main `'jose'` module entry point as well
14+
as from its subpath export `'jose/key/export'`.
15+
1316
#### Parameters
1417

1518
| Name | Type | Description |

docs/functions/key_export.exportPKCS8.md

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Support from the community to continue maintaining and improving this module is
1111
Exports a runtime-specific private key representation (KeyObject or CryptoKey) to a PEM-encoded
1212
PKCS8 string format.
1313

14+
This function is exported (as a named export) from the main `'jose'` module entry point as well
15+
as from its subpath export `'jose/key/export'`.
16+
1417
#### Parameters
1518

1619
| Name | Type | Description |

docs/functions/key_export.exportSPKI.md

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Support from the community to continue maintaining and improving this module is
1111
Exports a runtime-specific public key representation (KeyObject or CryptoKey) to a PEM-encoded
1212
SPKI string format.
1313

14+
This function is exported (as a named export) from the main `'jose'` module entry point as well
15+
as from its subpath export `'jose/key/export'`.
16+
1417
#### Parameters
1518

1619
| Name | Type | Description |

docs/functions/key_generate_key_pair.generateKeyPair.md

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Note: Under Web Crypto API runtime the `privateKey` is generated with `extractab
1515
`false` by default. See [GenerateKeyPairOptions.extractable](../interfaces/key_generate_key_pair.GenerateKeyPairOptions.md#extractable) to generate an extractable
1616
`privateKey`.
1717

18+
This function is exported (as a named export) from the main `'jose'` module entry point as well
19+
as from its subpath export `'jose/generate/keypair'`.
20+
1821
#### Type parameters
1922

2023
| Name | Type |

docs/functions/key_generate_secret.generateSecret.md

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Generates a symmetric secret key for a given JWA algorithm identifier.
1313
Note: Under Web Crypto API runtime the secret key is generated with `extractable` set to `false`
1414
by default.
1515

16+
This function is exported (as a named export) from the main `'jose'` module entry point as well
17+
as from its subpath export `'jose/generate/secret'`.
18+
1619
#### Type parameters
1720

1821
| Name | Type |

docs/functions/key_import.importJWK.md

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ Imports a JWK to a runtime-specific key representation (KeyLike). Either the JWK
1414
Note: When the runtime is using [Web Cryptography API](https://w3c.github.io/webcrypto/) the
1515
jwk parameters "use", "key_ops", and "ext" are also used in the resulting `CryptoKey`.
1616

17+
This function is exported (as a named export) from the main `'jose'` module entry point as well
18+
as from its subpath export `'jose/key/import'`.
19+
1720
#### Type parameters
1821

1922
| Name | Type |

docs/functions/key_import.importPKCS8.md

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Note: The OID id-RSASSA-PSS (1.2.840.113549.1.1.10) is not supported in
1515
[Web Cryptography API](https://w3c.github.io/webcrypto/), use the OID rsaEncryption
1616
(1.2.840.113549.1.1.1) instead for all RSA algorithms.
1717

18+
This function is exported (as a named export) from the main `'jose'` module entry point as well
19+
as from its subpath export `'jose/key/import'`.
20+
1821
#### Type parameters
1922

2023
| Name | Type |

docs/functions/key_import.importSPKI.md

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Note: The OID id-RSASSA-PSS (1.2.840.113549.1.1.10) is not supported in
1515
[Web Cryptography API](https://w3c.github.io/webcrypto/), use the OID rsaEncryption
1616
(1.2.840.113549.1.1.1) instead for all RSA algorithms.
1717

18+
This function is exported (as a named export) from the main `'jose'` module entry point as well
19+
as from its subpath export `'jose/key/import'`.
20+
1821
#### Type parameters
1922

2023
| Name | Type |

docs/functions/key_import.importX509.md

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Note: The OID id-RSASSA-PSS (1.2.840.113549.1.1.10) is not supported in
1515
[Web Cryptography API](https://w3c.github.io/webcrypto/), use the OID rsaEncryption
1616
(1.2.840.113549.1.1.1) instead for all RSA algorithms.
1717

18+
This function is exported (as a named export) from the main `'jose'` module entry point as well
19+
as from its subpath export `'jose/key/import'`.
20+
1821
#### Type parameters
1922

2023
| Name | Type |

docs/functions/util_decode_jwt.decodeJwt.md

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ values. This does not validate the JWS Signature. For a proper Signed JWT Claims
1313
and JWS signature verification use `jose.jwtVerify()`. For an encrypted JWT Claims Set validation
1414
and JWE decryption use `jose.jwtDecrypt()`.
1515

16+
This function is exported (as a named export) from the main `'jose'` module entry point as well
17+
as from its subpath export `'jose/jwt/decode'`.
18+
1619
#### Type parameters
1720

1821
| Name | Type |

docs/functions/util_decode_protected_header.decodeProtectedHeader.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Support from the community to continue maintaining and improving this module is
1010

1111
Decodes the Protected Header of a JWE/JWS/JWT token utilizing any JOSE serialization.
1212

13+
This function is exported (as a named export) from the main `'jose'` module entry point as well
14+
as from its subpath export `'jose/decode/protected_header'`.
15+
1316
#### Parameters
1417

1518
| Name | Type | Description |

0 commit comments

Comments
 (0)