jssign 0.2.4 → 0.2.5

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
@@ -11,6 +11,12 @@ To install jssign
11
11
 
12
12
  # with yarn:
13
13
  yarn add jssign
14
+
15
+ # with pnpm:
16
+ pnpm add jssign
17
+
18
+ # with bun:
19
+ bun add jssign
14
20
  ```
15
21
  ## Usage
16
22
  `jssign` exports different functions for data encryption for different use cases:
@@ -54,8 +60,5 @@ console.log(data) // { id: 'confidential_data' }
54
60
 
55
61
  `options`:
56
62
  - `expiresIn` can be a numeric value representing time in ms (no expiration by default).
57
- ## Used By
58
- - [CloudBreeze](https://cloudbreeze.vercel.app/)
59
- - [NewsDose](https://newsdoseweb.netlify.app/)
60
63
  ## Author
61
64
  [Sahil Aggarwal](https://www.github.com/SahilAggarwal2004)
package/package.json CHANGED
@@ -1,40 +1,40 @@
1
- {
2
- "name": "jssign",
3
- "version": "0.2.4",
4
- "description": "A token generator library to encode and decode data using a secret key",
5
- "main": "./build/cjs/index.js",
6
- "module": "./build/esm/index.js",
7
- "scripts": {
8
- "esm": "tsc",
9
- "cjs": "tsc --module commonjs --outDir build/cjs",
10
- "build": "npm i && npm run esm && npm run cjs"
11
- },
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/SahilAggarwal2004/jssign.git"
15
- },
16
- "keywords": [
17
- "jssign",
18
- "jss",
19
- "javascript",
20
- "sign",
21
- "javascriptsign",
22
- "token",
23
- "encryption",
24
- "decryption",
25
- "jsonwebtoken",
26
- "sjcl"
27
- ],
28
- "author": "Sahil Aggarwal",
29
- "license": "MIT",
30
- "bugs": {
31
- "url": "https://github.com/SahilAggarwal2004/jssign/issues"
32
- },
33
- "homepage": "https://github.com/SahilAggarwal2004/jssign#readme",
34
- "dependencies": {
35
- "sjcl": "^1.0.8"
36
- },
37
- "devDependencies": {
38
- "@types/sjcl": "^1.0.30"
39
- }
40
- }
1
+ {
2
+ "name": "jssign",
3
+ "version": "0.2.5",
4
+ "description": "A token generator library to encode and decode data using a secret key",
5
+ "main": "dist/cjs/index.js",
6
+ "module": "dist/esm/index.js",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/SahilAggarwal2004/jssign.git"
10
+ },
11
+ "keywords": [
12
+ "jssign",
13
+ "jss",
14
+ "javascript",
15
+ "sign",
16
+ "javascriptsign",
17
+ "token",
18
+ "encryption",
19
+ "decryption",
20
+ "jsonwebtoken",
21
+ "sjcl"
22
+ ],
23
+ "author": "Sahil Aggarwal",
24
+ "license": "MIT",
25
+ "bugs": {
26
+ "url": "https://github.com/SahilAggarwal2004/jssign/issues"
27
+ },
28
+ "homepage": "https://github.com/SahilAggarwal2004/jssign#readme",
29
+ "dependencies": {
30
+ "sjcl": "^1.0.8"
31
+ },
32
+ "devDependencies": {
33
+ "@types/sjcl": "^1.0.31"
34
+ },
35
+ "scripts": {
36
+ "esm": "tsc",
37
+ "cjs": "tsc --module commonjs --outDir dist/cjs --declaration false",
38
+ "build": "pnpm i && pnpm run esm && pnpm run cjs"
39
+ }
40
+ }
@@ -1,12 +0,0 @@
1
- export interface SignOptions {
2
- expiresIn?: number;
3
- sl?: number;
4
- }
5
- export interface EncryptOptions {
6
- expiresIn?: number;
7
- }
8
- declare function sign(data: any, secret: string, { expiresIn, sl }?: SignOptions): string;
9
- declare function verify(token: string, secret: string): any;
10
- declare function encrypt(data: any, secret: string, { expiresIn }?: EncryptOptions): string;
11
- declare function decrypt(token: string, secret: string): any;
12
- export { sign, verify, encrypt, decrypt };
File without changes
File without changes
File without changes