@midwayjs/jwt 2.14.2 → 3.0.0-beta.13

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +36 -4
  2. package/index.d.ts +11 -0
  3. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [2.14.2](https://github.com/midwayjs/midway/compare/v2.14.1...v2.14.2) (2021-12-28)
6
+ # [3.0.0-beta.13](https://github.com/midwayjs/midway/compare/v3.0.0-beta.12...v3.0.0-beta.13) (2021-12-30)
7
7
 
8
8
  **Note:** Version bump only for package @midwayjs/jwt
9
9
 
@@ -11,14 +11,46 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- # [2.14.0](https://github.com/midwayjs/midway/compare/v2.13.5...v2.14.0) (2021-12-06)
14
+ # [3.0.0-beta.12](https://github.com/midwayjs/midway/compare/v3.0.0-beta.11...v3.0.0-beta.12) (2021-12-28)
15
+
16
+ **Note:** Version bump only for package @midwayjs/jwt
17
+
18
+
19
+
20
+
21
+
22
+ # [3.0.0-beta.11](https://github.com/midwayjs/midway/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2021-12-21)
23
+
24
+ **Note:** Version bump only for package @midwayjs/jwt
25
+
26
+
27
+
28
+
29
+
30
+ # [3.0.0-beta.10](https://github.com/midwayjs/midway/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2021-12-20)
31
+
32
+ **Note:** Version bump only for package @midwayjs/jwt
33
+
34
+
35
+
36
+
37
+
38
+ # [3.0.0-beta.9](https://github.com/midwayjs/midway/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2021-12-09)
39
+
40
+ **Note:** Version bump only for package @midwayjs/jwt
41
+
42
+
43
+
44
+
45
+
46
+ # [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
15
47
 
16
48
 
17
49
  ### Bug Fixes
18
50
 
19
- * express routing middleware takes effect at the controller level ([#1364](https://github.com/midwayjs/midway/issues/1364)) ([5d5f299](https://github.com/midwayjs/midway/commit/5d5f2992be116ca71b21f01fd782e3a2ac072496))
51
+ * express routing middleware takes effect at the controller level ([#1364](https://github.com/midwayjs/midway/issues/1364)) ([b9272e0](https://github.com/midwayjs/midway/commit/b9272e0971003443304b0c53815be31a0061b4bd))
20
52
 
21
53
 
22
54
  ### Features
23
55
 
24
- * support passport and jwt ([#1343](https://github.com/midwayjs/midway/issues/1343)) ([f1a7668](https://github.com/midwayjs/midway/commit/f1a7668dfce5a82ddc37efa7cd6321e088d0b1cc))
56
+ * support passport and jwt ([#1343](https://github.com/midwayjs/midway/issues/1343)) ([f26af4f](https://github.com/midwayjs/midway/commit/f26af4f3e16507d6f3ffe0467f8f5be69e6306d7))
package/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { SignOptions } from 'jsonwebtoken';
2
+
3
+ export * from './dist/index';
4
+
5
+ declare module '@midwayjs/core/dist/interface' {
6
+ interface MidwayConfig {
7
+ jwt?: SignOptions & {
8
+ secret?: string;
9
+ };
10
+ }
11
+ }
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@midwayjs/jwt",
3
3
  "description": "midway jwt component",
4
- "version": "2.14.2",
4
+ "version": "3.0.0-beta.13",
5
5
  "main": "dist/index.js",
6
- "typings": "dist/index.d.ts",
6
+ "typings": "index.d.ts",
7
7
  "files": [
8
8
  "dist/**/*.js",
9
- "dist/**/*.d.ts"
9
+ "dist/**/*.d.ts",
10
+ "index.d.ts"
10
11
  ],
11
12
  "scripts": {
12
13
  "build": "tsc",
@@ -21,17 +22,16 @@
21
22
  "author": "Nawbc",
22
23
  "license": "MIT",
23
24
  "devDependencies": {
24
- "@midwayjs/core": "^2.14.0",
25
- "@midwayjs/decorator": "^2.14.0",
26
- "@midwayjs/express": "^2.14.2",
27
- "@midwayjs/koa": "^2.14.2",
28
- "@midwayjs/mock": "^2.14.0",
29
- "@midwayjs/web": "^2.14.2",
30
- "@types/jsonwebtoken": "^8.5.5",
31
- "passport-jwt": "^4.0.0"
25
+ "@midwayjs/core": "^3.0.0-beta.13",
26
+ "@midwayjs/decorator": "^3.0.0-beta.13",
27
+ "@midwayjs/express": "^3.0.0-beta.13",
28
+ "@midwayjs/koa": "^3.0.0-beta.13",
29
+ "@midwayjs/mock": "^3.0.0-beta.13",
30
+ "@midwayjs/web": "^3.0.0-beta.13",
31
+ "@types/jsonwebtoken": "^8.5.5"
32
32
  },
33
33
  "dependencies": {
34
34
  "jsonwebtoken": "^8.5.1"
35
35
  },
36
- "gitHead": "68b7fd9182619e8428f353f24a52254abce6e5bf"
36
+ "gitHead": "d3c47770fee9dce33a8d148882173fd7782864ad"
37
37
  }