@loopback/boot 3.4.3 → 3.4.4

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 (80) hide show
  1. package/dist/.sandbox/{27306FWsqTv → 50469FhQayf}/application.js +1 -1
  2. package/dist/.sandbox/{27306FWsqTv → 50469FhQayf}/services/bindable-classes.service.js +15 -15
  3. package/dist/.sandbox/{27306FWsqTv → 50469FhQayf}/services/date.service.js +0 -0
  4. package/dist/.sandbox/{27306FWsqTv → 50469FhQayf}/services/geocoder.service.js +0 -0
  5. package/dist/.sandbox/{27306FWsqTv → 50469FhQayf}/services/greeting.service.js +0 -0
  6. package/dist/.sandbox/{27316krz1Jw → 50470BBfLln}/multiple.artifact.js +10 -10
  7. package/dist/.sandbox/{27308GxAFTY → 50470vYrtwd}/service-provider.artifact.js +0 -0
  8. package/dist/.sandbox/{27309PIbyYx → 50471qJIeIm}/datasource.artifact.js +0 -0
  9. package/dist/.sandbox/{27316kqgNOD → 504724YFHTz}/multiple.artifact.js +10 -10
  10. package/dist/.sandbox/{273072gKb22 → 50473YAKX34}/application.js +1 -1
  11. package/dist/.sandbox/{27317OoFImU → 50473YAKX34}/interceptors/interceptor.interceptor.js +2 -2
  12. package/dist/.sandbox/{27317OoFImU → 50473YAKX34}/interceptors/non-global-interceptor.interceptor.js +2 -2
  13. package/dist/.sandbox/{27313ebXKeb → 50474fgt51b/dist}/application.js +1 -1
  14. package/dist/.sandbox/{27310fUFrgi → 50474fgt51b}/package.json +0 -0
  15. package/dist/.sandbox/{27319vme5Up → 50475UEgvLC}/model-endpoints/no-entity.rest-config.js +0 -0
  16. package/dist/.sandbox/{27319vme5Up → 50475UEgvLC}/models/no-entity.model.js +8 -8
  17. package/dist/.sandbox/{27316jDpod8 → 50476IS98U3}/model-endpoints/product.rest-config.js +0 -0
  18. package/dist/.sandbox/{27316jDpod8 → 50476IS98U3}/models/product.model.js +8 -8
  19. package/dist/.sandbox/{273141IH5Wb → 50476vA35lX}/application.js +1 -1
  20. package/dist/.sandbox/{273072gKb22 → 50476vA35lX}/repositories/multiple.repository.js +10 -10
  21. package/dist/.sandbox/{27310fUFrgi → 50477X2J040}/application.js +1 -1
  22. package/dist/.sandbox/{27310fUFrgi → 50477X2J040}/controllers/multiple.controller.js +10 -10
  23. package/dist/.sandbox/{27312Q8OKtm → 50477X2J040}/package.json +0 -0
  24. package/dist/.sandbox/50478qQYbRs/application.js +20 -0
  25. package/dist/.sandbox/{273141IH5Wb → 50478qQYbRs}/observers/lifecycle-observer.observer.js +0 -0
  26. package/dist/.sandbox/504795zDl5z/application.js +20 -0
  27. package/dist/.sandbox/{27315Zj0VSo → 504795zDl5z}/datasources/db.datasource.js +0 -0
  28. package/dist/.sandbox/50480MI5ACb/application.js +20 -0
  29. package/dist/.sandbox/{273180NMH13 → 50480MI5ACb}/controllers/multiple.controller.js +10 -10
  30. package/dist/.sandbox/{27312Q8OKtm/dist → 50482U3iZmO}/application.js +1 -1
  31. package/dist/.sandbox/{27313ebXKeb → 50482U3iZmO}/controllers/multiple.controller.js +10 -10
  32. package/dist/.sandbox/{27313ebXKeb → 50482U3iZmO}/package.json +0 -0
  33. package/dist/.sandbox/50483lZLkW9/application.js +20 -0
  34. package/dist/.sandbox/{27320t1M0Kj → 50483lZLkW9}/models/multiple-models.model.js +0 -0
  35. package/dist/.sandbox/{27320t1M0Kj → 50483lZLkW9}/models/no-entity.model.js +8 -8
  36. package/dist/.sandbox/{27320t1M0Kj → 50483lZLkW9}/models/product.model.js +8 -8
  37. package/dist/boot.component.js +3 -3
  38. package/dist/boot.component.js.map +1 -1
  39. package/dist/booters/application-metadata.booter.js +6 -6
  40. package/dist/booters/application-metadata.booter.js.map +1 -1
  41. package/dist/booters/base-artifact.booter.js +5 -5
  42. package/dist/booters/base-artifact.booter.js.map +1 -1
  43. package/dist/booters/booter-utils.js +4 -4
  44. package/dist/booters/booter-utils.js.map +1 -1
  45. package/dist/booters/component-application.booter.js +7 -7
  46. package/dist/booters/component-application.booter.js.map +1 -1
  47. package/dist/booters/controller.booter.js +6 -6
  48. package/dist/booters/controller.booter.js.map +1 -1
  49. package/dist/booters/datasource.booter.js +6 -6
  50. package/dist/booters/datasource.booter.js.map +1 -1
  51. package/dist/booters/index.js +12 -12
  52. package/dist/booters/index.js.map +1 -1
  53. package/dist/booters/interceptor.booter.js +8 -8
  54. package/dist/booters/interceptor.booter.js.map +1 -1
  55. package/dist/booters/lifecyle-observer.booter.js +8 -8
  56. package/dist/booters/lifecyle-observer.booter.js.map +1 -1
  57. package/dist/booters/model-api.booter.js +11 -11
  58. package/dist/booters/model-api.booter.js.map +1 -1
  59. package/dist/booters/model.booter.js +8 -8
  60. package/dist/booters/model.booter.js.map +1 -1
  61. package/dist/booters/repository.booter.js +6 -6
  62. package/dist/booters/repository.booter.js.map +1 -1
  63. package/dist/booters/service.booter.js +10 -10
  64. package/dist/booters/service.booter.js.map +1 -1
  65. package/dist/bootstrapper.js +10 -10
  66. package/dist/bootstrapper.js.map +1 -1
  67. package/dist/index.js +6 -6
  68. package/dist/index.js.map +1 -1
  69. package/dist/mixins/boot.mixin.d.ts +1 -1
  70. package/dist/mixins/boot.mixin.js +2 -2
  71. package/dist/mixins/boot.mixin.js.map +1 -1
  72. package/dist/mixins/index.js +1 -1
  73. package/dist/mixins/index.js.map +1 -1
  74. package/dist/types.js +1 -1
  75. package/dist/types.js.map +1 -1
  76. package/package.json +13 -13
  77. package/dist/.sandbox/27315Zj0VSo/application.js +0 -20
  78. package/dist/.sandbox/27317OoFImU/application.js +0 -20
  79. package/dist/.sandbox/273180NMH13/application.js +0 -20
  80. package/dist/.sandbox/27320t1M0Kj/application.js +0 -20
@@ -9,7 +9,7 @@ const repository_1 = require("@loopback/repository");
9
9
  const rest_1 = require("@loopback/rest");
10
10
  const service_proxy_1 = require("@loopback/service-proxy");
11
11
  const __1 = require("../..");
12
- class BooterApp extends __1.BootMixin(service_proxy_1.ServiceMixin(repository_1.RepositoryMixin(rest_1.RestApplication))) {
12
+ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) {
13
13
  constructor(options) {
14
14
  super(options);
15
15
  this.projectRoot = __dirname;
@@ -12,8 +12,8 @@ let BindableGreetingService = class BindableGreetingService {
12
12
  return Promise.resolve(`Hello ${whom}`);
13
13
  }
14
14
  };
15
- BindableGreetingService = tslib_1.__decorate([
16
- core_1.injectable({
15
+ BindableGreetingService = (0, tslib_1.__decorate)([
16
+ (0, core_1.injectable)({
17
17
  tags: { serviceType: 'local' },
18
18
  scope: core_1.BindingScope.SINGLETON,
19
19
  })
@@ -24,8 +24,8 @@ let DateProvider = class DateProvider {
24
24
  return Promise.resolve(new Date());
25
25
  }
26
26
  };
27
- DateProvider = tslib_1.__decorate([
28
- core_1.injectable({ tags: { serviceType: 'local', name: 'CurrentDate' } })
27
+ DateProvider = (0, tslib_1.__decorate)([
28
+ (0, core_1.injectable)({ tags: { serviceType: 'local', name: 'CurrentDate' } })
29
29
  ], DateProvider);
30
30
  exports.DateProvider = DateProvider;
31
31
  class NotBindableGreetingService {
@@ -45,16 +45,16 @@ let ServiceWithConstructorInject = class ServiceWithConstructorInject {
45
45
  this.user = user;
46
46
  }
47
47
  };
48
- ServiceWithConstructorInject = tslib_1.__decorate([
49
- tslib_1.__param(0, core_1.inject('currentUser')),
50
- tslib_1.__metadata("design:paramtypes", [String])
48
+ ServiceWithConstructorInject = (0, tslib_1.__decorate)([
49
+ (0, tslib_1.__param)(0, (0, core_1.inject)('currentUser')),
50
+ (0, tslib_1.__metadata)("design:paramtypes", [String])
51
51
  ], ServiceWithConstructorInject);
52
52
  exports.ServiceWithConstructorInject = ServiceWithConstructorInject;
53
53
  class ServiceWithPropertyInject {
54
54
  }
55
- tslib_1.__decorate([
56
- core_1.inject('currentUser'),
57
- tslib_1.__metadata("design:type", String)
55
+ (0, tslib_1.__decorate)([
56
+ (0, core_1.inject)('currentUser'),
57
+ (0, tslib_1.__metadata)("design:type", String)
58
58
  ], ServiceWithPropertyInject.prototype, "user", void 0);
59
59
  exports.ServiceWithPropertyInject = ServiceWithPropertyInject;
60
60
  class ServiceWithMethodInject {
@@ -62,11 +62,11 @@ class ServiceWithMethodInject {
62
62
  return `Hello, ${user}`;
63
63
  }
64
64
  }
65
- tslib_1.__decorate([
66
- tslib_1.__param(0, core_1.inject('currentUser')),
67
- tslib_1.__metadata("design:type", Function),
68
- tslib_1.__metadata("design:paramtypes", [String]),
69
- tslib_1.__metadata("design:returntype", void 0)
65
+ (0, tslib_1.__decorate)([
66
+ (0, tslib_1.__param)(0, (0, core_1.inject)('currentUser')),
67
+ (0, tslib_1.__metadata)("design:type", Function),
68
+ (0, tslib_1.__metadata)("design:paramtypes", [String]),
69
+ (0, tslib_1.__metadata)("design:returntype", void 0)
70
70
  ], ServiceWithMethodInject.prototype, "greet", null);
71
71
  exports.ServiceWithMethodInject = ServiceWithMethodInject;
72
72
  //# sourceMappingURL=bindable-classes.artifact.js.map
@@ -12,11 +12,11 @@ class ArtifactOne {
12
12
  return 'ControllerOne.one()';
13
13
  }
14
14
  }
15
- tslib_1.__decorate([
16
- rest_1.get('/one'),
17
- tslib_1.__metadata("design:type", Function),
18
- tslib_1.__metadata("design:paramtypes", []),
19
- tslib_1.__metadata("design:returntype", void 0)
15
+ (0, tslib_1.__decorate)([
16
+ (0, rest_1.get)('/one'),
17
+ (0, tslib_1.__metadata)("design:type", Function),
18
+ (0, tslib_1.__metadata)("design:paramtypes", []),
19
+ (0, tslib_1.__metadata)("design:returntype", void 0)
20
20
  ], ArtifactOne.prototype, "one", null);
21
21
  exports.ArtifactOne = ArtifactOne;
22
22
  class ArtifactTwo {
@@ -24,11 +24,11 @@ class ArtifactTwo {
24
24
  return 'ControllerTwo.two()';
25
25
  }
26
26
  }
27
- tslib_1.__decorate([
28
- rest_1.get('/two'),
29
- tslib_1.__metadata("design:type", Function),
30
- tslib_1.__metadata("design:paramtypes", []),
31
- tslib_1.__metadata("design:returntype", void 0)
27
+ (0, tslib_1.__decorate)([
28
+ (0, rest_1.get)('/two'),
29
+ (0, tslib_1.__metadata)("design:type", Function),
30
+ (0, tslib_1.__metadata)("design:paramtypes", []),
31
+ (0, tslib_1.__metadata)("design:returntype", void 0)
32
32
  ], ArtifactTwo.prototype, "two", null);
33
33
  exports.ArtifactTwo = ArtifactTwo;
34
34
  function hello() {
@@ -12,11 +12,11 @@ class ArtifactOne {
12
12
  return 'ControllerOne.one()';
13
13
  }
14
14
  }
15
- tslib_1.__decorate([
16
- rest_1.get('/one'),
17
- tslib_1.__metadata("design:type", Function),
18
- tslib_1.__metadata("design:paramtypes", []),
19
- tslib_1.__metadata("design:returntype", void 0)
15
+ (0, tslib_1.__decorate)([
16
+ (0, rest_1.get)('/one'),
17
+ (0, tslib_1.__metadata)("design:type", Function),
18
+ (0, tslib_1.__metadata)("design:paramtypes", []),
19
+ (0, tslib_1.__metadata)("design:returntype", void 0)
20
20
  ], ArtifactOne.prototype, "one", null);
21
21
  exports.ArtifactOne = ArtifactOne;
22
22
  class ArtifactTwo {
@@ -24,11 +24,11 @@ class ArtifactTwo {
24
24
  return 'ControllerTwo.two()';
25
25
  }
26
26
  }
27
- tslib_1.__decorate([
28
- rest_1.get('/two'),
29
- tslib_1.__metadata("design:type", Function),
30
- tslib_1.__metadata("design:paramtypes", []),
31
- tslib_1.__metadata("design:returntype", void 0)
27
+ (0, tslib_1.__decorate)([
28
+ (0, rest_1.get)('/two'),
29
+ (0, tslib_1.__metadata)("design:type", Function),
30
+ (0, tslib_1.__metadata)("design:paramtypes", []),
31
+ (0, tslib_1.__metadata)("design:returntype", void 0)
32
32
  ], ArtifactTwo.prototype, "two", null);
33
33
  exports.ArtifactTwo = ArtifactTwo;
34
34
  function hello() {
@@ -9,7 +9,7 @@ const repository_1 = require("@loopback/repository");
9
9
  const rest_1 = require("@loopback/rest");
10
10
  const service_proxy_1 = require("@loopback/service-proxy");
11
11
  const __1 = require("../..");
12
- class BooterApp extends __1.BootMixin(service_proxy_1.ServiceMixin(repository_1.RepositoryMixin(rest_1.RestApplication))) {
12
+ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) {
13
13
  constructor(options) {
14
14
  super(options);
15
15
  this.projectRoot = __dirname;
@@ -43,8 +43,8 @@ let MyGlobalInterceptor = class MyGlobalInterceptor {
43
43
  }
44
44
  }
45
45
  };
46
- MyGlobalInterceptor = tslib_1.__decorate([
47
- core_1.globalInterceptor('auth', { tags: { name: 'myGlobalInterceptor' } })
46
+ MyGlobalInterceptor = (0, tslib_1.__decorate)([
47
+ (0, core_1.globalInterceptor)('auth', { tags: { name: 'myGlobalInterceptor' } })
48
48
  ], MyGlobalInterceptor);
49
49
  exports.MyGlobalInterceptor = MyGlobalInterceptor;
50
50
  //# sourceMappingURL=interceptor.artifact.js.map
@@ -43,8 +43,8 @@ let MyInterceptor = class MyInterceptor {
43
43
  }
44
44
  }
45
45
  };
46
- MyInterceptor = tslib_1.__decorate([
47
- core_1.injectable({ tags: { namespace: 'interceptors', name: 'myInterceptor' } })
46
+ MyInterceptor = (0, tslib_1.__decorate)([
47
+ (0, core_1.injectable)({ tags: { namespace: 'interceptors', name: 'myInterceptor' } })
48
48
  ], MyInterceptor);
49
49
  exports.MyInterceptor = MyInterceptor;
50
50
  //# sourceMappingURL=non-global-interceptor.artifact.js.map
@@ -9,7 +9,7 @@ const repository_1 = require("@loopback/repository");
9
9
  const rest_1 = require("@loopback/rest");
10
10
  const service_proxy_1 = require("@loopback/service-proxy");
11
11
  const __1 = require("../../..");
12
- class BooterApp extends __1.BootMixin(service_proxy_1.ServiceMixin(repository_1.RepositoryMixin(rest_1.RestApplication))) {
12
+ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) {
13
13
  constructor(options) {
14
14
  super(options);
15
15
  this.projectRoot = __dirname;
@@ -9,16 +9,16 @@ const tslib_1 = require("tslib");
9
9
  const repository_1 = require("@loopback/repository");
10
10
  let NoEntity = class NoEntity extends repository_1.Model {
11
11
  };
12
- tslib_1.__decorate([
13
- repository_1.property({ id: true }),
14
- tslib_1.__metadata("design:type", Number)
12
+ (0, tslib_1.__decorate)([
13
+ (0, repository_1.property)({ id: true }),
14
+ (0, tslib_1.__metadata)("design:type", Number)
15
15
  ], NoEntity.prototype, "id", void 0);
16
- tslib_1.__decorate([
17
- repository_1.property({ required: true }),
18
- tslib_1.__metadata("design:type", String)
16
+ (0, tslib_1.__decorate)([
17
+ (0, repository_1.property)({ required: true }),
18
+ (0, tslib_1.__metadata)("design:type", String)
19
19
  ], NoEntity.prototype, "name", void 0);
20
- NoEntity = tslib_1.__decorate([
21
- repository_1.model()
20
+ NoEntity = (0, tslib_1.__decorate)([
21
+ (0, repository_1.model)()
22
22
  ], NoEntity);
23
23
  exports.NoEntity = NoEntity;
24
24
  //# sourceMappingURL=no-entity.model.js.map
@@ -9,16 +9,16 @@ const tslib_1 = require("tslib");
9
9
  const repository_1 = require("@loopback/repository");
10
10
  let Product = class Product extends repository_1.Entity {
11
11
  };
12
- tslib_1.__decorate([
13
- repository_1.property({ id: true }),
14
- tslib_1.__metadata("design:type", Number)
12
+ (0, tslib_1.__decorate)([
13
+ (0, repository_1.property)({ id: true }),
14
+ (0, tslib_1.__metadata)("design:type", Number)
15
15
  ], Product.prototype, "id", void 0);
16
- tslib_1.__decorate([
17
- repository_1.property({ required: true }),
18
- tslib_1.__metadata("design:type", String)
16
+ (0, tslib_1.__decorate)([
17
+ (0, repository_1.property)({ required: true }),
18
+ (0, tslib_1.__metadata)("design:type", String)
19
19
  ], Product.prototype, "name", void 0);
20
- Product = tslib_1.__decorate([
21
- repository_1.model()
20
+ Product = (0, tslib_1.__decorate)([
21
+ (0, repository_1.model)()
22
22
  ], Product);
23
23
  exports.Product = Product;
24
24
  //# sourceMappingURL=product.model.js.map
@@ -9,7 +9,7 @@ const repository_1 = require("@loopback/repository");
9
9
  const rest_1 = require("@loopback/rest");
10
10
  const service_proxy_1 = require("@loopback/service-proxy");
11
11
  const __1 = require("../..");
12
- class BooterApp extends __1.BootMixin(service_proxy_1.ServiceMixin(repository_1.RepositoryMixin(rest_1.RestApplication))) {
12
+ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) {
13
13
  constructor(options) {
14
14
  super(options);
15
15
  this.projectRoot = __dirname;
@@ -12,11 +12,11 @@ class ArtifactOne {
12
12
  return 'ControllerOne.one()';
13
13
  }
14
14
  }
15
- tslib_1.__decorate([
16
- rest_1.get('/one'),
17
- tslib_1.__metadata("design:type", Function),
18
- tslib_1.__metadata("design:paramtypes", []),
19
- tslib_1.__metadata("design:returntype", void 0)
15
+ (0, tslib_1.__decorate)([
16
+ (0, rest_1.get)('/one'),
17
+ (0, tslib_1.__metadata)("design:type", Function),
18
+ (0, tslib_1.__metadata)("design:paramtypes", []),
19
+ (0, tslib_1.__metadata)("design:returntype", void 0)
20
20
  ], ArtifactOne.prototype, "one", null);
21
21
  exports.ArtifactOne = ArtifactOne;
22
22
  class ArtifactTwo {
@@ -24,11 +24,11 @@ class ArtifactTwo {
24
24
  return 'ControllerTwo.two()';
25
25
  }
26
26
  }
27
- tslib_1.__decorate([
28
- rest_1.get('/two'),
29
- tslib_1.__metadata("design:type", Function),
30
- tslib_1.__metadata("design:paramtypes", []),
31
- tslib_1.__metadata("design:returntype", void 0)
27
+ (0, tslib_1.__decorate)([
28
+ (0, rest_1.get)('/two'),
29
+ (0, tslib_1.__metadata)("design:type", Function),
30
+ (0, tslib_1.__metadata)("design:paramtypes", []),
31
+ (0, tslib_1.__metadata)("design:returntype", void 0)
32
32
  ], ArtifactTwo.prototype, "two", null);
33
33
  exports.ArtifactTwo = ArtifactTwo;
34
34
  function hello() {
@@ -9,7 +9,7 @@ const repository_1 = require("@loopback/repository");
9
9
  const rest_1 = require("@loopback/rest");
10
10
  const service_proxy_1 = require("@loopback/service-proxy");
11
11
  const __1 = require("../..");
12
- class BooterApp extends __1.BootMixin(service_proxy_1.ServiceMixin(repository_1.RepositoryMixin(rest_1.RestApplication))) {
12
+ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) {
13
13
  constructor(options) {
14
14
  super(options);
15
15
  this.projectRoot = __dirname;
@@ -12,11 +12,11 @@ class ArtifactOne {
12
12
  return 'ControllerOne.one()';
13
13
  }
14
14
  }
15
- tslib_1.__decorate([
16
- rest_1.get('/one'),
17
- tslib_1.__metadata("design:type", Function),
18
- tslib_1.__metadata("design:paramtypes", []),
19
- tslib_1.__metadata("design:returntype", void 0)
15
+ (0, tslib_1.__decorate)([
16
+ (0, rest_1.get)('/one'),
17
+ (0, tslib_1.__metadata)("design:type", Function),
18
+ (0, tslib_1.__metadata)("design:paramtypes", []),
19
+ (0, tslib_1.__metadata)("design:returntype", void 0)
20
20
  ], ArtifactOne.prototype, "one", null);
21
21
  exports.ArtifactOne = ArtifactOne;
22
22
  class ArtifactTwo {
@@ -24,11 +24,11 @@ class ArtifactTwo {
24
24
  return 'ControllerTwo.two()';
25
25
  }
26
26
  }
27
- tslib_1.__decorate([
28
- rest_1.get('/two'),
29
- tslib_1.__metadata("design:type", Function),
30
- tslib_1.__metadata("design:paramtypes", []),
31
- tslib_1.__metadata("design:returntype", void 0)
27
+ (0, tslib_1.__decorate)([
28
+ (0, rest_1.get)('/two'),
29
+ (0, tslib_1.__metadata)("design:type", Function),
30
+ (0, tslib_1.__metadata)("design:paramtypes", []),
31
+ (0, tslib_1.__metadata)("design:returntype", void 0)
32
32
  ], ArtifactTwo.prototype, "two", null);
33
33
  exports.ArtifactTwo = ArtifactTwo;
34
34
  function hello() {
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. 2019. All Rights Reserved.
3
+ // Node module: @loopback/boot
4
+ // This file is licensed under the MIT License.
5
+ // License text available at https://opensource.org/licenses/MIT
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.BooterApp = void 0;
8
+ const repository_1 = require("@loopback/repository");
9
+ const rest_1 = require("@loopback/rest");
10
+ const service_proxy_1 = require("@loopback/service-proxy");
11
+ const __1 = require("../..");
12
+ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) {
13
+ constructor(options) {
14
+ super(options);
15
+ this.projectRoot = __dirname;
16
+ }
17
+ }
18
+ exports.BooterApp = BooterApp;
19
+ //# sourceMappingURL=application.js.map
20
+ //# sourceMappingURL=/Users/dhmlau/loopback-release/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. 2019. All Rights Reserved.
3
+ // Node module: @loopback/boot
4
+ // This file is licensed under the MIT License.
5
+ // License text available at https://opensource.org/licenses/MIT
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.BooterApp = void 0;
8
+ const repository_1 = require("@loopback/repository");
9
+ const rest_1 = require("@loopback/rest");
10
+ const service_proxy_1 = require("@loopback/service-proxy");
11
+ const __1 = require("../..");
12
+ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) {
13
+ constructor(options) {
14
+ super(options);
15
+ this.projectRoot = __dirname;
16
+ }
17
+ }
18
+ exports.BooterApp = BooterApp;
19
+ //# sourceMappingURL=application.js.map
20
+ //# sourceMappingURL=/Users/dhmlau/loopback-release/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. 2019. All Rights Reserved.
3
+ // Node module: @loopback/boot
4
+ // This file is licensed under the MIT License.
5
+ // License text available at https://opensource.org/licenses/MIT
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.BooterApp = void 0;
8
+ const repository_1 = require("@loopback/repository");
9
+ const rest_1 = require("@loopback/rest");
10
+ const service_proxy_1 = require("@loopback/service-proxy");
11
+ const __1 = require("../..");
12
+ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) {
13
+ constructor(options) {
14
+ super(options);
15
+ this.projectRoot = __dirname;
16
+ }
17
+ }
18
+ exports.BooterApp = BooterApp;
19
+ //# sourceMappingURL=application.js.map
20
+ //# sourceMappingURL=/Users/dhmlau/loopback-release/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -12,11 +12,11 @@ class ArtifactOne {
12
12
  return 'ControllerOne.one()';
13
13
  }
14
14
  }
15
- tslib_1.__decorate([
16
- rest_1.get('/one'),
17
- tslib_1.__metadata("design:type", Function),
18
- tslib_1.__metadata("design:paramtypes", []),
19
- tslib_1.__metadata("design:returntype", void 0)
15
+ (0, tslib_1.__decorate)([
16
+ (0, rest_1.get)('/one'),
17
+ (0, tslib_1.__metadata)("design:type", Function),
18
+ (0, tslib_1.__metadata)("design:paramtypes", []),
19
+ (0, tslib_1.__metadata)("design:returntype", void 0)
20
20
  ], ArtifactOne.prototype, "one", null);
21
21
  exports.ArtifactOne = ArtifactOne;
22
22
  class ArtifactTwo {
@@ -24,11 +24,11 @@ class ArtifactTwo {
24
24
  return 'ControllerTwo.two()';
25
25
  }
26
26
  }
27
- tslib_1.__decorate([
28
- rest_1.get('/two'),
29
- tslib_1.__metadata("design:type", Function),
30
- tslib_1.__metadata("design:paramtypes", []),
31
- tslib_1.__metadata("design:returntype", void 0)
27
+ (0, tslib_1.__decorate)([
28
+ (0, rest_1.get)('/two'),
29
+ (0, tslib_1.__metadata)("design:type", Function),
30
+ (0, tslib_1.__metadata)("design:paramtypes", []),
31
+ (0, tslib_1.__metadata)("design:returntype", void 0)
32
32
  ], ArtifactTwo.prototype, "two", null);
33
33
  exports.ArtifactTwo = ArtifactTwo;
34
34
  function hello() {
@@ -9,7 +9,7 @@ const repository_1 = require("@loopback/repository");
9
9
  const rest_1 = require("@loopback/rest");
10
10
  const service_proxy_1 = require("@loopback/service-proxy");
11
11
  const __1 = require("../../..");
12
- class BooterApp extends __1.BootMixin(service_proxy_1.ServiceMixin(repository_1.RepositoryMixin(rest_1.RestApplication))) {
12
+ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) {
13
13
  constructor(options) {
14
14
  super(options);
15
15
  this.projectRoot = __dirname;
@@ -12,11 +12,11 @@ class ArtifactOne {
12
12
  return 'ControllerOne.one()';
13
13
  }
14
14
  }
15
- tslib_1.__decorate([
16
- rest_1.get('/one'),
17
- tslib_1.__metadata("design:type", Function),
18
- tslib_1.__metadata("design:paramtypes", []),
19
- tslib_1.__metadata("design:returntype", void 0)
15
+ (0, tslib_1.__decorate)([
16
+ (0, rest_1.get)('/one'),
17
+ (0, tslib_1.__metadata)("design:type", Function),
18
+ (0, tslib_1.__metadata)("design:paramtypes", []),
19
+ (0, tslib_1.__metadata)("design:returntype", void 0)
20
20
  ], ArtifactOne.prototype, "one", null);
21
21
  exports.ArtifactOne = ArtifactOne;
22
22
  class ArtifactTwo {
@@ -24,11 +24,11 @@ class ArtifactTwo {
24
24
  return 'ControllerTwo.two()';
25
25
  }
26
26
  }
27
- tslib_1.__decorate([
28
- rest_1.get('/two'),
29
- tslib_1.__metadata("design:type", Function),
30
- tslib_1.__metadata("design:paramtypes", []),
31
- tslib_1.__metadata("design:returntype", void 0)
27
+ (0, tslib_1.__decorate)([
28
+ (0, rest_1.get)('/two'),
29
+ (0, tslib_1.__metadata)("design:type", Function),
30
+ (0, tslib_1.__metadata)("design:paramtypes", []),
31
+ (0, tslib_1.__metadata)("design:returntype", void 0)
32
32
  ], ArtifactTwo.prototype, "two", null);
33
33
  exports.ArtifactTwo = ArtifactTwo;
34
34
  function hello() {
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. 2019. All Rights Reserved.
3
+ // Node module: @loopback/boot
4
+ // This file is licensed under the MIT License.
5
+ // License text available at https://opensource.org/licenses/MIT
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.BooterApp = void 0;
8
+ const repository_1 = require("@loopback/repository");
9
+ const rest_1 = require("@loopback/rest");
10
+ const service_proxy_1 = require("@loopback/service-proxy");
11
+ const __1 = require("../..");
12
+ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) {
13
+ constructor(options) {
14
+ super(options);
15
+ this.projectRoot = __dirname;
16
+ }
17
+ }
18
+ exports.BooterApp = BooterApp;
19
+ //# sourceMappingURL=application.js.map
20
+ //# sourceMappingURL=/Users/dhmlau/loopback-release/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -9,16 +9,16 @@ const tslib_1 = require("tslib");
9
9
  const repository_1 = require("@loopback/repository");
10
10
  let NoEntity = class NoEntity extends repository_1.Model {
11
11
  };
12
- tslib_1.__decorate([
13
- repository_1.property({ id: true }),
14
- tslib_1.__metadata("design:type", Number)
12
+ (0, tslib_1.__decorate)([
13
+ (0, repository_1.property)({ id: true }),
14
+ (0, tslib_1.__metadata)("design:type", Number)
15
15
  ], NoEntity.prototype, "id", void 0);
16
- tslib_1.__decorate([
17
- repository_1.property({ required: true }),
18
- tslib_1.__metadata("design:type", String)
16
+ (0, tslib_1.__decorate)([
17
+ (0, repository_1.property)({ required: true }),
18
+ (0, tslib_1.__metadata)("design:type", String)
19
19
  ], NoEntity.prototype, "name", void 0);
20
- NoEntity = tslib_1.__decorate([
21
- repository_1.model()
20
+ NoEntity = (0, tslib_1.__decorate)([
21
+ (0, repository_1.model)()
22
22
  ], NoEntity);
23
23
  exports.NoEntity = NoEntity;
24
24
  //# sourceMappingURL=no-entity.model.js.map
@@ -9,16 +9,16 @@ const tslib_1 = require("tslib");
9
9
  const repository_1 = require("@loopback/repository");
10
10
  let Product = class Product extends repository_1.Entity {
11
11
  };
12
- tslib_1.__decorate([
13
- repository_1.property({ id: true }),
14
- tslib_1.__metadata("design:type", Number)
12
+ (0, tslib_1.__decorate)([
13
+ (0, repository_1.property)({ id: true }),
14
+ (0, tslib_1.__metadata)("design:type", Number)
15
15
  ], Product.prototype, "id", void 0);
16
- tslib_1.__decorate([
17
- repository_1.property({ required: true }),
18
- tslib_1.__metadata("design:type", String)
16
+ (0, tslib_1.__decorate)([
17
+ (0, repository_1.property)({ required: true }),
18
+ (0, tslib_1.__metadata)("design:type", String)
19
19
  ], Product.prototype, "name", void 0);
20
- Product = tslib_1.__decorate([
21
- repository_1.model()
20
+ Product = (0, tslib_1.__decorate)([
21
+ (0, repository_1.model)()
22
22
  ], Product);
23
23
  exports.Product = Product;
24
24
  //# sourceMappingURL=product.model.js.map
@@ -41,9 +41,9 @@ let BootComponent = class BootComponent {
41
41
  .inScope(core_1.BindingScope.SINGLETON);
42
42
  }
43
43
  };
44
- BootComponent = tslib_1.__decorate([
45
- tslib_1.__param(0, core_1.inject(core_1.CoreBindings.APPLICATION_INSTANCE)),
46
- tslib_1.__metadata("design:paramtypes", [core_1.Application])
44
+ BootComponent = (0, tslib_1.__decorate)([
45
+ (0, tslib_1.__param)(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
46
+ (0, tslib_1.__metadata)("design:paramtypes", [core_1.Application])
47
47
  ], BootComponent);
48
48
  exports.BootComponent = BootComponent;
49
49
  //# sourceMappingURL=boot.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"boot.component.js","sourceRoot":"","sources":["../src/boot.component.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAMwB;AACxB,uCAUmB;AACnB,iDAA4C;AAC5C,iCAAoC;AAEpC;;;;GAIG;AACH,IAAa,aAAa,GAA1B,MAAa,aAAa;IAexB;;;OAGG;IACH,YAAuD,GAAgB;QAlBvE,sEAAsE;QACtE,gDAAgD;QAChD,YAAO,GAAG;YACR,mCAAyB;YACzB,0BAAgB;YAChB,0BAAgB;YAChB,uBAAa;YACb,0BAAgB;YAChB,iCAAuB;YACvB,mCAAyB;YACzB,wBAAc;YACd,qBAAW;SACZ,CAAC;QAOA,8DAA8D;QAC9D,GAAG;aACA,IAAI,CAAC,mBAAY,CAAC,gBAAgB,CAAC;aACnC,OAAO,CAAC,2BAAY,CAAC;aACrB,OAAO,CAAC,mBAAY,CAAC,SAAS,CAAC,CAAC;IACrC,CAAC;CACF,CAAA;AA1BY,aAAa;IAmBX,mBAAA,aAAM,CAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;6CAAM,kBAAW;GAnB5D,aAAa,CA0BzB;AA1BY,sCAAa"}
1
+ {"version":3,"file":"boot.component.js","sourceRoot":"","sources":["../src/boot.component.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAMwB;AACxB,uCAUmB;AACnB,iDAA4C;AAC5C,iCAAoC;AAEpC;;;;GAIG;AACH,IAAa,aAAa,GAA1B,MAAa,aAAa;IAexB;;;OAGG;IACH,YAAuD,GAAgB;QAlBvE,sEAAsE;QACtE,gDAAgD;QAChD,YAAO,GAAG;YACR,mCAAyB;YACzB,0BAAgB;YAChB,0BAAgB;YAChB,uBAAa;YACb,0BAAgB;YAChB,iCAAuB;YACvB,mCAAyB;YACzB,wBAAc;YACd,qBAAW;SACZ,CAAC;QAOA,8DAA8D;QAC9D,GAAG;aACA,IAAI,CAAC,mBAAY,CAAC,gBAAgB,CAAC;aACnC,OAAO,CAAC,2BAAY,CAAC;aACrB,OAAO,CAAC,mBAAY,CAAC,SAAS,CAAC,CAAC;IACrC,CAAC;CACF,CAAA;AA1BY,aAAa;IAmBX,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;kDAAM,kBAAW;GAnB5D,aAAa,CA0BzB;AA1BY,sCAAa"}
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.ApplicationMetadataBooter = void 0;
8
8
  const tslib_1 = require("tslib");
9
9
  const core_1 = require("@loopback/core");
10
- const debug_1 = tslib_1.__importDefault(require("debug"));
10
+ const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
11
11
  const keys_1 = require("../keys");
12
12
  const path = require("path");
13
- const debug = debug_1.default('loopback:boot:booter:application-metadata');
13
+ const debug = (0, debug_1.default)('loopback:boot:booter:application-metadata');
14
14
  /**
15
15
  *
16
16
  * Configure the application with metadata from `package.json`
@@ -34,10 +34,10 @@ let ApplicationMetadataBooter = class ApplicationMetadataBooter {
34
34
  }
35
35
  }
36
36
  };
37
- ApplicationMetadataBooter = tslib_1.__decorate([
38
- tslib_1.__param(0, core_1.inject(core_1.CoreBindings.APPLICATION_INSTANCE)),
39
- tslib_1.__param(1, core_1.inject(keys_1.BootBindings.PROJECT_ROOT)),
40
- tslib_1.__metadata("design:paramtypes", [core_1.Application, String])
37
+ ApplicationMetadataBooter = (0, tslib_1.__decorate)([
38
+ (0, tslib_1.__param)(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
39
+ (0, tslib_1.__param)(1, (0, core_1.inject)(keys_1.BootBindings.PROJECT_ROOT)),
40
+ (0, tslib_1.__metadata)("design:paramtypes", [core_1.Application, String])
41
41
  ], ApplicationMetadataBooter);
42
42
  exports.ApplicationMetadataBooter = ApplicationMetadataBooter;
43
43
  //# sourceMappingURL=application-metadata.booter.js.map