@tsed/jwks 6.102.0 → 6.102.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/jwks",
3
- "version": "6.102.0",
3
+ "version": "6.102.4",
4
4
  "description": "Utils to generate jwks pair keys",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/cjs/index.js",
package/readme.md CHANGED
@@ -43,12 +43,12 @@ npm install --save @tsed/jwks
43
43
  import {generateJwks} from "./getJwks";
44
44
 
45
45
  // Generate only jwks
46
- const jwks = generateJwks()
46
+ const jwks = generateJwks();
47
47
 
48
48
  // Create keys.json file if not exists
49
49
  const jwks = getJwks({
50
50
  path: "path/to/keys.json"
51
- })
51
+ });
52
52
  ```
53
53
 
54
54
  Outputs:
@@ -81,16 +81,16 @@ const jwks = generateJwks({
81
81
  {path: "path/keys/sig.rsa.pub.pem", alg: "RS256", use: "sig", kid: "key-0"},
82
82
  {path: "path/keys/enc.rsa.pub.pem", alg: "RS256", use: "enc", kid: "key-1"}
83
83
  ]
84
- })
84
+ });
85
85
 
86
86
  // Create keys.json file if not exists
87
87
  const jwks = getJwks({
88
88
  path: "path/to/keys.json",
89
89
  certificates: [
90
90
  {path: "path/keys/sig.rsa.pub.pem", alg: "RS256", use: "sig", kid: "key-0"},
91
- {path: "path/keys/enc.rsa.pub.pem", alg: "RS256", use: "enc", kid: "key-1"},
91
+ {path: "path/keys/enc.rsa.pub.pem", alg: "RS256", use: "enc", kid: "key-1"}
92
92
  ]
93
- })
93
+ });
94
94
  ```
95
95
 
96
96
  ## Contributors
@@ -8,16 +8,5 @@
8
8
  "declaration": true,
9
9
  "declarationDir": "./lib/types"
10
10
  },
11
- "exclude": [
12
- "node_modules",
13
- "test",
14
- "lib",
15
- "benchmark",
16
- "coverage",
17
- "spec",
18
- "**/*.benchmark.ts",
19
- "**/*.spec.ts",
20
- "keys",
21
- "jest.config.js"
22
- ]
11
+ "exclude": ["node_modules", "test", "lib", "benchmark", "coverage", "spec", "**/*.benchmark.ts", "**/*.spec.ts", "keys", "jest.config.js"]
23
12
  }