unjwt 0.1.0 → 0.1.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/README.md CHANGED
@@ -15,13 +15,13 @@ Run the following command to add `unjwt` to your project.
15
15
 
16
16
  ```bash
17
17
  # pnpm
18
- pnpm add -D unjwt
18
+ pnpm add unjwt
19
19
 
20
20
  # npm
21
- npm install -D unjwt
21
+ npm install unjwt
22
22
 
23
23
  # yarn
24
- yarn add -D unjwt
24
+ yarn add unjwt
25
25
  ```
26
26
 
27
27
  ## Usage
package/dist/index.d.mts CHANGED
@@ -45,7 +45,7 @@ interface JWTRegisteredClaims {
45
45
  }
46
46
 
47
47
  declare function signJWT<T extends Record<string, any> = Record<string, any>>({ payload, secret, issuer, audience, expires, header, signatureMethod, hashMethod, }: {
48
- payload: T;
48
+ payload?: T;
49
49
  secret: string;
50
50
  issuer: string;
51
51
  audience: string;
package/dist/index.d.ts CHANGED
@@ -45,7 +45,7 @@ interface JWTRegisteredClaims {
45
45
  }
46
46
 
47
47
  declare function signJWT<T extends Record<string, any> = Record<string, any>>({ payload, secret, issuer, audience, expires, header, signatureMethod, hashMethod, }: {
48
- payload: T;
48
+ payload?: T;
49
49
  secret: string;
50
50
  issuer: string;
51
51
  audience: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unjwt",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "packageManager": "pnpm@8.6.12",
6
6
  "description": "Easy creation and verification of JSON Web Tokens (JWT)",
7
7
  "author": "Johann Schopplich <pkg@johannschopplich.com>",