@midwayjs/jwt 2.14.0 → 3.0.0-beta.8

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 +3 -3
  2. package/index.d.ts +11 -0
  3. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -3,14 +3,14 @@
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.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
7
7
 
8
8
 
9
9
  ### Bug Fixes
10
10
 
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))
11
+ * 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
12
 
13
13
 
14
14
  ### Features
15
15
 
16
- * support passport and jwt ([#1343](https://github.com/midwayjs/midway/issues/1343)) ([f1a7668](https://github.com/midwayjs/midway/commit/f1a7668dfce5a82ddc37efa7cd6321e088d0b1cc))
16
+ * 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.8",
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.8",
26
+ "@midwayjs/decorator": "^3.0.0-beta.8",
27
+ "@midwayjs/express": "^3.0.0-beta.8",
28
+ "@midwayjs/koa": "^3.0.0-beta.8",
29
+ "@midwayjs/mock": "^3.0.0-beta.8",
30
+ "@midwayjs/web": "^3.0.0-beta.8",
31
+ "@types/jsonwebtoken": "^8.5.5"
32
32
  },
33
33
  "dependencies": {
34
34
  "jsonwebtoken": "^8.5.1"
35
35
  },
36
- "gitHead": "5fd716b0e731162d8e9f0931790fde7402fb83de"
36
+ "gitHead": "bfafbdf8798f48d4daac5dd88ad53c6b2f33c110"
37
37
  }