@loopback/boot 3.4.0 → 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.
- package/README.md +3 -3
- package/dist/.sandbox/{96372YVWkVg → 50469FhQayf}/application.js +1 -1
- package/dist/.sandbox/{96369FW3U3o → 50469FhQayf}/services/bindable-classes.service.js +15 -15
- package/dist/.sandbox/{96369FW3U3o → 50469FhQayf}/services/date.service.js +0 -0
- package/dist/.sandbox/{96369FW3U3o → 50469FhQayf}/services/geocoder.service.js +0 -0
- package/dist/.sandbox/{96369FW3U3o → 50469FhQayf}/services/greeting.service.js +0 -0
- package/dist/.sandbox/{96370UOeaFy → 50470BBfLln}/multiple.artifact.js +10 -10
- package/dist/.sandbox/{96378LD2eap → 50470vYrtwd}/service-provider.artifact.js +0 -0
- package/dist/.sandbox/{963785h2fNL → 50471qJIeIm}/datasource.artifact.js +0 -0
- package/dist/.sandbox/{96371WQjPTj → 504724YFHTz}/multiple.artifact.js +10 -10
- package/dist/.sandbox/{96368z1FZVx → 50473YAKX34}/application.js +1 -1
- package/dist/.sandbox/{96373okqtZk → 50473YAKX34}/interceptors/interceptor.interceptor.js +2 -2
- package/dist/.sandbox/{96373okqtZk → 50473YAKX34}/interceptors/non-global-interceptor.interceptor.js +2 -2
- package/dist/.sandbox/{96374rNW1ba → 50474fgt51b}/dist/application.js +1 -1
- package/dist/.sandbox/{96372YVWkVg → 50474fgt51b}/package.json +0 -0
- package/dist/.sandbox/{96378pTMyI2 → 50475UEgvLC}/model-endpoints/no-entity.rest-config.js +0 -0
- package/dist/.sandbox/{96378pTMyI2 → 50475UEgvLC}/models/no-entity.model.js +8 -8
- package/dist/.sandbox/{963796Nb5sw → 50476IS98U3}/model-endpoints/product.rest-config.js +0 -0
- package/dist/.sandbox/{963796Nb5sw → 50476IS98U3}/models/product.model.js +8 -8
- package/dist/.sandbox/{96373okqtZk → 50476vA35lX}/application.js +1 -1
- package/dist/.sandbox/{96368z1FZVx → 50476vA35lX}/repositories/multiple.repository.js +10 -10
- package/dist/.sandbox/{96369FW3U3o → 50477X2J040}/application.js +1 -1
- package/dist/.sandbox/{96376waH9AV → 50477X2J040}/controllers/multiple.controller.js +10 -10
- package/dist/.sandbox/{96374rNW1ba → 50477X2J040}/package.json +0 -0
- package/dist/.sandbox/50478qQYbRs/application.js +20 -0
- package/dist/.sandbox/{96381mgdv2p → 50478qQYbRs}/observers/lifecycle-observer.observer.js +0 -0
- package/dist/.sandbox/504795zDl5z/application.js +20 -0
- package/dist/.sandbox/{96375lMocDM → 504795zDl5z}/datasources/db.datasource.js +0 -0
- package/dist/.sandbox/50480MI5ACb/application.js +20 -0
- package/dist/.sandbox/{96377UBRAx4 → 50480MI5ACb}/controllers/multiple.controller.js +10 -10
- package/dist/.sandbox/{96376waH9AV → 50482U3iZmO}/application.js +1 -1
- package/dist/.sandbox/{96372YVWkVg → 50482U3iZmO}/controllers/multiple.controller.js +10 -10
- package/dist/.sandbox/{96376waH9AV → 50482U3iZmO}/package.json +0 -0
- package/dist/.sandbox/50483lZLkW9/application.js +20 -0
- package/dist/.sandbox/{96382coYt5Y → 50483lZLkW9}/models/multiple-models.model.js +0 -0
- package/dist/.sandbox/{96382coYt5Y → 50483lZLkW9}/models/no-entity.model.js +8 -8
- package/dist/.sandbox/{96382coYt5Y → 50483lZLkW9}/models/product.model.js +8 -8
- package/dist/boot.component.js +3 -3
- package/dist/boot.component.js.map +1 -1
- package/dist/booters/application-metadata.booter.js +6 -6
- package/dist/booters/application-metadata.booter.js.map +1 -1
- package/dist/booters/base-artifact.booter.js +5 -5
- package/dist/booters/base-artifact.booter.js.map +1 -1
- package/dist/booters/booter-utils.js +4 -4
- package/dist/booters/booter-utils.js.map +1 -1
- package/dist/booters/component-application.booter.js +7 -7
- package/dist/booters/component-application.booter.js.map +1 -1
- package/dist/booters/controller.booter.js +6 -6
- package/dist/booters/controller.booter.js.map +1 -1
- package/dist/booters/datasource.booter.js +6 -6
- package/dist/booters/datasource.booter.js.map +1 -1
- package/dist/booters/index.js +12 -12
- package/dist/booters/index.js.map +1 -1
- package/dist/booters/interceptor.booter.js +8 -8
- package/dist/booters/interceptor.booter.js.map +1 -1
- package/dist/booters/lifecyle-observer.booter.js +8 -8
- package/dist/booters/lifecyle-observer.booter.js.map +1 -1
- package/dist/booters/model-api.booter.js +11 -11
- package/dist/booters/model-api.booter.js.map +1 -1
- package/dist/booters/model.booter.js +8 -8
- package/dist/booters/model.booter.js.map +1 -1
- package/dist/booters/repository.booter.js +6 -6
- package/dist/booters/repository.booter.js.map +1 -1
- package/dist/booters/service.booter.js +10 -10
- package/dist/booters/service.booter.js.map +1 -1
- package/dist/bootstrapper.js +10 -10
- package/dist/bootstrapper.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/mixins/boot.mixin.d.ts +1 -1
- package/dist/mixins/boot.mixin.js +2 -2
- package/dist/mixins/boot.mixin.js.map +1 -1
- package/dist/mixins/index.js +1 -1
- package/dist/mixins/index.js.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +19 -19
- package/src/mixins/boot.mixin.ts +2 -4
- package/CHANGELOG.md +0 -1460
- package/dist/.sandbox/96375lMocDM/application.js +0 -20
- package/dist/.sandbox/96377UBRAx4/application.js +0 -20
- package/dist/.sandbox/96381mgdv2p/application.js +0 -20
- package/dist/.sandbox/96382coYt5Y/application.js +0 -20
package/README.md
CHANGED
|
@@ -189,8 +189,8 @@ Available options on the `services` object on `BootOptions` are as follows:
|
|
|
189
189
|
|
|
190
190
|
## Contributions
|
|
191
191
|
|
|
192
|
-
- [Guidelines](https://github.com/
|
|
193
|
-
- [Join the team](https://github.com/
|
|
192
|
+
- [Guidelines](https://github.com/loopbackio/loopback-next/blob/master/docs/CONTRIBUTING.md)
|
|
193
|
+
- [Join the team](https://github.com/loopbackio/loopback-next/issues/110)
|
|
194
194
|
|
|
195
195
|
## Tests
|
|
196
196
|
|
|
@@ -199,7 +199,7 @@ Run `npm test` from the root folder.
|
|
|
199
199
|
## Contributors
|
|
200
200
|
|
|
201
201
|
See
|
|
202
|
-
[all contributors](https://github.com/
|
|
202
|
+
[all contributors](https://github.com/loopbackio/loopback-next/graphs/contributors).
|
|
203
203
|
|
|
204
204
|
## License
|
|
205
205
|
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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() {
|
|
File without changes
|
|
File without changes
|
|
@@ -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
|
package/dist/.sandbox/{96373okqtZk → 50473YAKX34}/interceptors/non-global-interceptor.interceptor.js
RENAMED
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
|
@@ -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
|
|
File without changes
|
|
@@ -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() {
|
|
File without changes
|
|
@@ -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
|
|
File without changes
|
|
@@ -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
|
|
File without changes
|
|
@@ -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() {
|
|
File without changes
|
|
@@ -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
|
|
File without changes
|
|
@@ -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
|
package/dist/boot.component.js
CHANGED
|
@@ -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,
|
|
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"}
|