@midwayjs/jwt 2.14.0 → 3.0.0-beta.12

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 +35 -3
  2. package/index.d.ts +11 -0
  3. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -3,14 +3,46 @@
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.0](https://github.com/midwayjs/midway/compare/v2.13.5...v2.14.0) (2021-12-06)
6
+ # [3.0.0-beta.12](https://github.com/midwayjs/midway/compare/v3.0.0-beta.11...v3.0.0-beta.12) (2021-12-28)
7
+
8
+ **Note:** Version bump only for package @midwayjs/jwt
9
+
10
+
11
+
12
+
13
+
14
+ # [3.0.0-beta.11](https://github.com/midwayjs/midway/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2021-12-21)
15
+
16
+ **Note:** Version bump only for package @midwayjs/jwt
17
+
18
+
19
+
20
+
21
+
22
+ # [3.0.0-beta.10](https://github.com/midwayjs/midway/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2021-12-20)
23
+
24
+ **Note:** Version bump only for package @midwayjs/jwt
25
+
26
+
27
+
28
+
29
+
30
+ # [3.0.0-beta.9](https://github.com/midwayjs/midway/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2021-12-09)
31
+
32
+ **Note:** Version bump only for package @midwayjs/jwt
33
+
34
+
35
+
36
+
37
+
38
+ # [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
7
39
 
8
40
 
9
41
  ### Bug Fixes
10
42
 
11
- * 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))
43
+ * 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))
12
44
 
13
45
 
14
46
  ### Features
15
47
 
16
- * support passport and jwt ([#1343](https://github.com/midwayjs/midway/issues/1343)) ([f1a7668](https://github.com/midwayjs/midway/commit/f1a7668dfce5a82ddc37efa7cd6321e088d0b1cc))
48
+ * 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.0",
4
+ "version": "3.0.0-beta.12",
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.0",
27
- "@midwayjs/koa": "^2.14.0",
28
- "@midwayjs/mock": "^2.14.0",
29
- "@midwayjs/web": "^2.14.0",
30
- "@types/jsonwebtoken": "^8.5.5",
31
- "passport-jwt": "^4.0.0"
25
+ "@midwayjs/core": "^3.0.0-beta.12",
26
+ "@midwayjs/decorator": "^3.0.0-beta.12",
27
+ "@midwayjs/express": "^3.0.0-beta.12",
28
+ "@midwayjs/koa": "^3.0.0-beta.12",
29
+ "@midwayjs/mock": "^3.0.0-beta.12",
30
+ "@midwayjs/web": "^3.0.0-beta.12",
31
+ "@types/jsonwebtoken": "^8.5.5"
32
32
  },
33
33
  "dependencies": {
34
34
  "jsonwebtoken": "^8.5.1"
35
35
  },
36
- "gitHead": "5fd716b0e731162d8e9f0931790fde7402fb83de"
36
+ "gitHead": "1c46e53eb934248007eeb7fe3920f5ac24e272c6"
37
37
  }