@midwayjs/mongoose 3.5.3 → 3.7.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.
@@ -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.MongooseConfiguration = void 0;
10
- const decorator_1 = require("@midwayjs/decorator");
10
+ const core_1 = require("@midwayjs/core");
11
11
  const manager_1 = require("./manager");
12
12
  let MongooseConfiguration = class MongooseConfiguration {
13
13
  async onReady(container) {
@@ -18,7 +18,7 @@ let MongooseConfiguration = class MongooseConfiguration {
18
18
  }
19
19
  };
20
20
  MongooseConfiguration = __decorate([
21
- (0, decorator_1.Configuration)({
21
+ (0, core_1.Configuration)({
22
22
  namespace: 'mongoose',
23
23
  importConfigs: [
24
24
  {
package/dist/manager.js CHANGED
@@ -11,7 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MongooseConnectionService = exports.MongooseConnectionServiceFactory = exports.MongooseDataSourceManager = void 0;
13
13
  const core_1 = require("@midwayjs/core");
14
- const decorator_1 = require("@midwayjs/decorator");
15
14
  const mongoose = require("mongoose");
16
15
  let MongooseDataSourceManager = class MongooseDataSourceManager extends core_1.DataSourceManager {
17
16
  async init() {
@@ -60,26 +59,26 @@ let MongooseDataSourceManager = class MongooseDataSourceManager extends core_1.D
60
59
  }
61
60
  };
62
61
  __decorate([
63
- (0, decorator_1.Config)('mongoose'),
62
+ (0, core_1.Config)('mongoose'),
64
63
  __metadata("design:type", Object)
65
64
  ], MongooseDataSourceManager.prototype, "config", void 0);
66
65
  __decorate([
67
- (0, decorator_1.Logger)('coreLogger'),
66
+ (0, core_1.Logger)('coreLogger'),
68
67
  __metadata("design:type", Object)
69
68
  ], MongooseDataSourceManager.prototype, "logger", void 0);
70
69
  __decorate([
71
- (0, decorator_1.Inject)(),
70
+ (0, core_1.Inject)(),
72
71
  __metadata("design:type", String)
73
72
  ], MongooseDataSourceManager.prototype, "baseDir", void 0);
74
73
  __decorate([
75
- (0, decorator_1.Init)(),
74
+ (0, core_1.Init)(),
76
75
  __metadata("design:type", Function),
77
76
  __metadata("design:paramtypes", []),
78
77
  __metadata("design:returntype", Promise)
79
78
  ], MongooseDataSourceManager.prototype, "init", null);
80
79
  MongooseDataSourceManager = __decorate([
81
- (0, decorator_1.Provide)(),
82
- (0, decorator_1.Scope)(decorator_1.ScopeEnum.Singleton)
80
+ (0, core_1.Provide)(),
81
+ (0, core_1.Scope)(core_1.ScopeEnum.Singleton)
83
82
  ], MongooseDataSourceManager);
84
83
  exports.MongooseDataSourceManager = MongooseDataSourceManager;
85
84
  /**
@@ -100,12 +99,12 @@ let MongooseConnectionServiceFactory = class MongooseConnectionServiceFactory {
100
99
  }
101
100
  };
102
101
  __decorate([
103
- (0, decorator_1.Inject)(),
102
+ (0, core_1.Inject)(),
104
103
  __metadata("design:type", MongooseDataSourceManager)
105
104
  ], MongooseConnectionServiceFactory.prototype, "mongooseDataSourceManager", void 0);
106
105
  MongooseConnectionServiceFactory = __decorate([
107
- (0, decorator_1.Provide)(),
108
- (0, decorator_1.Scope)(decorator_1.ScopeEnum.Singleton)
106
+ (0, core_1.Provide)(),
107
+ (0, core_1.Scope)(core_1.ScopeEnum.Singleton)
109
108
  ], MongooseConnectionServiceFactory);
110
109
  exports.MongooseConnectionServiceFactory = MongooseConnectionServiceFactory;
111
110
  /**
@@ -120,18 +119,18 @@ let MongooseConnectionService = class MongooseConnectionService {
120
119
  }
121
120
  };
122
121
  __decorate([
123
- (0, decorator_1.Inject)(),
122
+ (0, core_1.Inject)(),
124
123
  __metadata("design:type", MongooseDataSourceManager)
125
124
  ], MongooseConnectionService.prototype, "mongooseDataSourceManager", void 0);
126
125
  __decorate([
127
- (0, decorator_1.Init)(),
126
+ (0, core_1.Init)(),
128
127
  __metadata("design:type", Function),
129
128
  __metadata("design:paramtypes", []),
130
129
  __metadata("design:returntype", Promise)
131
130
  ], MongooseConnectionService.prototype, "init", null);
132
131
  MongooseConnectionService = __decorate([
133
- (0, decorator_1.Provide)(),
134
- (0, decorator_1.Scope)(decorator_1.ScopeEnum.Singleton)
132
+ (0, core_1.Provide)(),
133
+ (0, core_1.Scope)(core_1.ScopeEnum.Singleton)
135
134
  ], MongooseConnectionService);
136
135
  exports.MongooseConnectionService = MongooseConnectionService;
137
136
  (0, core_1.delegateTargetMethod)(MongooseConnectionService, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/mongoose",
3
- "version": "3.5.3",
3
+ "version": "3.7.0",
4
4
  "description": "Midway Component for mongoose",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -22,10 +22,9 @@
22
22
  },
23
23
  "license": "MIT",
24
24
  "devDependencies": {
25
- "@midwayjs/core": "^3.5.3",
26
- "@midwayjs/decorator": "^3.4.11",
27
- "@midwayjs/mock": "^3.5.3",
28
- "mongoose": "6.6.1"
25
+ "@midwayjs/core": "^3.7.0",
26
+ "@midwayjs/mock": "^3.7.0",
27
+ "mongoose": "6.6.7"
29
28
  },
30
- "gitHead": "32356484664846984f6d3d65a3a75dea015e8dcc"
29
+ "gitHead": "99386083ee26b386fd508b9c892091c914e77535"
31
30
  }