@loopback/typeorm 0.6.1 → 0.7.1

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 (32) hide show
  1. package/LICENSE +1 -1
  2. package/dist/.sandbox/{27168Df5Ct6 → 94673YdlRqE}/application.js +2 -2
  3. package/dist/.sandbox/{27168Df5Ct6 → 94673YdlRqE}/typeorm-connections/sqlite.connection.js +3 -3
  4. package/dist/.sandbox/{27168Df5Ct6 → 94673YdlRqE}/typeorm-entities/book.entity.js +9 -9
  5. package/dist/.sandbox/{27173H4DHfZ → 94679rvRq7S}/application.js +2 -2
  6. package/dist/.sandbox/{27173H4DHfZ → 94679rvRq7S}/controllers/book.controller.js +15 -15
  7. package/dist/.sandbox/{27173H4DHfZ → 94679rvRq7S}/typeorm-connections/mydb.sql +0 -0
  8. package/dist/.sandbox/{27173H4DHfZ → 94679rvRq7S}/typeorm-connections/sqlite.connection.js +3 -3
  9. package/dist/.sandbox/{27173H4DHfZ → 94679rvRq7S}/typeorm-entities/book.entity.js +9 -9
  10. package/dist/index.js +7 -7
  11. package/dist/index.js.map +1 -1
  12. package/dist/typeorm-connection.booter.js +7 -7
  13. package/dist/typeorm-connection.booter.js.map +1 -1
  14. package/dist/typeorm.decorators.js +1 -1
  15. package/dist/typeorm.decorators.js.map +1 -1
  16. package/dist/typeorm.keys.js +1 -1
  17. package/dist/typeorm.keys.js.map +1 -1
  18. package/dist/typeorm.mixin.d.ts +61 -62
  19. package/dist/typeorm.mixin.js +8 -8
  20. package/dist/typeorm.mixin.js.map +1 -1
  21. package/dist/typeorm.types.js +2 -2
  22. package/dist/typeorm.types.js.map +1 -1
  23. package/dist/typeorm.utils.js +2 -2
  24. package/dist/typeorm.utils.js.map +1 -1
  25. package/package.json +21 -21
  26. package/src/index.ts +1 -1
  27. package/src/typeorm-connection.booter.ts +1 -1
  28. package/src/typeorm.decorators.ts +1 -1
  29. package/src/typeorm.keys.ts +1 -1
  30. package/src/typeorm.mixin.ts +1 -5
  31. package/src/typeorm.types.ts +1 -1
  32. package/src/typeorm.utils.ts +1 -1
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) IBM Corp. 2020.
1
+ Copyright (c) IBM Corp. and LoopBack contributors 2020.
2
2
  Node module: @loopback/typeorm
3
3
  This project is licensed under the MIT License, full text below.
4
4
 
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/typeorm
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -16,4 +16,4 @@ class TypeOrmApp extends (0, boot_1.BootMixin)((0, __1.TypeOrmMixin)(rest_1.Rest
16
16
  }
17
17
  exports.TypeOrmApp = TypeOrmApp;
18
18
  //# sourceMappingURL=application.js.map
19
- //# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/extensions/typeorm/dist/__tests__/fixtures/application.js.map
19
+ //# sourceMappingURL=/Users/dhmlau/loopback-release/loopback-next/extensions/typeorm/dist/__tests__/fixtures/application.js.map
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/typeorm
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.SqliteConnection = void 0;
8
8
  const tslib_1 = require("tslib");
9
- const path_1 = (0, tslib_1.__importDefault)(require("path"));
9
+ const path_1 = tslib_1.__importDefault(require("path"));
10
10
  const book_entity_1 = require("../typeorm-entities/book.entity");
11
11
  exports.SqliteConnection = {
12
12
  name: 'my-db',
@@ -16,4 +16,4 @@ exports.SqliteConnection = {
16
16
  synchronize: true,
17
17
  };
18
18
  //# sourceMappingURL=sqlite.connection.js.map
19
- //# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/extensions/typeorm/dist/__tests__/fixtures/typeorm-connections/sqlite.connection.js.map
19
+ //# sourceMappingURL=/Users/dhmlau/loopback-release/loopback-next/extensions/typeorm/dist/__tests__/fixtures/typeorm-connections/sqlite.connection.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/typeorm
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -9,21 +9,21 @@ const tslib_1 = require("tslib");
9
9
  const __1 = require("../../../");
10
10
  let Book = class Book {
11
11
  };
12
- (0, tslib_1.__decorate)([
12
+ tslib_1.__decorate([
13
13
  (0, __1.PrimaryGeneratedColumn)(),
14
- (0, tslib_1.__metadata)("design:type", Number)
14
+ tslib_1.__metadata("design:type", Number)
15
15
  ], Book.prototype, "id", void 0);
16
- (0, tslib_1.__decorate)([
16
+ tslib_1.__decorate([
17
17
  (0, __1.Column)(),
18
- (0, tslib_1.__metadata)("design:type", String)
18
+ tslib_1.__metadata("design:type", String)
19
19
  ], Book.prototype, "title", void 0);
20
- (0, tslib_1.__decorate)([
20
+ tslib_1.__decorate([
21
21
  (0, __1.Column)(),
22
- (0, tslib_1.__metadata)("design:type", Boolean)
22
+ tslib_1.__metadata("design:type", Boolean)
23
23
  ], Book.prototype, "published", void 0);
24
- Book = (0, tslib_1.__decorate)([
24
+ Book = tslib_1.__decorate([
25
25
  (0, __1.Entity)()
26
26
  ], Book);
27
27
  exports.Book = Book;
28
28
  //# sourceMappingURL=book.entity.js.map
29
- //# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/extensions/typeorm/dist/__tests__/fixtures/typeorm-entities/book.entity.js.map
29
+ //# sourceMappingURL=/Users/dhmlau/loopback-release/loopback-next/extensions/typeorm/dist/__tests__/fixtures/typeorm-entities/book.entity.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/typeorm
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -16,4 +16,4 @@ class TypeOrmApp extends (0, boot_1.BootMixin)((0, __1.TypeOrmMixin)(rest_1.Rest
16
16
  }
17
17
  exports.TypeOrmApp = TypeOrmApp;
18
18
  //# sourceMappingURL=application.js.map
19
- //# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/extensions/typeorm/dist/__tests__/fixtures/application.js.map
19
+ //# sourceMappingURL=/Users/dhmlau/loopback-release/loopback-next/extensions/typeorm/dist/__tests__/fixtures/application.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/typeorm
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -18,14 +18,14 @@ class BookController {
18
18
  return this.bookRepo.save(bookEntity);
19
19
  }
20
20
  async findById(id) {
21
- return this.bookRepo.findOne(id);
21
+ return this.bookRepo.findOne({ where: { id } });
22
22
  }
23
23
  }
24
- (0, tslib_1.__decorate)([
24
+ tslib_1.__decorate([
25
25
  __1.typeorm.repository(book_entity_1.Book, 'my-db'),
26
- (0, tslib_1.__metadata)("design:type", __1.Repository)
26
+ tslib_1.__metadata("design:type", __1.Repository)
27
27
  ], BookController.prototype, "bookRepo", void 0);
28
- (0, tslib_1.__decorate)([
28
+ tslib_1.__decorate([
29
29
  (0, rest_1.post)('/books', {
30
30
  responses: {
31
31
  '200': {
@@ -34,7 +34,7 @@ class BookController {
34
34
  },
35
35
  },
36
36
  }),
37
- (0, tslib_1.__param)(0, (0, rest_1.requestBody)({
37
+ tslib_1.__param(0, (0, rest_1.requestBody)({
38
38
  content: {
39
39
  'application/json': {
40
40
  schema: (0, __1.getModelSchema)(book_entity_1.Book, {
@@ -44,11 +44,11 @@ class BookController {
44
44
  },
45
45
  },
46
46
  })),
47
- (0, tslib_1.__metadata)("design:type", Function),
48
- (0, tslib_1.__metadata)("design:paramtypes", [Object]),
49
- (0, tslib_1.__metadata)("design:returntype", Promise)
47
+ tslib_1.__metadata("design:type", Function),
48
+ tslib_1.__metadata("design:paramtypes", [Object]),
49
+ tslib_1.__metadata("design:returntype", Promise)
50
50
  ], BookController.prototype, "create", null);
51
- (0, tslib_1.__decorate)([
51
+ tslib_1.__decorate([
52
52
  (0, rest_1.get)('/books/{id}', {
53
53
  responses: {
54
54
  '200': {
@@ -61,11 +61,11 @@ class BookController {
61
61
  },
62
62
  },
63
63
  }),
64
- (0, tslib_1.__param)(0, rest_1.param.path.string('id')),
65
- (0, tslib_1.__metadata)("design:type", Function),
66
- (0, tslib_1.__metadata)("design:paramtypes", [String]),
67
- (0, tslib_1.__metadata)("design:returntype", Promise)
64
+ tslib_1.__param(0, rest_1.param.path.number('id')),
65
+ tslib_1.__metadata("design:type", Function),
66
+ tslib_1.__metadata("design:paramtypes", [Number]),
67
+ tslib_1.__metadata("design:returntype", Promise)
68
68
  ], BookController.prototype, "findById", null);
69
69
  exports.BookController = BookController;
70
70
  //# sourceMappingURL=book.controller.js.map
71
- //# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/extensions/typeorm/dist/__tests__/fixtures/controllers/book.controller.js.map
71
+ //# sourceMappingURL=/Users/dhmlau/loopback-release/loopback-next/extensions/typeorm/dist/__tests__/fixtures/controllers/book.controller.js.map
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/typeorm
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.SqliteConnection = void 0;
8
8
  const tslib_1 = require("tslib");
9
- const path_1 = (0, tslib_1.__importDefault)(require("path"));
9
+ const path_1 = tslib_1.__importDefault(require("path"));
10
10
  const book_entity_1 = require("../typeorm-entities/book.entity");
11
11
  exports.SqliteConnection = {
12
12
  name: 'my-db',
@@ -16,4 +16,4 @@ exports.SqliteConnection = {
16
16
  synchronize: true,
17
17
  };
18
18
  //# sourceMappingURL=sqlite.connection.js.map
19
- //# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/extensions/typeorm/dist/__tests__/fixtures/typeorm-connections/sqlite.connection.js.map
19
+ //# sourceMappingURL=/Users/dhmlau/loopback-release/loopback-next/extensions/typeorm/dist/__tests__/fixtures/typeorm-connections/sqlite.connection.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/typeorm
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -9,21 +9,21 @@ const tslib_1 = require("tslib");
9
9
  const __1 = require("../../../");
10
10
  let Book = class Book {
11
11
  };
12
- (0, tslib_1.__decorate)([
12
+ tslib_1.__decorate([
13
13
  (0, __1.PrimaryGeneratedColumn)(),
14
- (0, tslib_1.__metadata)("design:type", Number)
14
+ tslib_1.__metadata("design:type", Number)
15
15
  ], Book.prototype, "id", void 0);
16
- (0, tslib_1.__decorate)([
16
+ tslib_1.__decorate([
17
17
  (0, __1.Column)(),
18
- (0, tslib_1.__metadata)("design:type", String)
18
+ tslib_1.__metadata("design:type", String)
19
19
  ], Book.prototype, "title", void 0);
20
- (0, tslib_1.__decorate)([
20
+ tslib_1.__decorate([
21
21
  (0, __1.Column)(),
22
- (0, tslib_1.__metadata)("design:type", Boolean)
22
+ tslib_1.__metadata("design:type", Boolean)
23
23
  ], Book.prototype, "published", void 0);
24
- Book = (0, tslib_1.__decorate)([
24
+ Book = tslib_1.__decorate([
25
25
  (0, __1.Entity)()
26
26
  ], Book);
27
27
  exports.Book = Book;
28
28
  //# sourceMappingURL=book.entity.js.map
29
- //# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/extensions/typeorm/dist/__tests__/fixtures/typeorm-entities/book.entity.js.map
29
+ //# sourceMappingURL=/Users/dhmlau/loopback-release/loopback-next/extensions/typeorm/dist/__tests__/fixtures/typeorm-entities/book.entity.js.map
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/typeorm
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  const tslib_1 = require("tslib");
8
- (0, tslib_1.__exportStar)(require("./typeorm-connection.booter"), exports);
9
- (0, tslib_1.__exportStar)(require("./typeorm.decorators"), exports);
10
- (0, tslib_1.__exportStar)(require("./typeorm.keys"), exports);
11
- (0, tslib_1.__exportStar)(require("./typeorm.mixin"), exports);
12
- (0, tslib_1.__exportStar)(require("./typeorm.types"), exports);
13
- (0, tslib_1.__exportStar)(require("./typeorm.utils"), exports);
8
+ tslib_1.__exportStar(require("./typeorm-connection.booter"), exports);
9
+ tslib_1.__exportStar(require("./typeorm.decorators"), exports);
10
+ tslib_1.__exportStar(require("./typeorm.keys"), exports);
11
+ tslib_1.__exportStar(require("./typeorm.mixin"), exports);
12
+ tslib_1.__exportStar(require("./typeorm.types"), exports);
13
+ tslib_1.__exportStar(require("./typeorm.utils"), exports);
14
14
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,2EAA4C;AAC5C,oEAAqC;AACrC,8DAA+B;AAC/B,+DAAgC;AAChC,+DAAgC;AAChC,+DAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,sEAA4C;AAC5C,+DAAqC;AACrC,yDAA+B;AAC/B,0DAAgC;AAChC,0DAAgC;AAChC,0DAAgC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/graphql
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -8,7 +8,7 @@ exports.ConnectionDefaults = exports.TypeOrmConnectionBooter = void 0;
8
8
  const tslib_1 = require("tslib");
9
9
  const boot_1 = require("@loopback/boot");
10
10
  const core_1 = require("@loopback/core");
11
- const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
11
+ const debug_1 = tslib_1.__importDefault(require("debug"));
12
12
  const debug = (0, debug_1.default)('loopback:typeorm:mixin');
13
13
  /**
14
14
  * A class that extends BaseArtifactBooter to boot the TypeORM connection artifact type.
@@ -45,12 +45,12 @@ let TypeOrmConnectionBooter = class TypeOrmConnectionBooter extends boot_1.BaseA
45
45
  }
46
46
  }
47
47
  };
48
- TypeOrmConnectionBooter = (0, tslib_1.__decorate)([
48
+ TypeOrmConnectionBooter = tslib_1.__decorate([
49
49
  (0, boot_1.booter)('connections'),
50
- (0, tslib_1.__param)(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
51
- (0, tslib_1.__param)(1, (0, core_1.inject)(boot_1.BootBindings.PROJECT_ROOT)),
52
- (0, tslib_1.__param)(2, (0, core_1.config)()),
53
- (0, tslib_1.__metadata)("design:paramtypes", [Object, String, Object])
50
+ tslib_1.__param(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
51
+ tslib_1.__param(1, (0, core_1.inject)(boot_1.BootBindings.PROJECT_ROOT)),
52
+ tslib_1.__param(2, (0, core_1.config)()),
53
+ tslib_1.__metadata("design:paramtypes", [Object, String, Object])
54
54
  ], TypeOrmConnectionBooter);
55
55
  exports.TypeOrmConnectionBooter = TypeOrmConnectionBooter;
56
56
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"typeorm-connection.booter.js","sourceRoot":"","sources":["../src/typeorm-connection.booter.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAKwB;AACxB,yCAA4D;AAC5D,+DAAiC;AAEjC,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,wBAAwB,CAAC,CAAC;AAErD;;;;;;;;GAQG;AAEH,IAAa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,yBAAkB;IAC7D,YAES,GAA4B,EACA,WAAmB,EAE/C,eAAgC,EAAE;QAEzC,KAAK,CACH,WAAW;QACX,6DAA6D;QAC7D,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,0BAAkB,EAAE,YAAY,CAAC,CACpD,CAAC;QATK,QAAG,GAAH,GAAG,CAAyB;QAG5B,iBAAY,GAAZ,YAAY,CAAsB;IAO3C,CAAC;IAED,KAAK,CAAC,IAAI;QACR,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;YAClC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE;gBACxB,OAAO,CAAC,IAAI,CACV,+EAA+E;oBAC7E,mEAAmE,CACtE,CAAC;aACH;iBAAM;gBACL,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;gBAClC,KAAK,MAAM,CAAC,IAAI,WAAW,EAAE;oBAC3B,MAAM,UAAU,GAAsB,WAAW,CAAC,CAAC,CAAC,CAAC;oBACrD,KAAK,CAAC,gBAAgB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;oBACzC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;oBAChD,KAAK,CACH,uCAAuC,EACvC,UAAU,CAAC,IAAI,EACf,OAAO,CACR,CAAC;iBACH;aACF;SACF;IACH,CAAC;CACF,CAAA;AArCY,uBAAuB;IADnC,IAAA,aAAM,EAAC,aAAa,CAAC;IAGjB,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;IAEzC,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,YAAY,CAAC,CAAA;IACjC,wBAAA,IAAA,aAAM,GAAE,CAAA;;GALA,uBAAuB,CAqCnC;AArCY,0DAAuB;AAuCpC;;GAEG;AACU,QAAA,kBAAkB,GAAoB;IACjD,IAAI,EAAE,CAAC,qBAAqB,CAAC;IAC7B,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,MAAM,EAAE,IAAI;CACb,CAAC"}
1
+ {"version":3,"file":"typeorm-connection.booter.js","sourceRoot":"","sources":["../src/typeorm-connection.booter.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAKwB;AACxB,yCAA4D;AAC5D,0DAAiC;AAEjC,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,wBAAwB,CAAC,CAAC;AAErD;;;;;;;;GAQG;AAEH,IAAa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,yBAAkB;IAC7D,YAES,GAA4B,EACA,WAAmB,EAE/C,eAAgC,EAAE;QAEzC,KAAK,CACH,WAAW;QACX,6DAA6D;QAC7D,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,0BAAkB,EAAE,YAAY,CAAC,CACpD,CAAC;QATK,QAAG,GAAH,GAAG,CAAyB;QAG5B,iBAAY,GAAZ,YAAY,CAAsB;IAO3C,CAAC;IAED,KAAK,CAAC,IAAI;QACR,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;YAClC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE;gBACxB,OAAO,CAAC,IAAI,CACV,+EAA+E;oBAC7E,mEAAmE,CACtE,CAAC;aACH;iBAAM;gBACL,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;gBAClC,KAAK,MAAM,CAAC,IAAI,WAAW,EAAE;oBAC3B,MAAM,UAAU,GAAsB,WAAW,CAAC,CAAC,CAAC,CAAC;oBACrD,KAAK,CAAC,gBAAgB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;oBACzC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;oBAChD,KAAK,CACH,uCAAuC,EACvC,UAAU,CAAC,IAAI,EACf,OAAO,CACR,CAAC;iBACH;aACF;SACF;IACH,CAAC;CACF,CAAA;AArCY,uBAAuB;IADnC,IAAA,aAAM,EAAC,aAAa,CAAC;IAGjB,mBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;IAEzC,mBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,YAAY,CAAC,CAAA;IACjC,mBAAA,IAAA,aAAM,GAAE,CAAA;;GALA,uBAAuB,CAqCnC;AArCY,0DAAuB;AAuCpC;;GAEG;AACU,QAAA,kBAAkB,GAAoB;IACjD,IAAI,EAAE,CAAC,qBAAqB,CAAC;IAC7B,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,MAAM,EAAE,IAAI;CACb,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/typeorm
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -1 +1 @@
1
- {"version":3,"file":"typeorm.decorators.js","sourceRoot":"","sources":["../src/typeorm.decorators.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAA6E;AAC7E,iDAA+C;AAE/C,IAAiB,OAAO,CAevB;AAfD,WAAiB,OAAO;IACtB,SAAgB,UAAU,CAAC,MAAgB,EAAE,cAAuB;QAClE,OAAO,IAAA,aAAM,EACX,EAAE,EACF,EAAC,SAAS,EAAE,qBAAqB,EAAC,EAClC,KAAK,EACH,GAAY,EACZ,SAA8B,EAC9B,OAA0B,EAC1B,EAAE;YACF,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;YACtD,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QACpC,CAAC,CACF,CAAC;IACJ,CAAC;IAbe,kBAAU,aAazB,CAAA;AACH,CAAC,EAfgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAevB;AAED;;;;GAIG;AACH,KAAK,UAAU,aAAa,CAAC,GAAY,EAAE,cAAuB;IAChE,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,8BAAe,CAAC,OAAO,CAAC,CAAC;IACvD,OAAO,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"typeorm.decorators.js","sourceRoot":"","sources":["../src/typeorm.decorators.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAA6E;AAC7E,iDAA+C;AAE/C,IAAiB,OAAO,CAevB;AAfD,WAAiB,OAAO;IACtB,SAAgB,UAAU,CAAC,MAAgB,EAAE,cAAuB;QAClE,OAAO,IAAA,aAAM,EACX,EAAE,EACF,EAAC,SAAS,EAAE,qBAAqB,EAAC,EAClC,KAAK,EACH,GAAY,EACZ,SAA8B,EAC9B,OAA0B,EAC1B,EAAE;YACF,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;YACtD,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QACpC,CAAC,CACF,CAAC;IACJ,CAAC;IAbe,kBAAU,aAazB,CAAA;AACH,CAAC,EAfgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAevB;AAED;;;;GAIG;AACH,KAAK,UAAU,aAAa,CAAC,GAAY,EAAE,cAAuB;IAChE,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,8BAAe,CAAC,OAAO,CAAC,CAAC;IACvD,OAAO,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;AACrC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/typeorm
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -1 +1 @@
1
- {"version":3,"file":"typeorm.keys.js","sourceRoot":"","sources":["../src/typeorm.keys.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAA0C;AAG1C;;GAEG;AACH,IAAiB,eAAe,CAM/B;AAND,WAAiB,eAAe;IACjB,uBAAO,GAAG,iBAAU,CAAC,MAAM,CACtC,mCAAmC,CACpC,CAAC;IACW,sBAAM,GAAG,YAAY,CAAC;IACtB,mBAAG,GAAG,mBAAmB,CAAC;AACzC,CAAC,EANgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAM/B"}
1
+ {"version":3,"file":"typeorm.keys.js","sourceRoot":"","sources":["../src/typeorm.keys.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAA0C;AAG1C;;GAEG;AACH,IAAiB,eAAe,CAM/B;AAND,WAAiB,eAAe;IACjB,uBAAO,GAAG,iBAAU,CAAC,MAAM,CACtC,mCAAmC,CACpC,CAAC;IACW,sBAAM,GAAG,YAAY,CAAC;IACtB,mBAAG,GAAG,mBAAmB,CAAC;AACzC,CAAC,EANgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAM/B"}
@@ -1,92 +1,91 @@
1
- import * as loopbackContext from '@loopback/core';
2
- import { Application, Binding, Component, LifeCycleObserver, MixinTarget } from '@loopback/core';
1
+ import { Application, Binding, BindingScope, Component, LifeCycleObserver, MixinTarget } from '@loopback/core';
3
2
  import { Connection, ConnectionManager, ConnectionOptions } from 'typeorm';
4
3
  export declare function TypeOrmMixin<T extends MixinTarget<Application>>(superClass: T): {
5
4
  new (...args: any[]): {
6
5
  connectionManager: ConnectionManager;
7
- connection(connectionConfig: ConnectionOptions): loopbackContext.Binding<Connection>;
6
+ connection(connectionConfig: ConnectionOptions): Binding<Connection>;
8
7
  migrateSchema(): Promise<void>;
9
- readonly options: loopbackContext.ApplicationConfig;
8
+ readonly options: import("@loopback/core").ApplicationConfig;
10
9
  readonly state: string;
11
- controller: <T_1>(controllerCtor: loopbackContext.ControllerClass<T_1>, nameOrOptions?: string | loopbackContext.BindingFromClassOptions | undefined) => loopbackContext.Binding<T_1>;
12
- server: <T_2 extends loopbackContext.Server>(ctor: loopbackContext.Constructor<T_2>, nameOrOptions?: string | loopbackContext.BindingFromClassOptions | undefined) => loopbackContext.Binding<T_2>;
13
- servers: <T_3 extends loopbackContext.Server>(ctors: loopbackContext.Constructor<T_3>[]) => loopbackContext.Binding<any>[];
14
- getServer: <T_4 extends loopbackContext.Server>(target: string | loopbackContext.Constructor<T_4>) => Promise<T_4>;
10
+ controller: <T_1>(controllerCtor: import("@loopback/core").ControllerClass<T_1>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => Binding<T_1>;
11
+ server: <T_2 extends import("@loopback/core").Server>(ctor: import("@loopback/core").Constructor<T_2>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => Binding<T_2>;
12
+ servers: <T_3 extends import("@loopback/core").Server>(ctors: import("@loopback/core").Constructor<T_3>[]) => Binding<any>[];
13
+ getServer: <T_4 extends import("@loopback/core").Server>(target: string | import("@loopback/core").Constructor<T_4>) => Promise<T_4>;
15
14
  init: () => Promise<void>;
16
- onInit: (fn: () => loopbackContext.ValueOrPromise<void>) => loopbackContext.Binding<loopbackContext.LifeCycleObserver>;
15
+ onInit: (fn: () => import("@loopback/core").ValueOrPromise<void>) => Binding<LifeCycleObserver>;
17
16
  start: () => Promise<void>;
18
- onStart: (fn: () => loopbackContext.ValueOrPromise<void>) => loopbackContext.Binding<loopbackContext.LifeCycleObserver>;
17
+ onStart: (fn: () => import("@loopback/core").ValueOrPromise<void>) => Binding<LifeCycleObserver>;
19
18
  stop: () => Promise<void>;
20
- onStop: (fn: () => loopbackContext.ValueOrPromise<void>) => loopbackContext.Binding<loopbackContext.LifeCycleObserver>;
21
- component: <T_5 extends loopbackContext.Component = loopbackContext.Component>(componentCtor: loopbackContext.Constructor<T_5>, nameOrOptions?: string | loopbackContext.BindingFromClassOptions | undefined) => loopbackContext.Binding<T_5>;
22
- setMetadata: (metadata: loopbackContext.ApplicationMetadata) => void;
23
- lifeCycleObserver: <T_6 extends loopbackContext.LifeCycleObserver>(ctor: loopbackContext.Constructor<T_6>, nameOrOptions?: string | loopbackContext.BindingFromClassOptions | undefined) => loopbackContext.Binding<T_6>;
24
- service: <S>(cls: loopbackContext.ServiceOrProviderClass<S>, nameOrOptions?: string | loopbackContext.ServiceOptions | undefined) => loopbackContext.Binding<S>;
25
- interceptor: (interceptor: loopbackContext.Interceptor | loopbackContext.Constructor<loopbackContext.Provider<loopbackContext.Interceptor>>, nameOrOptions?: string | loopbackContext.InterceptorBindingOptions | undefined) => loopbackContext.Binding<loopbackContext.Interceptor>;
19
+ onStop: (fn: () => import("@loopback/core").ValueOrPromise<void>) => Binding<LifeCycleObserver>;
20
+ component: <T_5 extends Component = Component>(componentCtor: import("@loopback/core").Constructor<T_5>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => Binding<T_5>;
21
+ setMetadata: (metadata: import("@loopback/core").ApplicationMetadata) => void;
22
+ lifeCycleObserver: <T_6 extends LifeCycleObserver>(ctor: import("@loopback/core").Constructor<T_6>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => Binding<T_6>;
23
+ service: <S>(cls: import("@loopback/core").ServiceOrProviderClass<S>, nameOrOptions?: string | import("@loopback/core").ServiceOptions | undefined) => Binding<S>;
24
+ interceptor: (interceptor: import("@loopback/core").Interceptor | import("@loopback/core").Constructor<import("@loopback/core").Provider<import("@loopback/core").Interceptor>>, nameOrOptions?: string | import("@loopback/core").InterceptorBindingOptions | undefined) => Binding<import("@loopback/core").Interceptor>;
26
25
  readonly name: string;
27
- readonly subscriptionManager: loopbackContext.ContextSubscriptionManager;
28
- scope: loopbackContext.BindingScope;
29
- readonly parent: loopbackContext.Context | undefined;
30
- emitEvent: <T_7 extends loopbackContext.ContextEvent>(type: string, event: T_7) => void;
26
+ readonly subscriptionManager: import("@loopback/core").ContextSubscriptionManager;
27
+ scope: BindingScope;
28
+ readonly parent: import("@loopback/core").Context | undefined;
29
+ emitEvent: <T_7 extends import("@loopback/core").ContextEvent>(type: string, event: T_7) => void;
31
30
  emitError: (err: unknown) => void;
32
- bind: <ValueType = any>(key: loopbackContext.BindingAddress<ValueType>) => loopbackContext.Binding<ValueType>;
33
- add: (binding: loopbackContext.Binding<unknown>) => loopbackContext.Application;
34
- configure: <ConfigValueType = any>(key?: loopbackContext.BindingAddress<unknown> | undefined) => loopbackContext.Binding<ConfigValueType>;
35
- getConfigAsValueOrPromise: <ConfigValueType_1>(key: loopbackContext.BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: loopbackContext.ResolutionOptions | undefined) => loopbackContext.ValueOrPromise<ConfigValueType_1 | undefined>;
36
- getConfig: <ConfigValueType_2>(key: loopbackContext.BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: loopbackContext.ResolutionOptions | undefined) => Promise<ConfigValueType_2 | undefined>;
37
- getConfigSync: <ConfigValueType_3>(key: loopbackContext.BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: loopbackContext.ResolutionOptions | undefined) => ConfigValueType_3 | undefined;
38
- unbind: (key: loopbackContext.BindingAddress<unknown>) => boolean;
39
- subscribe: (observer: loopbackContext.ContextEventObserver) => loopbackContext.Subscription;
40
- unsubscribe: (observer: loopbackContext.ContextEventObserver) => boolean;
31
+ bind: <ValueType = any>(key: import("@loopback/core").BindingAddress<ValueType>) => Binding<ValueType>;
32
+ add: (binding: Binding<unknown>) => Application;
33
+ configure: <ConfigValueType = any>(key?: import("@loopback/core").BindingAddress<unknown> | undefined) => Binding<ConfigValueType>;
34
+ getConfigAsValueOrPromise: <ConfigValueType_1>(key: import("@loopback/core").BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => import("@loopback/core").ValueOrPromise<ConfigValueType_1 | undefined>;
35
+ getConfig: <ConfigValueType_2>(key: import("@loopback/core").BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => Promise<ConfigValueType_2 | undefined>;
36
+ getConfigSync: <ConfigValueType_3>(key: import("@loopback/core").BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => ConfigValueType_3 | undefined;
37
+ unbind: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
38
+ subscribe: (observer: import("@loopback/core").ContextEventObserver) => import("@loopback/core").Subscription;
39
+ unsubscribe: (observer: import("@loopback/core").ContextEventObserver) => boolean;
41
40
  close: () => void;
42
- isSubscribed: (observer: loopbackContext.ContextObserver) => boolean;
43
- createView: <T_8 = unknown>(filter: loopbackContext.BindingFilter, comparator?: loopbackContext.BindingComparator | undefined, options?: Omit<loopbackContext.ResolutionOptions, "session"> | undefined) => loopbackContext.ContextView<T_8>;
44
- contains: (key: loopbackContext.BindingAddress<unknown>) => boolean;
45
- isBound: (key: loopbackContext.BindingAddress<unknown>) => boolean;
46
- getOwnerContext: (keyOrBinding: loopbackContext.BindingAddress<unknown> | Readonly<loopbackContext.Binding<unknown>>) => loopbackContext.Context | undefined;
47
- getScopedContext: (scope: loopbackContext.BindingScope.APPLICATION | loopbackContext.BindingScope.SERVER | loopbackContext.BindingScope.REQUEST) => loopbackContext.Context | undefined;
48
- getResolutionContext: (binding: Readonly<loopbackContext.Binding<unknown>>) => loopbackContext.Context | undefined;
49
- isVisibleTo: (ctx: loopbackContext.Context) => boolean;
50
- find: <ValueType_1 = any>(pattern?: string | RegExp | loopbackContext.BindingFilter | undefined) => Readonly<loopbackContext.Binding<ValueType_1>>[];
51
- findByTag: <ValueType_2 = any>(tagFilter: RegExp | loopbackContext.BindingTag) => Readonly<loopbackContext.Binding<ValueType_2>>[];
41
+ isSubscribed: (observer: import("@loopback/core").ContextObserver) => boolean;
42
+ createView: <T_8 = unknown>(filter: import("@loopback/core").BindingFilter, comparator?: import("@loopback/core").BindingComparator | undefined, options?: Omit<import("@loopback/core").ResolutionOptions, "session"> | undefined) => import("@loopback/core").ContextView<T_8>;
43
+ contains: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
44
+ isBound: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
45
+ getOwnerContext: (keyOrBinding: import("@loopback/core").BindingAddress<unknown> | Readonly<Binding<unknown>>) => import("@loopback/core").Context | undefined;
46
+ getScopedContext: (scope: BindingScope.APPLICATION | BindingScope.SERVER | BindingScope.REQUEST) => import("@loopback/core").Context | undefined;
47
+ getResolutionContext: (binding: Readonly<Binding<unknown>>) => import("@loopback/core").Context | undefined;
48
+ isVisibleTo: (ctx: import("@loopback/core").Context) => boolean;
49
+ find: <ValueType_1 = any>(pattern?: string | RegExp | import("@loopback/core").BindingFilter | undefined) => Readonly<Binding<ValueType_1>>[];
50
+ findByTag: <ValueType_2 = any>(tagFilter: RegExp | import("@loopback/core").BindingTag) => Readonly<Binding<ValueType_2>>[];
52
51
  get: {
53
- <ValueType_3>(keyWithPath: loopbackContext.BindingAddress<ValueType_3>, session?: loopbackContext.ResolutionSession | undefined): Promise<ValueType_3>;
54
- <ValueType_4>(keyWithPath: loopbackContext.BindingAddress<ValueType_4>, options: loopbackContext.ResolutionOptions): Promise<ValueType_4 | undefined>;
52
+ <ValueType_3>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_3>, session?: import("@loopback/core").ResolutionSession | undefined): Promise<ValueType_3>;
53
+ <ValueType_4>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_4>, options: import("@loopback/core").ResolutionOptions): Promise<ValueType_4 | undefined>;
55
54
  };
56
55
  getSync: {
57
- <ValueType_5>(keyWithPath: loopbackContext.BindingAddress<ValueType_5>, session?: loopbackContext.ResolutionSession | undefined): ValueType_5;
58
- <ValueType_6>(keyWithPath: loopbackContext.BindingAddress<ValueType_6>, options?: loopbackContext.ResolutionOptions | undefined): ValueType_6 | undefined;
56
+ <ValueType_5>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_5>, session?: import("@loopback/core").ResolutionSession | undefined): ValueType_5;
57
+ <ValueType_6>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_6>, options?: import("@loopback/core").ResolutionOptions | undefined): ValueType_6 | undefined;
59
58
  };
60
59
  getBinding: {
61
- <ValueType_7 = any>(key: loopbackContext.BindingAddress<ValueType_7>): loopbackContext.Binding<ValueType_7>;
62
- <ValueType_8>(key: loopbackContext.BindingAddress<ValueType_8>, options?: {
60
+ <ValueType_7 = any>(key: import("@loopback/core").BindingAddress<ValueType_7>): Binding<ValueType_7>;
61
+ <ValueType_8>(key: import("@loopback/core").BindingAddress<ValueType_8>, options?: {
63
62
  optional?: boolean | undefined;
64
- } | undefined): loopbackContext.Binding<ValueType_8> | undefined;
63
+ } | undefined): Binding<ValueType_8> | undefined;
65
64
  };
66
- findOrCreateBinding: <T_9>(key: loopbackContext.BindingAddress<T_9>, policy?: loopbackContext.BindingCreationPolicy | undefined) => loopbackContext.Binding<T_9>;
67
- getValueOrPromise: <ValueType_9>(keyWithPath: loopbackContext.BindingAddress<ValueType_9>, optionsOrSession?: loopbackContext.ResolutionOptionsOrSession | undefined) => loopbackContext.ValueOrPromise<ValueType_9 | undefined>;
68
- toJSON: () => loopbackContext.JSONObject;
69
- inspect: (options?: loopbackContext.ContextInspectOptions | undefined) => loopbackContext.JSONObject;
65
+ findOrCreateBinding: <T_9>(key: import("@loopback/core").BindingAddress<T_9>, policy?: import("@loopback/core").BindingCreationPolicy | undefined) => Binding<T_9>;
66
+ getValueOrPromise: <ValueType_9>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_9>, optionsOrSession?: import("@loopback/core").ResolutionOptionsOrSession | undefined) => import("@loopback/core").ValueOrPromise<ValueType_9 | undefined>;
67
+ toJSON: () => import("@loopback/core").JSONObject;
68
+ inspect: (options?: import("@loopback/core").ContextInspectOptions | undefined) => import("@loopback/core").JSONObject;
70
69
  on: {
71
- (eventName: "bind" | "unbind", listener: loopbackContext.ContextEventListener): loopbackContext.Application;
72
- (event: string | symbol, listener: (...args: any[]) => void): loopbackContext.Application;
70
+ (eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): Application;
71
+ (event: string | symbol, listener: (...args: any[]) => void): Application;
73
72
  };
74
73
  once: {
75
- (eventName: "bind" | "unbind", listener: loopbackContext.ContextEventListener): loopbackContext.Application;
76
- (event: string | symbol, listener: (...args: any[]) => void): loopbackContext.Application;
74
+ (eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): Application;
75
+ (event: string | symbol, listener: (...args: any[]) => void): Application;
77
76
  };
78
- addListener: (event: string | symbol, listener: (...args: any[]) => void) => loopbackContext.Application;
79
- removeListener: (event: string | symbol, listener: (...args: any[]) => void) => loopbackContext.Application;
80
- off: (event: string | symbol, listener: (...args: any[]) => void) => loopbackContext.Application;
81
- removeAllListeners: (event?: string | symbol | undefined) => loopbackContext.Application;
82
- setMaxListeners: (n: number) => loopbackContext.Application;
77
+ addListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
78
+ removeListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
79
+ off: (event: string | symbol, listener: (...args: any[]) => void) => Application;
80
+ removeAllListeners: (event?: string | symbol | undefined) => Application;
81
+ setMaxListeners: (n: number) => Application;
83
82
  getMaxListeners: () => number;
84
83
  listeners: (event: string | symbol) => Function[];
85
84
  rawListeners: (event: string | symbol) => Function[];
86
85
  emit: (event: string | symbol, ...args: any[]) => boolean;
87
- listenerCount: (type: string | symbol) => number;
88
- prependListener: (event: string | symbol, listener: (...args: any[]) => void) => loopbackContext.Application;
89
- prependOnceListener: (event: string | symbol, listener: (...args: any[]) => void) => loopbackContext.Application;
86
+ listenerCount: (event: string | symbol) => number;
87
+ prependListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
88
+ prependOnceListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
90
89
  eventNames: () => (string | symbol)[];
91
90
  };
92
91
  } & T;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/typeorm
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.TypeOrmLifeCycleManager = exports.TypeOrmComponent = exports.TypeOrmMixin = void 0;
8
8
  const tslib_1 = require("tslib");
9
9
  const core_1 = require("@loopback/core");
10
- const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
10
+ const debug_1 = tslib_1.__importDefault(require("debug"));
11
11
  const typeorm_1 = require("typeorm");
12
12
  const _1 = require("./");
13
13
  const typeorm_keys_1 = require("./typeorm.keys");
@@ -45,9 +45,9 @@ let TypeOrmComponent = class TypeOrmComponent {
45
45
  this.lifeCycleObservers = [TypeOrmLifeCycleManager];
46
46
  }
47
47
  };
48
- TypeOrmComponent = (0, tslib_1.__decorate)([
49
- (0, tslib_1.__param)(0, (0, core_1.config)()),
50
- (0, tslib_1.__metadata)("design:paramtypes", [Object])
48
+ TypeOrmComponent = tslib_1.__decorate([
49
+ tslib_1.__param(0, (0, core_1.config)()),
50
+ tslib_1.__metadata("design:paramtypes", [Object])
51
51
  ], TypeOrmComponent);
52
52
  exports.TypeOrmComponent = TypeOrmComponent;
53
53
  let TypeOrmLifeCycleManager = class TypeOrmLifeCycleManager {
@@ -61,12 +61,12 @@ let TypeOrmLifeCycleManager = class TypeOrmLifeCycleManager {
61
61
  await Promise.all(this.manager.connections.map(c => c.close()));
62
62
  }
63
63
  };
64
- TypeOrmLifeCycleManager = (0, tslib_1.__decorate)([
64
+ TypeOrmLifeCycleManager = tslib_1.__decorate([
65
65
  (0, core_1.lifeCycleObserver)('datasource', {
66
66
  scope: core_1.BindingScope.SINGLETON,
67
67
  }),
68
- (0, tslib_1.__param)(0, (0, core_1.inject)(typeorm_keys_1.TypeOrmBindings.MANAGER)),
69
- (0, tslib_1.__metadata)("design:paramtypes", [typeorm_1.ConnectionManager])
68
+ tslib_1.__param(0, (0, core_1.inject)(typeorm_keys_1.TypeOrmBindings.MANAGER)),
69
+ tslib_1.__metadata("design:paramtypes", [typeorm_1.ConnectionManager])
70
70
  ], TypeOrmLifeCycleManager);
71
71
  exports.TypeOrmLifeCycleManager = TypeOrmLifeCycleManager;
72
72
  //# sourceMappingURL=typeorm.mixin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeorm.mixin.js","sourceRoot":"","sources":["../src/typeorm.mixin.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,iCAAiC;AACjC,+CAA+C;AAC/C,gEAA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OAAO,CAA8B;QAFnE,aAAQ,GAAc,CAAC,IAAA,6BAAsB,EAAC,0BAAuB,CAAC,CAAC,CAAC;QACxE,uBAAkB,GAAG,CAAC,uBAAuB,CAAC,CAAC;IACuB,CAAC;CACxE,CAAA;AAJY,gBAAgB;IAGd,mBAAA,IAAA,aAAM,GAAE,CAAA;;GAHV,gBAAgB,CAI5B;AAJY,4CAAgB;AAS7B,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;IAClC,YAEU,OAA0B;QAA1B,YAAO,GAAP,OAAO,CAAmB;IACjC,CAAC;IAEJ,KAAK,CAAC,KAAK;QACT,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACpE,CAAC;IAED,KAAK,CAAC,IAAI;QACR,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAClE,CAAC;CACF,CAAA;AAbY,uBAAuB;IAHnC,IAAA,wBAAiB,EAAC,YAAY,EAAE;QAC/B,KAAK,EAAE,mBAAY,CAAC,SAAS;KAC9B,CAAC;IAGG,mBAAA,IAAA,aAAM,EAAC,8BAAe,CAAC,OAAO,CAAC,CAAA;6CACf,2BAAiB;GAHzB,uBAAuB,CAanC;AAbY,0DAAuB"}
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/typeorm
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  const tslib_1 = require("tslib");
8
8
  // Re-export everything from 'typeorm'
9
- (0, tslib_1.__exportStar)(require("typeorm"), exports);
9
+ tslib_1.__exportStar(require("typeorm"), exports);
10
10
  //# sourceMappingURL=typeorm.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeorm.types.js","sourceRoot":"","sources":["../src/typeorm.types.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,sCAAsC;AACtC,uDAAwB"}
1
+ {"version":3,"file":"typeorm.types.js","sourceRoot":"","sources":["../src/typeorm.types.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,sCAAsC;AACtC,kDAAwB"}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/typeorm
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.getModelSchema = void 0;
8
8
  const tslib_1 = require("tslib");
9
- const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
9
+ const debug_1 = tslib_1.__importDefault(require("debug"));
10
10
  const typeorm_1 = require("typeorm");
11
11
  const debug = (0, debug_1.default)('loopback:typeorm:mixin');
12
12
  const modelSchemaCache = new WeakMap();
@@ -1 +1 @@
1
- {"version":3,"file":"typeorm.utils.js","sourceRoot":"","sources":["../src/typeorm.utils.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;;AAGhE,+DAAiC;AACjC,qCAA+C;AAG/C,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,wBAAwB,CAAC,CAAC;AAErD,MAAM,gBAAgB,GAAG,IAAI,OAAO,EAAE,CAAC;AAEvC;;;;;;GAMG;AACH,SAAgB,cAA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AS,CAAC,IAAI;QACrB,UAAU;KACX,CAAC;IAEF,gBAAgB,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACxC,OAAO,MAAM,CAAC;AAChB,CAAC;AAhCD,wCAgCC;AAYD,kCAAkC;AAClC,SAAS,kBAAkB,CACzB,OAA+B;IAE/B,MAAM,EAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAC,GAAG,OAAO,CAAC;IACzC,IAAI,IAAI,KAAK,MAAM,EAAE;QACnB,OAAO,QAAQ,CAAC;KACjB;SAAM,IAAI,IAAI,KAAK,MAAM,EAAE;QAC1B,OAAO,QAAQ,CAAC;KACjB;SAAM,IAAI,IAAI,KAAK,OAAO,EAAE;QAC3B,OAAO,SAAS,CAAC;KAClB;SAAM;QACL,KAAK,CACH,GAAG,MAAM,IAAI,QAAQ,wBAAwB,IAAI,qCAAqC,CACvF,CAAC;QACF,OAAO,SAAS,CAAC;KAClB;AACH,CAAC"}
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@loopback/typeorm",
3
3
  "description": "Adds support for TypeORM in LoopBack",
4
- "version": "0.6.1",
4
+ "version": "0.7.1",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
- "author": "IBM Corp.",
9
- "copyright.owner": "IBM Corp.",
8
+ "author": "IBM Corp. and LoopBack contributors",
9
+ "copyright.owner": "IBM Corp. and LoopBack contributors",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "https://github.com/loopbackio/loopback-next.git",
13
13
  "directory": "extensions/typeorm"
14
14
  },
15
15
  "engines": {
16
- "node": "12 || 14 || 16 || 17"
16
+ "node": "14 || 16 || 17 || 18"
17
17
  },
18
18
  "scripts": {
19
19
  "acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"",
@@ -33,27 +33,27 @@
33
33
  "!*/__tests__"
34
34
  ],
35
35
  "peerDependencies": {
36
- "@loopback/boot": "^4.1.1",
37
- "@loopback/core": "^3.1.1",
38
- "@loopback/rest": "^11.1.1"
36
+ "@loopback/boot": "^5.0.1",
37
+ "@loopback/core": "^4.0.1",
38
+ "@loopback/rest": "^12.0.1"
39
39
  },
40
40
  "dependencies": {
41
- "debug": "^4.3.3",
42
- "tslib": "^2.3.1",
43
- "typeorm": "^0.2.44"
41
+ "debug": "^4.3.4",
42
+ "tslib": "^2.4.0",
43
+ "typeorm": "^0.3.6"
44
44
  },
45
45
  "devDependencies": {
46
- "@loopback/boot": "^4.1.1",
47
- "@loopback/build": "^8.1.1",
48
- "@loopback/core": "^3.1.1",
49
- "@loopback/eslint-config": "^12.0.3",
50
- "@loopback/repository": "^4.1.1",
51
- "@loopback/rest": "^11.1.1",
52
- "@loopback/testlab": "^4.1.1",
46
+ "@loopback/boot": "^5.0.1",
47
+ "@loopback/build": "^9.0.1",
48
+ "@loopback/core": "^4.0.1",
49
+ "@loopback/eslint-config": "^13.0.1",
50
+ "@loopback/repository": "^5.0.1",
51
+ "@loopback/rest": "^12.0.1",
52
+ "@loopback/testlab": "^5.0.1",
53
53
  "@types/debug": "^4.1.7",
54
- "@types/json-schema": "^7.0.9",
55
- "@types/node": "^12.20.46",
56
- "sqlite3": "^5.0.2"
54
+ "@types/json-schema": "^7.0.11",
55
+ "@types/node": "^14.18.21",
56
+ "sqlite3": "^5.0.8"
57
57
  },
58
- "gitHead": "8aff2ce33aad3daa53b05fa0fbe8a1b2c7ad0bdf"
58
+ "gitHead": "ccf7863d0639de966d6c6129b4aa94ba1dce2c33"
59
59
  }
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/typeorm
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/graphql
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/typeorm
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/typeorm
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,12 +1,8 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/typeorm
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
5
5
 
6
- // FIXME(rfeng): Workaround for https://github.com/microsoft/rushstack/pull/1867
7
- /* eslint-disable @typescript-eslint/no-unused-vars */
8
- import * as loopbackContext from '@loopback/core';
9
-
10
6
  import {
11
7
  Application,
12
8
  Binding,
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/typeorm
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/typeorm
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT