@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.
@@ -1,5 +1,5 @@
1
- import { MidwayContainer } from '@midwayjs/core';
1
+ import { IMidwayContainer } from '@midwayjs/core';
2
2
  export declare class JwtConfiguration {
3
- onReady(container: MidwayContainer): Promise<void>;
3
+ onReady(container: IMidwayContainer): Promise<void>;
4
4
  }
5
5
  //# sourceMappingURL=configuration.d.ts.map
@@ -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 decorator_1 = require("@midwayjs/decorator");
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, decorator_1.Configuration)({
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 decorator_1 = require("@midwayjs/decorator");
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, decorator_1.Config)('jwt'),
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, decorator_1.Provide)(),
99
- (0, decorator_1.Scope)(decorator_1.ScopeEnum.Singleton)
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.5.1",
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.5.1",
26
- "@midwayjs/decorator": "^3.4.11",
27
- "@midwayjs/express": "^3.5.1",
28
- "@midwayjs/koa": "^3.5.1",
29
- "@midwayjs/mock": "^3.5.1",
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": "3b63fc768617037644602dd5ad66d3734ce01b16"
35
+ "gitHead": "22643b0e8519766bb7c68b975930199fc136336e"
37
36
  }