@midwayjs/tablestore 3.5.3 → 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.
@@ -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.TableStoreConfiguration = 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 TableStoreConfiguration = class TableStoreConfiguration {
13
13
  async onReady(container) {
@@ -15,7 +15,7 @@ let TableStoreConfiguration = class TableStoreConfiguration {
15
15
  }
16
16
  };
17
17
  TableStoreConfiguration = __decorate([
18
- (0, decorator_1.Configuration)({
18
+ (0, core_1.Configuration)({
19
19
  namespace: 'tableStore',
20
20
  })
21
21
  ], TableStoreConfiguration);
package/dist/manager.js CHANGED
@@ -10,9 +10,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.TableStoreService = exports.TableStoreServiceFactory = void 0;
13
- const decorator_1 = require("@midwayjs/decorator");
14
- const TableStore = require("tablestore");
15
13
  const core_1 = require("@midwayjs/core");
14
+ const TableStore = require("tablestore");
16
15
  let TableStoreServiceFactory = class TableStoreServiceFactory extends core_1.ServiceFactory {
17
16
  async init() {
18
17
  await this.initClients(this.tableStoreConfig);
@@ -25,18 +24,18 @@ let TableStoreServiceFactory = class TableStoreServiceFactory extends core_1.Ser
25
24
  }
26
25
  };
27
26
  __decorate([
28
- (0, decorator_1.Config)('tableStore'),
27
+ (0, core_1.Config)('tableStore'),
29
28
  __metadata("design:type", Object)
30
29
  ], TableStoreServiceFactory.prototype, "tableStoreConfig", void 0);
31
30
  __decorate([
32
- (0, decorator_1.Init)(),
31
+ (0, core_1.Init)(),
33
32
  __metadata("design:type", Function),
34
33
  __metadata("design:paramtypes", []),
35
34
  __metadata("design:returntype", Promise)
36
35
  ], TableStoreServiceFactory.prototype, "init", null);
37
36
  TableStoreServiceFactory = __decorate([
38
- (0, decorator_1.Provide)(),
39
- (0, decorator_1.Scope)(decorator_1.ScopeEnum.Singleton)
37
+ (0, core_1.Provide)(),
38
+ (0, core_1.Scope)(core_1.ScopeEnum.Singleton)
40
39
  ], TableStoreServiceFactory);
41
40
  exports.TableStoreServiceFactory = TableStoreServiceFactory;
42
41
  let TableStoreService = class TableStoreService {
@@ -48,18 +47,18 @@ let TableStoreService = class TableStoreService {
48
47
  }
49
48
  };
50
49
  __decorate([
51
- (0, decorator_1.Inject)(),
50
+ (0, core_1.Inject)(),
52
51
  __metadata("design:type", TableStoreServiceFactory)
53
52
  ], TableStoreService.prototype, "serviceFactory", void 0);
54
53
  __decorate([
55
- (0, decorator_1.Init)(),
54
+ (0, core_1.Init)(),
56
55
  __metadata("design:type", Function),
57
56
  __metadata("design:paramtypes", []),
58
57
  __metadata("design:returntype", Promise)
59
58
  ], TableStoreService.prototype, "init", null);
60
59
  TableStoreService = __decorate([
61
- (0, decorator_1.Provide)(),
62
- (0, decorator_1.Scope)(decorator_1.ScopeEnum.Singleton)
60
+ (0, core_1.Provide)(),
61
+ (0, core_1.Scope)(core_1.ScopeEnum.Singleton)
63
62
  ], TableStoreService);
64
63
  exports.TableStoreService = TableStoreService;
65
64
  (0, core_1.delegateTargetPrototypeMethod)(TableStoreService, [TableStore.Client]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midwayjs/tablestore",
3
3
  "description": "midway tablestore component",
4
- "version": "3.5.3",
4
+ "version": "3.6.0",
5
5
  "main": "dist/index",
6
6
  "typings": "index.d.ts",
7
7
  "files": [
@@ -10,9 +10,8 @@
10
10
  "index.d.ts"
11
11
  ],
12
12
  "devDependencies": {
13
- "@midwayjs/core": "^3.5.3",
14
- "@midwayjs/decorator": "^3.4.11",
15
- "@midwayjs/mock": "^3.5.3"
13
+ "@midwayjs/core": "^3.6.0",
14
+ "@midwayjs/mock": "^3.6.0"
16
15
  },
17
16
  "dependencies": {
18
17
  "int64-buffer": "1.0.1",
@@ -38,5 +37,5 @@
38
37
  "type": "git",
39
38
  "url": "https://github.com/midwayjs/midway.git"
40
39
  },
41
- "gitHead": "32356484664846984f6d3d65a3a75dea015e8dcc"
40
+ "gitHead": "22643b0e8519766bb7c68b975930199fc136336e"
42
41
  }