Skip to content

Commit

Permalink
chore: upgrade dev dependencies, typescript, and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Dec 3, 2024
1 parent 0d9f5f1 commit 08be034
Show file tree
Hide file tree
Showing 21 changed files with 333 additions and 660 deletions.
4 changes: 2 additions & 2 deletions docs/jwe/compact/decrypt/functions/compactDecrypt.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva).

## compactDecrypt(jwe, key, options)
## Call Signature

**compactDecrypt**(`jwe`, `key`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`CompactDecryptResult`](../../../../types/interfaces/CompactDecryptResult.md)\>

Expand Down Expand Up @@ -37,7 +37,7 @@ console.log(protectedHeader)
console.log(new TextDecoder().decode(plaintext))
```

## compactDecrypt(jwe, getKey, options)
## Call Signature

**compactDecrypt**\<`KeyLikeType`\>(`jwe`, `getKey`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`CompactDecryptResult`](../../../../types/interfaces/CompactDecryptResult.md) & [`ResolvedKey`](../../../../types/interfaces/ResolvedKey.md)\<`KeyLikeType`\>\>

Expand Down
4 changes: 2 additions & 2 deletions docs/jwe/flattened/decrypt/functions/flattenedDecrypt.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva).

## flattenedDecrypt(jwe, key, options)
## Call Signature

**flattenedDecrypt**(`jwe`, `key`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`FlattenedDecryptResult`](../../../../types/interfaces/FlattenedDecryptResult.md)\>

Expand Down Expand Up @@ -47,7 +47,7 @@ console.log(decoder.decode(plaintext))
console.log(decoder.decode(additionalAuthenticatedData))
```

## flattenedDecrypt(jwe, getKey, options)
## Call Signature

**flattenedDecrypt**\<`KeyLikeType`\>(`jwe`, `getKey`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`FlattenedDecryptResult`](../../../../types/interfaces/FlattenedDecryptResult.md) & [`ResolvedKey`](../../../../types/interfaces/ResolvedKey.md)\<`KeyLikeType`\>\>

Expand Down
4 changes: 2 additions & 2 deletions docs/jwe/general/decrypt/functions/generalDecrypt.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva).

## generalDecrypt(jwe, key, options)
## Call Signature

**generalDecrypt**(`jwe`, `key`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`GeneralDecryptResult`](../../../../types/interfaces/GeneralDecryptResult.md)\>

Expand Down Expand Up @@ -51,7 +51,7 @@ console.log(decoder.decode(plaintext))
console.log(decoder.decode(additionalAuthenticatedData))
```

## generalDecrypt(jwe, getKey, options)
## Call Signature

**generalDecrypt**\<`KeyLikeType`\>(`jwe`, `getKey`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`GeneralDecryptResult`](../../../../types/interfaces/GeneralDecryptResult.md) & [`ResolvedKey`](../../../../types/interfaces/ResolvedKey.md)\<`KeyLikeType`\>\>

Expand Down
8 changes: 4 additions & 4 deletions docs/jwks/remote/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Index

### Functions

- [createRemoteJWKSet](functions/createRemoteJWKSet.md)

### Interfaces

- [ExportedJWKSCache](interfaces/ExportedJWKSCache.md)
Expand All @@ -14,7 +18,3 @@
### Variables

- [jwksCache](variables/jwksCache.md)

### Functions

- [createRemoteJWKSet](functions/createRemoteJWKSet.md)
4 changes: 2 additions & 2 deletions docs/jws/compact/verify/functions/compactVerify.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva).

## compactVerify(jws, key, options)
## Call Signature

**compactVerify**(`jws`, `key`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`CompactVerifyResult`](../../../../types/interfaces/CompactVerifyResult.md)\>

Expand Down Expand Up @@ -37,7 +37,7 @@ console.log(protectedHeader)
console.log(new TextDecoder().decode(payload))
```

## compactVerify(jws, getKey, options)
## Call Signature

**compactVerify**\<`KeyLikeType`\>(`jws`, `getKey`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`CompactVerifyResult`](../../../../types/interfaces/CompactVerifyResult.md) & [`ResolvedKey`](../../../../types/interfaces/ResolvedKey.md)\<`KeyLikeType`\>\>

Expand Down
4 changes: 2 additions & 2 deletions docs/jws/flattened/verify/functions/flattenedVerify.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva).

## flattenedVerify(jws, key, options)
## Call Signature

**flattenedVerify**(`jws`, `key`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`FlattenedVerifyResult`](../../../../types/interfaces/FlattenedVerifyResult.md)\>

Expand Down Expand Up @@ -42,7 +42,7 @@ console.log(protectedHeader)
console.log(decoder.decode(payload))
```

## flattenedVerify(jws, getKey, options)
## Call Signature

**flattenedVerify**\<`KeyLikeType`\>(`jws`, `getKey`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`FlattenedVerifyResult`](../../../../types/interfaces/FlattenedVerifyResult.md) & [`ResolvedKey`](../../../../types/interfaces/ResolvedKey.md)\<`KeyLikeType`\>\>

Expand Down
4 changes: 2 additions & 2 deletions docs/jws/general/verify/functions/generalVerify.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva).

## generalVerify(jws, key, options)
## Call Signature

**generalVerify**(`jws`, `key`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`GeneralVerifyResult`](../../../../types/interfaces/GeneralVerifyResult.md)\>

Expand Down Expand Up @@ -45,7 +45,7 @@ console.log(protectedHeader)
console.log(new TextDecoder().decode(payload))
```

## generalVerify(jws, getKey, options)
## Call Signature

**generalVerify**\<`KeyLikeType`\>(`jws`, `getKey`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`GeneralVerifyResult`](../../../../types/interfaces/GeneralVerifyResult.md) & [`ResolvedKey`](../../../../types/interfaces/ResolvedKey.md)\<`KeyLikeType`\>\>

Expand Down
4 changes: 2 additions & 2 deletions docs/jwt/decrypt/functions/jwtDecrypt.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva).

## jwtDecrypt(jwt, key, options)
## Call Signature

**jwtDecrypt**\<`PayloadType`\>(`jwt`, `key`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`JWTDecryptResult`](../../../types/interfaces/JWTDecryptResult.md)\<`PayloadType`\>\>

Expand Down Expand Up @@ -48,7 +48,7 @@ console.log(protectedHeader)
console.log(payload)
```

## jwtDecrypt(jwt, getKey, options)
## Call Signature

**jwtDecrypt**\<`PayloadType`, `KeyLikeType`\>(`jwt`, `getKey`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`JWTDecryptResult`](../../../types/interfaces/JWTDecryptResult.md)\<`PayloadType`\> & [`ResolvedKey`](../../../types/interfaces/ResolvedKey.md)\<`KeyLikeType`\>\>

Expand Down
4 changes: 2 additions & 2 deletions docs/jwt/verify/functions/jwtVerify.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by [becoming a sponsor](https://github.com/sponsors/panva).

## jwtVerify(jwt, key, options)
## Call Signature

**jwtVerify**\<`PayloadType`\>(`jwt`, `key`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`JWTVerifyResult`](../../../types/interfaces/JWTVerifyResult.md)\<`PayloadType`\>\>

Expand Down Expand Up @@ -100,7 +100,7 @@ console.log(protectedHeader)
console.log(payload)
```

## jwtVerify(jwt, getKey, options)
## Call Signature

**jwtVerify**\<`PayloadType`, `KeyLikeType`\>(`jwt`, `getKey`, `options`?): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`JWTVerifyResult`](../../../types/interfaces/JWTVerifyResult.md)\<`PayloadType`\> & [`ResolvedKey`](../../../types/interfaces/ResolvedKey.md)\<`KeyLikeType`\>\>

Expand Down
4 changes: 4 additions & 0 deletions docs/types/interfaces/CompactJWEHeaderParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Support from the community to continue maintaining and improving this module is

Recognized Compact JWE Header Parameters, any other Header Members may also be present.

## Indexable

\[`propName`: `string`\]: `unknown`

## Properties

### alg
Expand Down
4 changes: 4 additions & 0 deletions docs/types/interfaces/CompactJWSHeaderParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Support from the community to continue maintaining and improving this module is

Recognized Compact JWS Header Parameters, any other Header Members may also be present.

## Indexable

\[`propName`: `string`\]: `unknown`

## Properties

### alg
Expand Down
10 changes: 0 additions & 10 deletions docs/types/interfaces/JWK.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,6 @@ RSA JWK "n" (Modulus) Parameter

***

### oth?

`optional` **oth**: `object`[]

Private RSA JWK "oth" (Other Primes Info) Parameter

This parameter is not supported

***

### p?

`optional` **p**: `string`
Expand Down
10 changes: 0 additions & 10 deletions docs/types/interfaces/JWK_RSA_Private.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,6 @@ JWK "kid" (Key ID) Parameter

***

### oth?

`optional` **oth**: `object`[]

RSA JWK "oth" (Other Primes Info) Parameter

This parameter is not supported

***

### use?

`optional` **use**: `string`
Expand Down
4 changes: 4 additions & 0 deletions docs/types/interfaces/JWTHeaderParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Support from the community to continue maintaining and improving this module is

Recognized Signed JWT Header Parameters, any other Header Members may also be present.

## Indexable

\[`propName`: `string`\]: `unknown`

## Properties

### alg
Expand Down
Loading

0 comments on commit 08be034

Please sign in to comment.