jssign 0.2.5 → 0.2.6

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.
@@ -1,10 +1,9 @@
1
- export interface SignOptions {
1
+ export type EncryptOptions = {
2
2
  expiresIn?: number;
3
+ };
4
+ export type SignOptions = EncryptOptions & {
3
5
  sl?: number;
4
- }
5
- export interface EncryptOptions {
6
- expiresIn?: number;
7
- }
6
+ };
8
7
  declare function sign(data: any, secret: string, { expiresIn, sl }?: SignOptions): string;
9
8
  declare function verify(token: string, secret: string): any;
10
9
  declare function encrypt(data: any, secret: string, { expiresIn }?: EncryptOptions): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssign",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "A token generator library to encode and decode data using a secret key",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -18,7 +18,12 @@
18
18
  "encryption",
19
19
  "decryption",
20
20
  "jsonwebtoken",
21
- "sjcl"
21
+ "sjcl",
22
+ "typescript",
23
+ "js",
24
+ "encoder",
25
+ "decoder",
26
+ "jwt-alternative"
22
27
  ],
23
28
  "author": "Sahil Aggarwal",
24
29
  "license": "MIT",