@midwayjs/jwt 3.5.1 → 3.6.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/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/jwt.js +4 -4
- package/package.json +7 -8
package/dist/configuration.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IMidwayContainer } from '@midwayjs/core';
|
|
2
2
|
export declare class JwtConfiguration {
|
|
3
|
-
onReady(container:
|
|
3
|
+
onReady(container: IMidwayContainer): Promise<void>;
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=configuration.d.ts.map
|
package/dist/configuration.js
CHANGED
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.JwtConfiguration = void 0;
|
|
10
|
-
const
|
|
10
|
+
const core_1 = require("@midwayjs/core");
|
|
11
11
|
const jwt_1 = require("./jwt");
|
|
12
12
|
let JwtConfiguration = class JwtConfiguration {
|
|
13
13
|
async onReady(container) {
|
|
@@ -15,7 +15,7 @@ let JwtConfiguration = class JwtConfiguration {
|
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
JwtConfiguration = __decorate([
|
|
18
|
-
(0,
|
|
18
|
+
(0, core_1.Configuration)({
|
|
19
19
|
namespace: 'jwt',
|
|
20
20
|
importConfigs: [
|
|
21
21
|
{
|
package/dist/jwt.js
CHANGED
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.JwtService = void 0;
|
|
13
|
-
const
|
|
13
|
+
const core_1 = require("@midwayjs/core");
|
|
14
14
|
const jwt = require("jsonwebtoken");
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -91,12 +91,12 @@ let JwtService = class JwtService {
|
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
__decorate([
|
|
94
|
-
(0,
|
|
94
|
+
(0, core_1.Config)('jwt'),
|
|
95
95
|
__metadata("design:type", Object)
|
|
96
96
|
], JwtService.prototype, "jwtConfig", void 0);
|
|
97
97
|
JwtService = __decorate([
|
|
98
|
-
(0,
|
|
99
|
-
(0,
|
|
98
|
+
(0, core_1.Provide)(),
|
|
99
|
+
(0, core_1.Scope)(core_1.ScopeEnum.Singleton)
|
|
100
100
|
], JwtService);
|
|
101
101
|
exports.JwtService = JwtService;
|
|
102
102
|
//# sourceMappingURL=jwt.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/jwt",
|
|
3
3
|
"description": "midway jwt component",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.6.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -22,16 +22,15 @@
|
|
|
22
22
|
"author": "Nawbc",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@midwayjs/core": "^3.
|
|
26
|
-
"@midwayjs/
|
|
27
|
-
"@midwayjs/
|
|
28
|
-
"@midwayjs/
|
|
29
|
-
"@midwayjs/
|
|
30
|
-
"@midwayjs/web": "^3.5.1",
|
|
25
|
+
"@midwayjs/core": "^3.6.0",
|
|
26
|
+
"@midwayjs/express": "^3.6.0",
|
|
27
|
+
"@midwayjs/koa": "^3.6.0",
|
|
28
|
+
"@midwayjs/mock": "^3.6.0",
|
|
29
|
+
"@midwayjs/web": "^3.6.0",
|
|
31
30
|
"@types/jsonwebtoken": "8.5.9"
|
|
32
31
|
},
|
|
33
32
|
"dependencies": {
|
|
34
33
|
"jsonwebtoken": "^8.5.1"
|
|
35
34
|
},
|
|
36
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "22643b0e8519766bb7c68b975930199fc136336e"
|
|
37
36
|
}
|