@cfworker/jwt 1.10.2 → 1.11.0
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/dist/jwks.d.ts +2 -0
- package/dist/types.d.ts +2 -0
- package/dist/verify.d.ts +1 -0
- package/package.json +8 -8
- package/tsconfig.json +7 -2
package/dist/jwks.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="@cfworker/worker-types" />
|
|
2
|
+
/// <reference types="@cloudflare/workers-types" />
|
|
1
3
|
import { DecodedJwt, JsonWebKeyset } from './types.js';
|
|
2
4
|
export declare function getJwks(issuer: string): Promise<JsonWebKeyset>;
|
|
3
5
|
export declare function importKey(iss: string, jwk: JsonWebKey): Promise<void>;
|
package/dist/types.d.ts
CHANGED
package/dist/verify.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfworker/jwt",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "Tiny lib for decoding JWTs and verifying signatures, using native crypto APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jwt",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"test": "cfworker test test/**/*.spec.ts --nocheck"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@cfworker/base64url": "^1.
|
|
38
|
-
"@cfworker/worker-types": "^1.
|
|
39
|
-
"@cloudflare/workers-types": "^2.
|
|
37
|
+
"@cfworker/base64url": "^1.11.0",
|
|
38
|
+
"@cfworker/worker-types": "^1.11.0",
|
|
39
|
+
"@cloudflare/workers-types": "^3.2.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@cfworker/dev": "^1.
|
|
43
|
-
"@types/chai": "^4.2.
|
|
44
|
-
"@types/mocha": "^
|
|
42
|
+
"@cfworker/dev": "^1.11.0",
|
|
43
|
+
"@types/chai": "^4.2.22",
|
|
44
|
+
"@types/mocha": "^9.0.0",
|
|
45
45
|
"chai": "^4.3.4",
|
|
46
|
-
"mocha": "^
|
|
46
|
+
"mocha": "^9.1.3",
|
|
47
47
|
"typescript": "^4.5.2"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/tsconfig.json
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
"extends": "../../tsconfig-base",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"target": "ES2021",
|
|
5
|
-
"lib": ["esnext"
|
|
6
|
-
"types": [
|
|
5
|
+
"lib": ["esnext"],
|
|
6
|
+
"types": [
|
|
7
|
+
"chai",
|
|
8
|
+
"mocha",
|
|
9
|
+
"@cfworker/worker-types",
|
|
10
|
+
"@cloudflare/workers-types"
|
|
11
|
+
],
|
|
7
12
|
"outDir": "dist",
|
|
8
13
|
"rootDir": "./src"
|
|
9
14
|
},
|