@loopback/boot 4.0.0 → 4.1.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.
- package/dist/.sandbox/{22890dc2Gvk → 27167u6gF3i}/application.js +1 -1
- package/dist/.sandbox/{228919oWope → 27167u6gF3i}/services/bindable-classes.service.js +1 -1
- package/dist/.sandbox/{228919oWope → 27167u6gF3i}/services/date.service.js +1 -1
- package/dist/.sandbox/{228919oWope → 27167u6gF3i}/services/geocoder.service.js +1 -1
- package/dist/.sandbox/{228919oWope → 27167u6gF3i}/services/greeting.service.js +1 -1
- package/dist/.sandbox/{22893KZ40YM → 27169c18IFx}/multiple.artifact.js +1 -1
- package/dist/.sandbox/{228921R5RAr → 27170qWM8MC}/multiple.artifact.js +1 -1
- package/dist/.sandbox/{22895wrt0VS → 27171KciNNj}/model-endpoints/product.rest-config.js +0 -0
- package/dist/.sandbox/{22895wrt0VS → 27171KciNNj}/models/product.model.js +1 -1
- package/dist/.sandbox/{22894tJECIV → 27171jlbogf}/application.js +1 -1
- package/dist/.sandbox/{22890dc2Gvk → 27171jlbogf}/repositories/multiple.repository.js +1 -1
- package/dist/.sandbox/{228919oWope → 271725xSKQe}/application.js +1 -1
- package/dist/.sandbox/{229028zFTWU → 271725xSKQe}/datasources/db.datasource.js +1 -1
- package/dist/.sandbox/{22898XcR34H → 27173rr0uBH}/application.js +1 -1
- package/dist/.sandbox/{22898XcR34H → 27173rr0uBH}/controllers/multiple.controller.js +1 -1
- package/dist/.sandbox/{22894tJECIV → 27173rr0uBH}/package.json +0 -0
- package/dist/.sandbox/{22899AL3M4b → 27174LpE8TX}/application.js +1 -1
- package/dist/.sandbox/{22899AL3M4b → 27174LpE8TX}/controllers/multiple.controller.js +1 -1
- package/dist/.sandbox/{228973XEvx2 → 27174LpE8TX}/package.json +0 -0
- package/dist/.sandbox/{22895olQhLo → 271754jFg5k}/service-provider.artifact.js +1 -1
- package/dist/.sandbox/27176NC4S4p/application.js +20 -0
- package/dist/.sandbox/{229019lXpMb → 27176NC4S4p}/interceptors/interceptor.interceptor.js +1 -1
- package/dist/.sandbox/{229019lXpMb → 27176NC4S4p}/interceptors/non-global-interceptor.interceptor.js +1 -1
- package/dist/.sandbox/{228973XEvx2 → 27177T2Bgfw}/dist/application.js +1 -1
- package/dist/.sandbox/{22898XcR34H → 27177T2Bgfw}/package.json +0 -0
- package/dist/.sandbox/{22895kt6SMj → 27178Ssz1lo}/datasource.artifact.js +1 -1
- package/dist/.sandbox/{22896XQ6ugK → 27178ds8xWF}/model-endpoints/no-entity.rest-config.js +0 -0
- package/dist/.sandbox/{22896XQ6ugK → 27178ds8xWF}/models/no-entity.model.js +1 -1
- package/dist/.sandbox/27179LZZayH/application.js +20 -0
- package/dist/.sandbox/{22904cnKAqR → 27179LZZayH}/observers/lifecycle-observer.observer.js +1 -1
- package/dist/.sandbox/27180Od24vy/application.js +20 -0
- package/dist/.sandbox/{22894tJECIV → 27180Od24vy}/controllers/multiple.controller.js +1 -1
- package/dist/.sandbox/27181HsdZzG/application.js +20 -0
- package/dist/.sandbox/{22900LrjtGY → 27181HsdZzG}/models/multiple-models.model.js +1 -1
- package/dist/.sandbox/{22900LrjtGY → 27181HsdZzG}/models/no-entity.model.js +1 -1
- package/dist/.sandbox/{22900LrjtGY → 27181HsdZzG}/models/product.model.js +1 -1
- package/dist/booters/application-metadata.booter.js +2 -2
- package/dist/booters/application-metadata.booter.js.map +1 -1
- package/dist/booters/base-artifact.booter.js +5 -3
- package/dist/booters/base-artifact.booter.js.map +1 -1
- package/package.json +14 -14
- package/src/booters/application-metadata.booter.ts +1 -1
- package/src/booters/base-artifact.booter.ts +5 -5
- package/dist/.sandbox/22900LrjtGY/application.js +0 -20
- package/dist/.sandbox/229019lXpMb/application.js +0 -20
- package/dist/.sandbox/229028zFTWU/application.js +0 -20
- package/dist/.sandbox/22904cnKAqR/application.js +0 -20
|
@@ -17,4 +17,4 @@ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0,
|
|
|
17
17
|
}
|
|
18
18
|
exports.BooterApp = BooterApp;
|
|
19
19
|
//# sourceMappingURL=application.js.map
|
|
20
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
20
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
|
|
@@ -70,4 +70,4 @@ class ServiceWithMethodInject {
|
|
|
70
70
|
], ServiceWithMethodInject.prototype, "greet", null);
|
|
71
71
|
exports.ServiceWithMethodInject = ServiceWithMethodInject;
|
|
72
72
|
//# sourceMappingURL=bindable-classes.artifact.js.map
|
|
73
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
73
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/bindable-classes.artifact.js.map
|
|
@@ -12,4 +12,4 @@ class DynamicDateProvider {
|
|
|
12
12
|
}
|
|
13
13
|
exports.DynamicDateProvider = DynamicDateProvider;
|
|
14
14
|
//# sourceMappingURL=service-dynamic-value-provider.artifact.js.map
|
|
15
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
15
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-dynamic-value-provider.artifact.js.map
|
|
@@ -18,4 +18,4 @@ class GeocoderServiceProvider {
|
|
|
18
18
|
}
|
|
19
19
|
exports.GeocoderServiceProvider = GeocoderServiceProvider;
|
|
20
20
|
//# sourceMappingURL=service-provider.artifact.js.map
|
|
21
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
21
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-provider.artifact.js.map
|
|
@@ -14,4 +14,4 @@ class GreetingService {
|
|
|
14
14
|
}
|
|
15
15
|
exports.GreetingService = GreetingService;
|
|
16
16
|
//# sourceMappingURL=service-class.artifact.js.map
|
|
17
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
17
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-class.artifact.js.map
|
|
@@ -36,4 +36,4 @@ function hello() {
|
|
|
36
36
|
}
|
|
37
37
|
exports.hello = hello;
|
|
38
38
|
//# sourceMappingURL=multiple.artifact.js.map
|
|
39
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
39
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map
|
|
@@ -36,4 +36,4 @@ function hello() {
|
|
|
36
36
|
}
|
|
37
37
|
exports.hello = hello;
|
|
38
38
|
//# sourceMappingURL=multiple.artifact.js.map
|
|
39
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
39
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map
|
|
File without changes
|
|
@@ -22,4 +22,4 @@ Product = (0, tslib_1.__decorate)([
|
|
|
22
22
|
], Product);
|
|
23
23
|
exports.Product = Product;
|
|
24
24
|
//# sourceMappingURL=product.model.js.map
|
|
25
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
25
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/product.model.js.map
|
|
@@ -17,4 +17,4 @@ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0,
|
|
|
17
17
|
}
|
|
18
18
|
exports.BooterApp = BooterApp;
|
|
19
19
|
//# sourceMappingURL=application.js.map
|
|
20
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
20
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
|
|
@@ -36,4 +36,4 @@ function hello() {
|
|
|
36
36
|
}
|
|
37
37
|
exports.hello = hello;
|
|
38
38
|
//# sourceMappingURL=multiple.artifact.js.map
|
|
39
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
39
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map
|
|
@@ -17,4 +17,4 @@ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0,
|
|
|
17
17
|
}
|
|
18
18
|
exports.BooterApp = BooterApp;
|
|
19
19
|
//# sourceMappingURL=application.js.map
|
|
20
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
20
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
|
|
@@ -14,4 +14,4 @@ class DbDataSource extends repository_1.juggler.DataSource {
|
|
|
14
14
|
exports.DbDataSource = DbDataSource;
|
|
15
15
|
DbDataSource.dataSourceName = 'db';
|
|
16
16
|
//# sourceMappingURL=datasource.artifact.js.map
|
|
17
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
17
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/datasource.artifact.js.map
|
|
@@ -17,4 +17,4 @@ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0,
|
|
|
17
17
|
}
|
|
18
18
|
exports.BooterApp = BooterApp;
|
|
19
19
|
//# sourceMappingURL=application.js.map
|
|
20
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
20
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
|
|
@@ -36,4 +36,4 @@ function hello() {
|
|
|
36
36
|
}
|
|
37
37
|
exports.hello = hello;
|
|
38
38
|
//# sourceMappingURL=multiple.artifact.js.map
|
|
39
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
39
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map
|
|
File without changes
|
|
@@ -17,4 +17,4 @@ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0,
|
|
|
17
17
|
}
|
|
18
18
|
exports.BooterApp = BooterApp;
|
|
19
19
|
//# sourceMappingURL=application.js.map
|
|
20
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
20
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
|
|
@@ -36,4 +36,4 @@ function hello() {
|
|
|
36
36
|
}
|
|
37
37
|
exports.hello = hello;
|
|
38
38
|
//# sourceMappingURL=multiple.artifact.js.map
|
|
39
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
39
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map
|
|
File without changes
|
|
@@ -18,4 +18,4 @@ class GeocoderServiceProvider {
|
|
|
18
18
|
}
|
|
19
19
|
exports.GeocoderServiceProvider = GeocoderServiceProvider;
|
|
20
20
|
//# sourceMappingURL=service-provider.artifact.js.map
|
|
21
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
21
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-provider.artifact.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/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
|
|
@@ -48,4 +48,4 @@ MyGlobalInterceptor = (0, tslib_1.__decorate)([
|
|
|
48
48
|
], MyGlobalInterceptor);
|
|
49
49
|
exports.MyGlobalInterceptor = MyGlobalInterceptor;
|
|
50
50
|
//# sourceMappingURL=interceptor.artifact.js.map
|
|
51
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
51
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/interceptor.artifact.js.map
|
package/dist/.sandbox/{229019lXpMb → 27176NC4S4p}/interceptors/non-global-interceptor.interceptor.js
RENAMED
|
@@ -48,4 +48,4 @@ MyInterceptor = (0, tslib_1.__decorate)([
|
|
|
48
48
|
], MyInterceptor);
|
|
49
49
|
exports.MyInterceptor = MyInterceptor;
|
|
50
50
|
//# sourceMappingURL=non-global-interceptor.artifact.js.map
|
|
51
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
51
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/non-global-interceptor.artifact.js.map
|
|
@@ -17,4 +17,4 @@ class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0,
|
|
|
17
17
|
}
|
|
18
18
|
exports.BooterApp = BooterApp;
|
|
19
19
|
//# sourceMappingURL=application.js.map
|
|
20
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
20
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
|
|
File without changes
|
|
@@ -14,4 +14,4 @@ class DbDataSource extends repository_1.juggler.DataSource {
|
|
|
14
14
|
exports.DbDataSource = DbDataSource;
|
|
15
15
|
DbDataSource.dataSourceName = 'db';
|
|
16
16
|
//# sourceMappingURL=datasource.artifact.js.map
|
|
17
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
17
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/datasource.artifact.js.map
|
|
File without changes
|
|
@@ -22,4 +22,4 @@ NoEntity = (0, tslib_1.__decorate)([
|
|
|
22
22
|
], NoEntity);
|
|
23
23
|
exports.NoEntity = NoEntity;
|
|
24
24
|
//# sourceMappingURL=no-entity.model.js.map
|
|
25
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
25
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/no-entity.model.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/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
|
|
@@ -30,4 +30,4 @@ class MyLifeCycleObserver {
|
|
|
30
30
|
}
|
|
31
31
|
exports.MyLifeCycleObserver = MyLifeCycleObserver;
|
|
32
32
|
//# sourceMappingURL=lifecycle-observer.artifact.js.map
|
|
33
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
33
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/lifecycle-observer.artifact.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/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
|
|
@@ -36,4 +36,4 @@ function hello() {
|
|
|
36
36
|
}
|
|
37
37
|
exports.hello = hello;
|
|
38
38
|
//# sourceMappingURL=multiple.artifact.js.map
|
|
39
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
39
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.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/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
|
|
@@ -13,4 +13,4 @@ class Model2 extends repository_1.Entity {
|
|
|
13
13
|
}
|
|
14
14
|
exports.Model2 = Model2;
|
|
15
15
|
//# sourceMappingURL=multiple-models.model.js.map
|
|
16
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
16
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple-models.model.js.map
|
|
@@ -22,4 +22,4 @@ NoEntity = (0, tslib_1.__decorate)([
|
|
|
22
22
|
], NoEntity);
|
|
23
23
|
exports.NoEntity = NoEntity;
|
|
24
24
|
//# sourceMappingURL=no-entity.model.js.map
|
|
25
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
25
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/no-entity.model.js.map
|
|
@@ -22,4 +22,4 @@ Product = (0, tslib_1.__decorate)([
|
|
|
22
22
|
], Product);
|
|
23
23
|
exports.Product = Product;
|
|
24
24
|
//# sourceMappingURL=product.model.js.map
|
|
25
|
-
//# sourceMappingURL=/Users/dhmlau/loopback
|
|
25
|
+
//# sourceMappingURL=/Users/dhmlau/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/product.model.js.map
|
|
@@ -9,7 +9,7 @@ const tslib_1 = require("tslib");
|
|
|
9
9
|
const core_1 = require("@loopback/core");
|
|
10
10
|
const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
|
|
11
11
|
const keys_1 = require("../keys");
|
|
12
|
-
const
|
|
12
|
+
const path_1 = (0, tslib_1.__importDefault)(require("path"));
|
|
13
13
|
const debug = (0, debug_1.default)('loopback:boot:booter:application-metadata');
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -26,7 +26,7 @@ let ApplicationMetadataBooter = class ApplicationMetadataBooter {
|
|
|
26
26
|
async configure() {
|
|
27
27
|
try {
|
|
28
28
|
// `this.projectRoot` points to `<project>/dist`
|
|
29
|
-
const pkg = require(
|
|
29
|
+
const pkg = require(path_1.default.resolve(this.projectRoot, '../package.json'));
|
|
30
30
|
this.app.setMetadata(pkg);
|
|
31
31
|
}
|
|
32
32
|
catch (err) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-metadata.booter.js","sourceRoot":"","sources":["../../src/booters/application-metadata.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAiE;AACjE,+DAAgC;AAChC,kCAAqC;AAErC,
|
|
1
|
+
{"version":3,"file":"application-metadata.booter.js","sourceRoot":"","sources":["../../src/booters/application-metadata.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAiE;AACjE,+DAAgC;AAChC,kCAAqC;AAErC,6DAAwB;AAExB,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,2CAA2C,CAAC,CAAC;AAEvE;;;;;;GAMG;AACH,IAAa,yBAAyB,GAAtC,MAAa,yBAAyB;IACpC,YACoD,GAAgB,EACvB,WAAmB;QADZ,QAAG,GAAH,GAAG,CAAa;QACvB,gBAAW,GAAX,WAAW,CAAQ;IAC7D,CAAC;IAEJ,KAAK,CAAC,SAAS;QACb,IAAI;YACF,gDAAgD;YAChD,MAAM,GAAG,GAAG,OAAO,CAAC,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAC;YACvE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;SAC3B;QAAC,OAAO,GAAG,EAAE;YACZ,KAAK,CAAC,wBAAwB,EAAE,GAAG,CAAC,CAAC;SACtC;IACH,CAAC;CACF,CAAA;AAfY,yBAAyB;IAEjC,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;IACzC,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,YAAY,CAAC,CAAA;kDADqB,kBAAW;GAFzD,yBAAyB,CAerC;AAfY,8DAAyB"}
|
|
@@ -56,11 +56,13 @@ class BaseArtifactBooter {
|
|
|
56
56
|
? this.options.extensions
|
|
57
57
|
: [this.options.extensions]
|
|
58
58
|
: [];
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
let joinedDirs = this.dirs.join(',');
|
|
60
|
+
if (this.dirs.length > 1)
|
|
61
|
+
joinedDirs = `{${joinedDirs}}`;
|
|
62
|
+
const joinedExts = `@(${this.extensions.join('|')})`;
|
|
61
63
|
this.glob = this.options.glob
|
|
62
64
|
? this.options.glob
|
|
63
|
-
:
|
|
65
|
+
: `/${joinedDirs}/${this.options.nested ? '**/*' : '*'}${joinedExts}`;
|
|
64
66
|
}
|
|
65
67
|
/**
|
|
66
68
|
* Discover files based on the 'glob' property relative to the 'projectRoot'.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-artifact.booter.js","sourceRoot":"","sources":["../../src/booters/base-artifact.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAGhE,+DAAiC;AACjC,6DAAwB;AAExB,iDAAmE;AAEnE,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,oCAAoC,CAAC,CAAC;AAEjE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,kBAAkB;IA+B7B,YAAY,WAAmB,EAAE,OAAwB;QACvD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;;OAGG;IACH,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI;YAC3B,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;gBAChC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI;gBACnB,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YACvB,CAAC,CAAC,EAAE,CAAC;QAEP,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU;YACvC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;gBACtC,CAAC,CA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AI,CAAC,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACzE,CAAC;CACF;AA/GD,gDA+GC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/boot",
|
|
3
3
|
"description": "A collection of Booters for LoopBack 4 Applications",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.1.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -35,26 +35,26 @@
|
|
|
35
35
|
"!*/__tests__"
|
|
36
36
|
],
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@loopback/core": "^3.
|
|
38
|
+
"@loopback/core": "^3.1.1"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@loopback/model-api-builder": "^3.
|
|
42
|
-
"@loopback/repository": "^4.
|
|
43
|
-
"@loopback/service-proxy": "^4.
|
|
41
|
+
"@loopback/model-api-builder": "^3.1.1",
|
|
42
|
+
"@loopback/repository": "^4.1.1",
|
|
43
|
+
"@loopback/service-proxy": "^4.1.1",
|
|
44
44
|
"@types/debug": "^4.1.7",
|
|
45
45
|
"@types/glob": "^7.2.0",
|
|
46
|
-
"debug": "^4.3.
|
|
46
|
+
"debug": "^4.3.3",
|
|
47
47
|
"glob": "^7.2.0",
|
|
48
48
|
"tslib": "^2.3.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@loopback/build": "^8.
|
|
52
|
-
"@loopback/core": "^3.
|
|
53
|
-
"@loopback/eslint-config": "^12.0.
|
|
54
|
-
"@loopback/rest": "^11.
|
|
55
|
-
"@loopback/rest-crud": "^0.
|
|
56
|
-
"@loopback/testlab": "^4.
|
|
57
|
-
"@types/node": "^
|
|
51
|
+
"@loopback/build": "^8.1.1",
|
|
52
|
+
"@loopback/core": "^3.1.1",
|
|
53
|
+
"@loopback/eslint-config": "^12.0.3",
|
|
54
|
+
"@loopback/rest": "^11.1.1",
|
|
55
|
+
"@loopback/rest-crud": "^0.13.1",
|
|
56
|
+
"@loopback/testlab": "^4.1.1",
|
|
57
|
+
"@types/node": "^12.20.46"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "8aff2ce33aad3daa53b05fa0fbe8a1b2c7ad0bdf"
|
|
60
60
|
}
|
|
@@ -7,7 +7,7 @@ import {inject, Application, CoreBindings} from '@loopback/core';
|
|
|
7
7
|
import debugModule from 'debug';
|
|
8
8
|
import {BootBindings} from '../keys';
|
|
9
9
|
import {Booter} from '../types';
|
|
10
|
-
import path
|
|
10
|
+
import path from 'path';
|
|
11
11
|
|
|
12
12
|
const debug = debugModule('loopback:boot:booter:application-metadata');
|
|
13
13
|
|
|
@@ -91,14 +91,14 @@ export class BaseArtifactBooter implements Booter {
|
|
|
91
91
|
: [this.options.extensions]
|
|
92
92
|
: [];
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
let joinedDirs = this.dirs.join(',');
|
|
95
|
+
if (this.dirs.length > 1) joinedDirs = `{${joinedDirs}}`;
|
|
96
|
+
|
|
97
|
+
const joinedExts = `@(${this.extensions.join('|')})`;
|
|
96
98
|
|
|
97
99
|
this.glob = this.options.glob
|
|
98
100
|
? this.options.glob
|
|
99
|
-
:
|
|
100
|
-
this.options.nested ? '**/*' : '*'
|
|
101
|
-
}@(${joinedExts})`;
|
|
101
|
+
: `/${joinedDirs}/${this.options.nested ? '**/*' : '*'}${joinedExts}`;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|