@loopback/boot 6.1.0 → 6.1.2

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 (37) hide show
  1. package/dist/.sandbox/529517l1JXq/model-endpoints/no-entity.rest-config.js +10 -0
  2. package/dist/.sandbox/529517l1JXq/models/no-entity.model.js +24 -0
  3. package/dist/.sandbox/52951AUhkhz/dist/application.js +20 -0
  4. package/dist/.sandbox/52951AUhkhz/package.json +18 -0
  5. package/dist/.sandbox/52951PISooD/application.js +20 -0
  6. package/dist/.sandbox/52951PISooD/interceptors/interceptor.interceptor.js +50 -0
  7. package/dist/.sandbox/52951PISooD/interceptors/non-global-interceptor.interceptor.js +50 -0
  8. package/dist/.sandbox/52951SX5cLn/datasource.artifact.js +17 -0
  9. package/dist/.sandbox/52951Ue0XLo/service-provider.artifact.js +21 -0
  10. package/dist/.sandbox/52951k3EHdb/application.js +20 -0
  11. package/dist/.sandbox/52951k3EHdb/controllers/multiple.controller.js +39 -0
  12. package/dist/.sandbox/52951k3EHdb/package.json +18 -0
  13. package/dist/.sandbox/529536fA8hL/multiple.artifact.js +39 -0
  14. package/dist/.sandbox/529538UjcSf/application.js +20 -0
  15. package/dist/.sandbox/529538UjcSf/datasources/db.datasource.js +17 -0
  16. package/dist/.sandbox/529538b7uiL/application.js +20 -0
  17. package/dist/.sandbox/529538b7uiL/controllers/multiple.controller.js +39 -0
  18. package/dist/.sandbox/529538b7uiL/package.json +18 -0
  19. package/dist/.sandbox/52953MNwakJ/application.js +20 -0
  20. package/dist/.sandbox/52953MNwakJ/repositories/multiple.repository.js +39 -0
  21. package/dist/.sandbox/52953f43KA7/multiple.artifact.js +39 -0
  22. package/dist/.sandbox/52953vLduwO/application.js +20 -0
  23. package/dist/.sandbox/52953vLduwO/observers/lifecycle-observer.observer.js +33 -0
  24. package/dist/.sandbox/52955OqglQH/model-endpoints/product.rest-config.js +9 -0
  25. package/dist/.sandbox/52955OqglQH/models/product.model.js +24 -0
  26. package/dist/.sandbox/52955pq4NIY/application.js +20 -0
  27. package/dist/.sandbox/52955pq4NIY/services/bindable-classes.service.js +70 -0
  28. package/dist/.sandbox/52955pq4NIY/services/date.service.js +15 -0
  29. package/dist/.sandbox/52955pq4NIY/services/geocoder.service.js +21 -0
  30. package/dist/.sandbox/52955pq4NIY/services/greeting.service.js +17 -0
  31. package/dist/.sandbox/52956M0sg29/application.js +20 -0
  32. package/dist/.sandbox/52956M0sg29/controllers/multiple.controller.js +39 -0
  33. package/dist/.sandbox/52956lsv8Lo/application.js +20 -0
  34. package/dist/.sandbox/52956lsv8Lo/models/multiple-models.model.js +16 -0
  35. package/dist/.sandbox/52956lsv8Lo/models/no-entity.model.js +24 -0
  36. package/dist/.sandbox/52956lsv8Lo/models/product.model.js +24 -0
  37. package/package.json +14 -14
@@ -0,0 +1,10 @@
1
+
2
+ const {NoEntity} = require('../models/no-entity.model');
3
+ module.exports = {
4
+ // this model extends Model, not Entity
5
+ model: NoEntity,
6
+ pattern: 'CrudRest',
7
+ dataSource: 'db',
8
+ basePath: '/no-entities',
9
+ };
10
+
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. 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.NoEntity = void 0;
8
+ const tslib_1 = require("tslib");
9
+ const repository_1 = require("@loopback/repository");
10
+ let NoEntity = exports.NoEntity = class NoEntity extends repository_1.Model {
11
+ };
12
+ tslib_1.__decorate([
13
+ (0, repository_1.property)({ id: true }),
14
+ tslib_1.__metadata("design:type", Number)
15
+ ], NoEntity.prototype, "id", void 0);
16
+ tslib_1.__decorate([
17
+ (0, repository_1.property)({ required: true }),
18
+ tslib_1.__metadata("design:type", String)
19
+ ], NoEntity.prototype, "name", void 0);
20
+ exports.NoEntity = NoEntity = tslib_1.__decorate([
21
+ (0, repository_1.model)()
22
+ ], NoEntity);
23
+ //# sourceMappingURL=no-entity.model.js.map
24
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/no-entity.model.js.map
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "boot-test-app",
3
+ "version": "1.0.0",
4
+ "description": "boot-test-app",
5
+ "keywords": [
6
+ "loopback-application",
7
+ "loopback"
8
+ ],
9
+ "engines": {
10
+ "node": "12 || 14 || 16 || 17"
11
+ },
12
+ "scripts": {},
13
+ "repository": {
14
+ "type": "git"
15
+ },
16
+ "author": "IBM Corp. and LoopBack contributors",
17
+ "license": "MIT"
18
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.MyGlobalInterceptor = void 0;
8
+ const tslib_1 = require("tslib");
9
+ const core_1 = require("@loopback/core");
10
+ /**
11
+ * This class will be bound to the application as a global `Interceptor` during
12
+ * `boot`
13
+ */
14
+ let MyGlobalInterceptor = exports.MyGlobalInterceptor = class MyGlobalInterceptor {
15
+ /*
16
+ constructor() {}
17
+ */
18
+ /**
19
+ * This method is used by LoopBack context to produce an interceptor function
20
+ * for the binding.
21
+ *
22
+ * @returns An interceptor function
23
+ */
24
+ value() {
25
+ return this.intercept.bind(this);
26
+ }
27
+ /**
28
+ * The logic to intercept an invocation
29
+ * @param invocationCtx - Invocation context
30
+ * @param next - A function to invoke next interceptor or the target method
31
+ */
32
+ async intercept(invocationCtx, next) {
33
+ // eslint-disable-next-line no-useless-catch
34
+ try {
35
+ // Add pre-invocation logic here
36
+ const result = await next();
37
+ // Add post-invocation logic here
38
+ return result;
39
+ }
40
+ catch (err) {
41
+ // Add error handling logic here
42
+ throw err;
43
+ }
44
+ }
45
+ };
46
+ exports.MyGlobalInterceptor = MyGlobalInterceptor = tslib_1.__decorate([
47
+ (0, core_1.globalInterceptor)('auth', { tags: { name: 'myGlobalInterceptor' } })
48
+ ], MyGlobalInterceptor);
49
+ //# sourceMappingURL=interceptor.artifact.js.map
50
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/interceptor.artifact.js.map
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.MyInterceptor = void 0;
8
+ const tslib_1 = require("tslib");
9
+ const core_1 = require("@loopback/core");
10
+ /**
11
+ * This class will be bound to the application as a global `Interceptor` during
12
+ * `boot`
13
+ */
14
+ let MyInterceptor = exports.MyInterceptor = class MyInterceptor {
15
+ /*
16
+ constructor() {}
17
+ */
18
+ /**
19
+ * This method is used by LoopBack context to produce an interceptor function
20
+ * for the binding.
21
+ *
22
+ * @returns An interceptor function
23
+ */
24
+ value() {
25
+ return this.intercept.bind(this);
26
+ }
27
+ /**
28
+ * The logic to intercept an invocation
29
+ * @param invocationCtx - Invocation context
30
+ * @param next - A function to invoke next interceptor or the target method
31
+ */
32
+ async intercept(invocationCtx, next) {
33
+ // eslint-disable-next-line no-useless-catch
34
+ try {
35
+ // Add pre-invocation logic here
36
+ const result = await next();
37
+ // Add post-invocation logic here
38
+ return result;
39
+ }
40
+ catch (err) {
41
+ // Add error handling logic here
42
+ throw err;
43
+ }
44
+ }
45
+ };
46
+ exports.MyInterceptor = MyInterceptor = tslib_1.__decorate([
47
+ (0, core_1.injectable)({ tags: { namespace: 'interceptors', name: 'myInterceptor' } })
48
+ ], MyInterceptor);
49
+ //# sourceMappingURL=non-global-interceptor.artifact.js.map
50
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/non-global-interceptor.artifact.js.map
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.DbDataSource = void 0;
8
+ const repository_1 = require("@loopback/repository");
9
+ class DbDataSource extends repository_1.juggler.DataSource {
10
+ constructor() {
11
+ super({ name: 'db' });
12
+ }
13
+ }
14
+ exports.DbDataSource = DbDataSource;
15
+ DbDataSource.dataSourceName = 'db';
16
+ //# sourceMappingURL=datasource.artifact.js.map
17
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/datasource.artifact.js.map
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.GeocoderServiceProvider = void 0;
8
+ // A dummy service instance to make unit testing easier
9
+ const GeocoderSingleton = {
10
+ geocode(address) {
11
+ return Promise.resolve({ lat: 0, lng: 0 });
12
+ },
13
+ };
14
+ class GeocoderServiceProvider {
15
+ value() {
16
+ return Promise.resolve(GeocoderSingleton);
17
+ }
18
+ }
19
+ exports.GeocoderServiceProvider = GeocoderServiceProvider;
20
+ //# sourceMappingURL=service-provider.artifact.js.map
21
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-provider.artifact.js.map
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0;
8
+ const tslib_1 = require("tslib");
9
+ const rest_1 = require("@loopback/rest");
10
+ class ArtifactOne {
11
+ one() {
12
+ return 'ControllerOne.one()';
13
+ }
14
+ }
15
+ exports.ArtifactOne = ArtifactOne;
16
+ tslib_1.__decorate([
17
+ (0, rest_1.get)('/one'),
18
+ tslib_1.__metadata("design:type", Function),
19
+ tslib_1.__metadata("design:paramtypes", []),
20
+ tslib_1.__metadata("design:returntype", void 0)
21
+ ], ArtifactOne.prototype, "one", null);
22
+ class ArtifactTwo {
23
+ two() {
24
+ return 'ControllerTwo.two()';
25
+ }
26
+ }
27
+ exports.ArtifactTwo = ArtifactTwo;
28
+ tslib_1.__decorate([
29
+ (0, rest_1.get)('/two'),
30
+ tslib_1.__metadata("design:type", Function),
31
+ tslib_1.__metadata("design:paramtypes", []),
32
+ tslib_1.__metadata("design:returntype", void 0)
33
+ ], ArtifactTwo.prototype, "two", null);
34
+ function hello() {
35
+ return 'hello world';
36
+ }
37
+ exports.hello = hello;
38
+ //# sourceMappingURL=multiple.artifact.js.map
39
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "boot-test-app",
3
+ "version": "1.0.0",
4
+ "description": "boot-test-app",
5
+ "keywords": [
6
+ "loopback-application",
7
+ "loopback"
8
+ ],
9
+ "engines": {
10
+ "node": "12 || 14 || 16 || 17"
11
+ },
12
+ "scripts": {},
13
+ "repository": {
14
+ "type": "git"
15
+ },
16
+ "author": "IBM Corp. and LoopBack contributors",
17
+ "license": "MIT"
18
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0;
8
+ const tslib_1 = require("tslib");
9
+ const rest_1 = require("@loopback/rest");
10
+ class ArtifactOne {
11
+ one() {
12
+ return 'ControllerOne.one()';
13
+ }
14
+ }
15
+ exports.ArtifactOne = ArtifactOne;
16
+ tslib_1.__decorate([
17
+ (0, rest_1.get)('/one'),
18
+ tslib_1.__metadata("design:type", Function),
19
+ tslib_1.__metadata("design:paramtypes", []),
20
+ tslib_1.__metadata("design:returntype", void 0)
21
+ ], ArtifactOne.prototype, "one", null);
22
+ class ArtifactTwo {
23
+ two() {
24
+ return 'ControllerTwo.two()';
25
+ }
26
+ }
27
+ exports.ArtifactTwo = ArtifactTwo;
28
+ tslib_1.__decorate([
29
+ (0, rest_1.get)('/two'),
30
+ tslib_1.__metadata("design:type", Function),
31
+ tslib_1.__metadata("design:paramtypes", []),
32
+ tslib_1.__metadata("design:returntype", void 0)
33
+ ], ArtifactTwo.prototype, "two", null);
34
+ function hello() {
35
+ return 'hello world';
36
+ }
37
+ exports.hello = hello;
38
+ //# sourceMappingURL=multiple.artifact.js.map
39
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.DbDataSource = void 0;
8
+ const repository_1 = require("@loopback/repository");
9
+ class DbDataSource extends repository_1.juggler.DataSource {
10
+ constructor() {
11
+ super({ name: 'db' });
12
+ }
13
+ }
14
+ exports.DbDataSource = DbDataSource;
15
+ DbDataSource.dataSourceName = 'db';
16
+ //# sourceMappingURL=datasource.artifact.js.map
17
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/datasource.artifact.js.map
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0;
8
+ const tslib_1 = require("tslib");
9
+ const rest_1 = require("@loopback/rest");
10
+ class ArtifactOne {
11
+ one() {
12
+ return 'ControllerOne.one()';
13
+ }
14
+ }
15
+ exports.ArtifactOne = ArtifactOne;
16
+ tslib_1.__decorate([
17
+ (0, rest_1.get)('/one'),
18
+ tslib_1.__metadata("design:type", Function),
19
+ tslib_1.__metadata("design:paramtypes", []),
20
+ tslib_1.__metadata("design:returntype", void 0)
21
+ ], ArtifactOne.prototype, "one", null);
22
+ class ArtifactTwo {
23
+ two() {
24
+ return 'ControllerTwo.two()';
25
+ }
26
+ }
27
+ exports.ArtifactTwo = ArtifactTwo;
28
+ tslib_1.__decorate([
29
+ (0, rest_1.get)('/two'),
30
+ tslib_1.__metadata("design:type", Function),
31
+ tslib_1.__metadata("design:paramtypes", []),
32
+ tslib_1.__metadata("design:returntype", void 0)
33
+ ], ArtifactTwo.prototype, "two", null);
34
+ function hello() {
35
+ return 'hello world';
36
+ }
37
+ exports.hello = hello;
38
+ //# sourceMappingURL=multiple.artifact.js.map
39
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "boot-test-app",
3
+ "version": "1.0.0",
4
+ "description": "boot-test-app",
5
+ "keywords": [
6
+ "loopback-application",
7
+ "loopback"
8
+ ],
9
+ "engines": {
10
+ "node": "12 || 14 || 16 || 17"
11
+ },
12
+ "scripts": {},
13
+ "repository": {
14
+ "type": "git"
15
+ },
16
+ "author": "IBM Corp. and LoopBack contributors",
17
+ "license": "MIT"
18
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0;
8
+ const tslib_1 = require("tslib");
9
+ const rest_1 = require("@loopback/rest");
10
+ class ArtifactOne {
11
+ one() {
12
+ return 'ControllerOne.one()';
13
+ }
14
+ }
15
+ exports.ArtifactOne = ArtifactOne;
16
+ tslib_1.__decorate([
17
+ (0, rest_1.get)('/one'),
18
+ tslib_1.__metadata("design:type", Function),
19
+ tslib_1.__metadata("design:paramtypes", []),
20
+ tslib_1.__metadata("design:returntype", void 0)
21
+ ], ArtifactOne.prototype, "one", null);
22
+ class ArtifactTwo {
23
+ two() {
24
+ return 'ControllerTwo.two()';
25
+ }
26
+ }
27
+ exports.ArtifactTwo = ArtifactTwo;
28
+ tslib_1.__decorate([
29
+ (0, rest_1.get)('/two'),
30
+ tslib_1.__metadata("design:type", Function),
31
+ tslib_1.__metadata("design:paramtypes", []),
32
+ tslib_1.__metadata("design:returntype", void 0)
33
+ ], ArtifactTwo.prototype, "two", null);
34
+ function hello() {
35
+ return 'hello world';
36
+ }
37
+ exports.hello = hello;
38
+ //# sourceMappingURL=multiple.artifact.js.map
39
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0;
8
+ const tslib_1 = require("tslib");
9
+ const rest_1 = require("@loopback/rest");
10
+ class ArtifactOne {
11
+ one() {
12
+ return 'ControllerOne.one()';
13
+ }
14
+ }
15
+ exports.ArtifactOne = ArtifactOne;
16
+ tslib_1.__decorate([
17
+ (0, rest_1.get)('/one'),
18
+ tslib_1.__metadata("design:type", Function),
19
+ tslib_1.__metadata("design:paramtypes", []),
20
+ tslib_1.__metadata("design:returntype", void 0)
21
+ ], ArtifactOne.prototype, "one", null);
22
+ class ArtifactTwo {
23
+ two() {
24
+ return 'ControllerTwo.two()';
25
+ }
26
+ }
27
+ exports.ArtifactTwo = ArtifactTwo;
28
+ tslib_1.__decorate([
29
+ (0, rest_1.get)('/two'),
30
+ tslib_1.__metadata("design:type", Function),
31
+ tslib_1.__metadata("design:paramtypes", []),
32
+ tslib_1.__metadata("design:returntype", void 0)
33
+ ], ArtifactTwo.prototype, "two", null);
34
+ function hello() {
35
+ return 'hello world';
36
+ }
37
+ exports.hello = hello;
38
+ //# sourceMappingURL=multiple.artifact.js.map
39
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 2018. 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.MyLifeCycleObserver = void 0;
8
+ /**
9
+ * An mock-up `LifeCycleObserver`. Please note that `start` and `stop` methods
10
+ * can be async or sync.
11
+ */
12
+ class MyLifeCycleObserver {
13
+ constructor() {
14
+ this.status = '';
15
+ }
16
+ /**
17
+ * Handling `start` event asynchronously
18
+ */
19
+ async start() {
20
+ // Perform some work asynchronously
21
+ // await startSomeAsyncWork(...)
22
+ this.status = 'started';
23
+ }
24
+ /**
25
+ * Handling `stop` event synchronously.
26
+ */
27
+ stop() {
28
+ this.status = 'stopped';
29
+ }
30
+ }
31
+ exports.MyLifeCycleObserver = MyLifeCycleObserver;
32
+ //# sourceMappingURL=lifecycle-observer.artifact.js.map
33
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/lifecycle-observer.artifact.js.map
@@ -0,0 +1,9 @@
1
+
2
+ const Product = 'product'
3
+ module.exports = {
4
+ model: Product,
5
+ pattern: 'stub',
6
+ dataSource: 'db',
7
+ basePath: '/products',
8
+ };
9
+
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.Product = void 0;
8
+ const tslib_1 = require("tslib");
9
+ const repository_1 = require("@loopback/repository");
10
+ let Product = exports.Product = class Product extends repository_1.Entity {
11
+ };
12
+ tslib_1.__decorate([
13
+ (0, repository_1.property)({ id: true }),
14
+ tslib_1.__metadata("design:type", Number)
15
+ ], Product.prototype, "id", void 0);
16
+ tslib_1.__decorate([
17
+ (0, repository_1.property)({ required: true }),
18
+ tslib_1.__metadata("design:type", String)
19
+ ], Product.prototype, "name", void 0);
20
+ exports.Product = Product = tslib_1.__decorate([
21
+ (0, repository_1.model)()
22
+ ], Product);
23
+ //# sourceMappingURL=product.model.js.map
24
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/product.model.js.map
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.ServiceWithMethodInject = exports.ServiceWithPropertyInject = exports.ServiceWithConstructorInject = exports.NotBindableDateProvider = exports.NotBindableGreetingService = exports.DateProvider = exports.BindableGreetingService = void 0;
8
+ const tslib_1 = require("tslib");
9
+ const core_1 = require("@loopback/core");
10
+ let BindableGreetingService = exports.BindableGreetingService = class BindableGreetingService {
11
+ greet(whom = 'world') {
12
+ return Promise.resolve(`Hello ${whom}`);
13
+ }
14
+ };
15
+ exports.BindableGreetingService = BindableGreetingService = tslib_1.__decorate([
16
+ (0, core_1.injectable)({
17
+ tags: { serviceType: 'local' },
18
+ scope: core_1.BindingScope.SINGLETON,
19
+ })
20
+ ], BindableGreetingService);
21
+ let DateProvider = exports.DateProvider = class DateProvider {
22
+ value() {
23
+ return Promise.resolve(new Date());
24
+ }
25
+ };
26
+ exports.DateProvider = DateProvider = tslib_1.__decorate([
27
+ (0, core_1.injectable)({ tags: { serviceType: 'local', name: 'CurrentDate' } })
28
+ ], DateProvider);
29
+ class NotBindableGreetingService {
30
+ greet(whom = 'world') {
31
+ return Promise.resolve(`Hello ${whom}`);
32
+ }
33
+ }
34
+ exports.NotBindableGreetingService = NotBindableGreetingService;
35
+ class NotBindableDateProvider {
36
+ value() {
37
+ return Promise.resolve(new Date());
38
+ }
39
+ }
40
+ exports.NotBindableDateProvider = NotBindableDateProvider;
41
+ let ServiceWithConstructorInject = exports.ServiceWithConstructorInject = class ServiceWithConstructorInject {
42
+ constructor(user) {
43
+ this.user = user;
44
+ }
45
+ };
46
+ exports.ServiceWithConstructorInject = ServiceWithConstructorInject = tslib_1.__decorate([
47
+ tslib_1.__param(0, (0, core_1.inject)('currentUser')),
48
+ tslib_1.__metadata("design:paramtypes", [String])
49
+ ], ServiceWithConstructorInject);
50
+ class ServiceWithPropertyInject {
51
+ }
52
+ exports.ServiceWithPropertyInject = ServiceWithPropertyInject;
53
+ tslib_1.__decorate([
54
+ (0, core_1.inject)('currentUser'),
55
+ tslib_1.__metadata("design:type", String)
56
+ ], ServiceWithPropertyInject.prototype, "user", void 0);
57
+ class ServiceWithMethodInject {
58
+ greet(user) {
59
+ return `Hello, ${user}`;
60
+ }
61
+ }
62
+ exports.ServiceWithMethodInject = ServiceWithMethodInject;
63
+ tslib_1.__decorate([
64
+ tslib_1.__param(0, (0, core_1.inject)('currentUser')),
65
+ tslib_1.__metadata("design:type", Function),
66
+ tslib_1.__metadata("design:paramtypes", [String]),
67
+ tslib_1.__metadata("design:returntype", void 0)
68
+ ], ServiceWithMethodInject.prototype, "greet", null);
69
+ //# sourceMappingURL=bindable-classes.artifact.js.map
70
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/bindable-classes.artifact.js.map
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.DynamicDateProvider = void 0;
8
+ class DynamicDateProvider {
9
+ static value() {
10
+ return new Date();
11
+ }
12
+ }
13
+ exports.DynamicDateProvider = DynamicDateProvider;
14
+ //# sourceMappingURL=service-dynamic-value-provider.artifact.js.map
15
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-dynamic-value-provider.artifact.js.map
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.GeocoderServiceProvider = void 0;
8
+ // A dummy service instance to make unit testing easier
9
+ const GeocoderSingleton = {
10
+ geocode(address) {
11
+ return Promise.resolve({ lat: 0, lng: 0 });
12
+ },
13
+ };
14
+ class GeocoderServiceProvider {
15
+ value() {
16
+ return Promise.resolve(GeocoderSingleton);
17
+ }
18
+ }
19
+ exports.GeocoderServiceProvider = GeocoderServiceProvider;
20
+ //# sourceMappingURL=service-provider.artifact.js.map
21
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-provider.artifact.js.map
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.GreetingService = void 0;
8
+ // NOTE(bajtos) At the moment, ServiceBooter recognizes only service providers.
9
+ // This class is used by tests to verify that non-provider classes are ignored.
10
+ class GreetingService {
11
+ greet(whom = 'world') {
12
+ return Promise.resolve(`Hello ${whom}`);
13
+ }
14
+ }
15
+ exports.GreetingService = GreetingService;
16
+ //# sourceMappingURL=service-class.artifact.js.map
17
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-class.artifact.js.map
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0;
8
+ const tslib_1 = require("tslib");
9
+ const rest_1 = require("@loopback/rest");
10
+ class ArtifactOne {
11
+ one() {
12
+ return 'ControllerOne.one()';
13
+ }
14
+ }
15
+ exports.ArtifactOne = ArtifactOne;
16
+ tslib_1.__decorate([
17
+ (0, rest_1.get)('/one'),
18
+ tslib_1.__metadata("design:type", Function),
19
+ tslib_1.__metadata("design:paramtypes", []),
20
+ tslib_1.__metadata("design:returntype", void 0)
21
+ ], ArtifactOne.prototype, "one", null);
22
+ class ArtifactTwo {
23
+ two() {
24
+ return 'ControllerTwo.two()';
25
+ }
26
+ }
27
+ exports.ArtifactTwo = ArtifactTwo;
28
+ tslib_1.__decorate([
29
+ (0, rest_1.get)('/two'),
30
+ tslib_1.__metadata("design:type", Function),
31
+ tslib_1.__metadata("design:paramtypes", []),
32
+ tslib_1.__metadata("design:returntype", void 0)
33
+ ], ArtifactTwo.prototype, "two", null);
34
+ function hello() {
35
+ return 'hello world';
36
+ }
37
+ exports.hello = hello;
38
+ //# sourceMappingURL=multiple.artifact.js.map
39
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. 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.Model2 = exports.Model1 = void 0;
8
+ const repository_1 = require("@loopback/repository");
9
+ class Model1 extends repository_1.Model {
10
+ }
11
+ exports.Model1 = Model1;
12
+ class Model2 extends repository_1.Entity {
13
+ }
14
+ exports.Model2 = Model2;
15
+ //# sourceMappingURL=multiple-models.model.js.map
16
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple-models.model.js.map
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. 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.NoEntity = void 0;
8
+ const tslib_1 = require("tslib");
9
+ const repository_1 = require("@loopback/repository");
10
+ let NoEntity = exports.NoEntity = class NoEntity extends repository_1.Model {
11
+ };
12
+ tslib_1.__decorate([
13
+ (0, repository_1.property)({ id: true }),
14
+ tslib_1.__metadata("design:type", Number)
15
+ ], NoEntity.prototype, "id", void 0);
16
+ tslib_1.__decorate([
17
+ (0, repository_1.property)({ required: true }),
18
+ tslib_1.__metadata("design:type", String)
19
+ ], NoEntity.prototype, "name", void 0);
20
+ exports.NoEntity = NoEntity = tslib_1.__decorate([
21
+ (0, repository_1.model)()
22
+ ], NoEntity);
23
+ //# sourceMappingURL=no-entity.model.js.map
24
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/no-entity.model.js.map
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // Copyright IBM Corp. and LoopBack contributors 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.Product = void 0;
8
+ const tslib_1 = require("tslib");
9
+ const repository_1 = require("@loopback/repository");
10
+ let Product = exports.Product = class Product extends repository_1.Entity {
11
+ };
12
+ tslib_1.__decorate([
13
+ (0, repository_1.property)({ id: true }),
14
+ tslib_1.__metadata("design:type", Number)
15
+ ], Product.prototype, "id", void 0);
16
+ tslib_1.__decorate([
17
+ (0, repository_1.property)({ required: true }),
18
+ tslib_1.__metadata("design:type", String)
19
+ ], Product.prototype, "name", void 0);
20
+ exports.Product = Product = tslib_1.__decorate([
21
+ (0, repository_1.model)()
22
+ ], Product);
23
+ //# sourceMappingURL=product.model.js.map
24
+ //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/product.model.js.map
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": "6.1.0",
4
+ "version": "6.1.2",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -38,23 +38,23 @@
38
38
  "@loopback/core": "^5.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@loopback/model-api-builder": "^5.1.0",
42
- "@loopback/repository": "^6.1.0",
43
- "@loopback/service-proxy": "^6.1.0",
41
+ "@loopback/model-api-builder": "^5.1.2",
42
+ "@loopback/repository": "^6.1.2",
43
+ "@loopback/service-proxy": "^6.1.2",
44
44
  "@types/debug": "^4.1.8",
45
45
  "@types/glob": "^8.1.0",
46
46
  "debug": "^4.3.4",
47
- "glob": "^10.3.1",
48
- "tslib": "^2.6.0"
47
+ "glob": "^10.3.3",
48
+ "tslib": "^2.6.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@loopback/build": "^10.1.0",
52
- "@loopback/core": "^5.1.0",
53
- "@loopback/eslint-config": "^14.0.1",
54
- "@loopback/rest": "^13.1.0",
55
- "@loopback/rest-crud": "^0.17.0",
56
- "@loopback/testlab": "^6.1.0",
57
- "@types/node": "^16.18.37"
51
+ "@loopback/build": "^10.1.2",
52
+ "@loopback/core": "^5.1.2",
53
+ "@loopback/eslint-config": "^14.0.3",
54
+ "@loopback/rest": "^13.1.2",
55
+ "@loopback/rest-crud": "^0.17.2",
56
+ "@loopback/testlab": "^6.1.2",
57
+ "@types/node": "^16.18.40"
58
58
  },
59
- "gitHead": "10a8fa7fbd00ac77c4aee3e7f40884b07fe1919c"
59
+ "gitHead": "0e9d6114999bd4d53969071e49bec5f6680ae9ad"
60
60
  }