@loopback/boot 6.1.3 → 6.1.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/dist/mixins/boot.mixin.d.ts +2 -0
- package/package.json +14 -14
- package/dist/.sandbox/233173NwuLh/dist/application.js +0 -20
- package/dist/.sandbox/233173NwuLh/package.json +0 -18
- package/dist/.sandbox/23317Ic3BhQ/application.js +0 -20
- package/dist/.sandbox/23317Ic3BhQ/services/bindable-classes.service.js +0 -73
- package/dist/.sandbox/23317Ic3BhQ/services/date.service.js +0 -15
- package/dist/.sandbox/23317Ic3BhQ/services/geocoder.service.js +0 -21
- package/dist/.sandbox/23317Ic3BhQ/services/greeting.service.js +0 -17
- package/dist/.sandbox/23317bFhsMP/service-provider.artifact.js +0 -21
- package/dist/.sandbox/23317oBnQm4/application.js +0 -20
- package/dist/.sandbox/23317oBnQm4/observers/lifecycle-observer.observer.js +0 -33
- package/dist/.sandbox/23317qc5mYA/model-endpoints/product.rest-config.js +0 -9
- package/dist/.sandbox/23317qc5mYA/models/product.model.js +0 -25
- package/dist/.sandbox/23317y34ejN/application.js +0 -20
- package/dist/.sandbox/23317y34ejN/models/multiple-models.model.js +0 -16
- package/dist/.sandbox/23317y34ejN/models/no-entity.model.js +0 -25
- package/dist/.sandbox/23317y34ejN/models/product.model.js +0 -25
- package/dist/.sandbox/23318C4aslF/multiple.artifact.js +0 -39
- package/dist/.sandbox/23318OQNVAE/application.js +0 -20
- package/dist/.sandbox/23318OQNVAE/controllers/multiple.controller.js +0 -39
- package/dist/.sandbox/23318OQNVAE/package.json +0 -18
- package/dist/.sandbox/23318zJrqZI/multiple.artifact.js +0 -39
- package/dist/.sandbox/233205z5lq3/application.js +0 -20
- package/dist/.sandbox/233205z5lq3/interceptors/interceptor.interceptor.js +0 -51
- package/dist/.sandbox/233205z5lq3/interceptors/non-global-interceptor.interceptor.js +0 -51
- package/dist/.sandbox/23320ZPLyWC/model-endpoints/no-entity.rest-config.js +0 -10
- package/dist/.sandbox/23320ZPLyWC/models/no-entity.model.js +0 -25
- package/dist/.sandbox/23320lwX6hA/application.js +0 -20
- package/dist/.sandbox/23320lwX6hA/datasources/db.datasource.js +0 -17
- package/dist/.sandbox/23320xI7KQI/datasource.artifact.js +0 -17
- package/dist/.sandbox/23325PUOQBb/application.js +0 -20
- package/dist/.sandbox/23325PUOQBb/controllers/multiple.controller.js +0 -39
- package/dist/.sandbox/23325PUOQBb/package.json +0 -18
- package/dist/.sandbox/23325qNlEhg/application.js +0 -20
- package/dist/.sandbox/23325qNlEhg/controllers/multiple.controller.js +0 -39
- package/dist/.sandbox/23325ylMJGM/application.js +0 -20
- package/dist/.sandbox/23325ylMJGM/repositories/multiple.repository.js +0 -39
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { Application, Binding, BindingFilter, BindingFromClassOptions, BindingScope, Component, Constructor, Context, MixinTarget } from '@loopback/core';
|
|
2
3
|
import { Bootable, Booter, BootOptions, InstanceWithBooters } from '../types';
|
|
3
4
|
export { Binding };
|
|
@@ -147,6 +148,7 @@ export declare function BootMixin<T extends MixinTarget<Application>>(superClass
|
|
|
147
148
|
(eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): Application;
|
|
148
149
|
(event: string | symbol, listener: (...args: any[]) => void): Application;
|
|
149
150
|
};
|
|
151
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
150
152
|
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
151
153
|
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
152
154
|
off: (eventName: string | symbol, listener: (...args: any[]) => void) => Application;
|
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.
|
|
4
|
+
"version": "6.1.4",
|
|
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.
|
|
42
|
-
"@loopback/repository": "^6.1.
|
|
43
|
-
"@loopback/service-proxy": "^6.1.
|
|
44
|
-
"@types/debug": "^4.1.
|
|
41
|
+
"@loopback/model-api-builder": "^5.1.4",
|
|
42
|
+
"@loopback/repository": "^6.1.4",
|
|
43
|
+
"@loopback/service-proxy": "^6.1.4",
|
|
44
|
+
"@types/debug": "^4.1.12",
|
|
45
45
|
"@types/glob": "^8.1.0",
|
|
46
46
|
"debug": "^4.3.4",
|
|
47
|
-
"glob": "^10.3.
|
|
47
|
+
"glob": "^10.3.10",
|
|
48
48
|
"tslib": "^2.6.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@loopback/build": "^10.1.
|
|
52
|
-
"@loopback/core": "^5.1.
|
|
53
|
-
"@loopback/eslint-config": "^14.0.
|
|
54
|
-
"@loopback/rest": "^13.1.
|
|
55
|
-
"@loopback/rest-crud": "^0.17.
|
|
56
|
-
"@loopback/testlab": "^6.1.
|
|
57
|
-
"@types/node": "^16.18.
|
|
51
|
+
"@loopback/build": "^10.1.4",
|
|
52
|
+
"@loopback/core": "^5.1.4",
|
|
53
|
+
"@loopback/eslint-config": "^14.0.5",
|
|
54
|
+
"@loopback/rest": "^13.1.4",
|
|
55
|
+
"@loopback/rest-crud": "^0.17.4",
|
|
56
|
+
"@loopback/testlab": "^6.1.4",
|
|
57
|
+
"@types/node": "^16.18.68"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "5326aa3ae03bd01b970917f96d0403dd5102aef1"
|
|
60
60
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,73 +0,0 @@
|
|
|
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 = class BindableGreetingService {
|
|
11
|
-
greet(whom = 'world') {
|
|
12
|
-
return Promise.resolve(`Hello ${whom}`);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
exports.BindableGreetingService = BindableGreetingService;
|
|
16
|
-
exports.BindableGreetingService = BindableGreetingService = tslib_1.__decorate([
|
|
17
|
-
(0, core_1.injectable)({
|
|
18
|
-
tags: { serviceType: 'local' },
|
|
19
|
-
scope: core_1.BindingScope.SINGLETON,
|
|
20
|
-
})
|
|
21
|
-
], BindableGreetingService);
|
|
22
|
-
let DateProvider = class DateProvider {
|
|
23
|
-
value() {
|
|
24
|
-
return Promise.resolve(new Date());
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.DateProvider = DateProvider;
|
|
28
|
-
exports.DateProvider = DateProvider = tslib_1.__decorate([
|
|
29
|
-
(0, core_1.injectable)({ tags: { serviceType: 'local', name: 'CurrentDate' } })
|
|
30
|
-
], DateProvider);
|
|
31
|
-
class NotBindableGreetingService {
|
|
32
|
-
greet(whom = 'world') {
|
|
33
|
-
return Promise.resolve(`Hello ${whom}`);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.NotBindableGreetingService = NotBindableGreetingService;
|
|
37
|
-
class NotBindableDateProvider {
|
|
38
|
-
value() {
|
|
39
|
-
return Promise.resolve(new Date());
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.NotBindableDateProvider = NotBindableDateProvider;
|
|
43
|
-
let ServiceWithConstructorInject = class ServiceWithConstructorInject {
|
|
44
|
-
constructor(user) {
|
|
45
|
-
this.user = user;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
exports.ServiceWithConstructorInject = ServiceWithConstructorInject;
|
|
49
|
-
exports.ServiceWithConstructorInject = ServiceWithConstructorInject = tslib_1.__decorate([
|
|
50
|
-
tslib_1.__param(0, (0, core_1.inject)('currentUser')),
|
|
51
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
52
|
-
], ServiceWithConstructorInject);
|
|
53
|
-
class ServiceWithPropertyInject {
|
|
54
|
-
}
|
|
55
|
-
exports.ServiceWithPropertyInject = ServiceWithPropertyInject;
|
|
56
|
-
tslib_1.__decorate([
|
|
57
|
-
(0, core_1.inject)('currentUser'),
|
|
58
|
-
tslib_1.__metadata("design:type", String)
|
|
59
|
-
], ServiceWithPropertyInject.prototype, "user", void 0);
|
|
60
|
-
class ServiceWithMethodInject {
|
|
61
|
-
greet(user) {
|
|
62
|
-
return `Hello, ${user}`;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.ServiceWithMethodInject = ServiceWithMethodInject;
|
|
66
|
-
tslib_1.__decorate([
|
|
67
|
-
tslib_1.__param(0, (0, core_1.inject)('currentUser')),
|
|
68
|
-
tslib_1.__metadata("design:type", Function),
|
|
69
|
-
tslib_1.__metadata("design:paramtypes", [String]),
|
|
70
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
71
|
-
], ServiceWithMethodInject.prototype, "greet", null);
|
|
72
|
-
//# sourceMappingURL=bindable-classes.artifact.js.map
|
|
73
|
-
//# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/bindable-classes.artifact.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
|
@@ -1,25 +0,0 @@
|
|
|
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 = class Product extends repository_1.Entity {
|
|
11
|
-
};
|
|
12
|
-
exports.Product = Product;
|
|
13
|
-
tslib_1.__decorate([
|
|
14
|
-
(0, repository_1.property)({ id: true }),
|
|
15
|
-
tslib_1.__metadata("design:type", Number)
|
|
16
|
-
], Product.prototype, "id", void 0);
|
|
17
|
-
tslib_1.__decorate([
|
|
18
|
-
(0, repository_1.property)({ required: true }),
|
|
19
|
-
tslib_1.__metadata("design:type", String)
|
|
20
|
-
], Product.prototype, "name", void 0);
|
|
21
|
-
exports.Product = Product = tslib_1.__decorate([
|
|
22
|
-
(0, repository_1.model)()
|
|
23
|
-
], Product);
|
|
24
|
-
//# sourceMappingURL=product.model.js.map
|
|
25
|
-
//# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/product.model.js.map
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1,25 +0,0 @@
|
|
|
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 = class NoEntity extends repository_1.Model {
|
|
11
|
-
};
|
|
12
|
-
exports.NoEntity = NoEntity;
|
|
13
|
-
tslib_1.__decorate([
|
|
14
|
-
(0, repository_1.property)({ id: true }),
|
|
15
|
-
tslib_1.__metadata("design:type", Number)
|
|
16
|
-
], NoEntity.prototype, "id", void 0);
|
|
17
|
-
tslib_1.__decorate([
|
|
18
|
-
(0, repository_1.property)({ required: true }),
|
|
19
|
-
tslib_1.__metadata("design:type", String)
|
|
20
|
-
], NoEntity.prototype, "name", void 0);
|
|
21
|
-
exports.NoEntity = NoEntity = tslib_1.__decorate([
|
|
22
|
-
(0, repository_1.model)()
|
|
23
|
-
], NoEntity);
|
|
24
|
-
//# sourceMappingURL=no-entity.model.js.map
|
|
25
|
-
//# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/no-entity.model.js.map
|
|
@@ -1,25 +0,0 @@
|
|
|
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 = class Product extends repository_1.Entity {
|
|
11
|
-
};
|
|
12
|
-
exports.Product = Product;
|
|
13
|
-
tslib_1.__decorate([
|
|
14
|
-
(0, repository_1.property)({ id: true }),
|
|
15
|
-
tslib_1.__metadata("design:type", Number)
|
|
16
|
-
], Product.prototype, "id", void 0);
|
|
17
|
-
tslib_1.__decorate([
|
|
18
|
-
(0, repository_1.property)({ required: true }),
|
|
19
|
-
tslib_1.__metadata("design:type", String)
|
|
20
|
-
], Product.prototype, "name", void 0);
|
|
21
|
-
exports.Product = Product = tslib_1.__decorate([
|
|
22
|
-
(0, repository_1.model)()
|
|
23
|
-
], Product);
|
|
24
|
-
//# sourceMappingURL=product.model.js.map
|
|
25
|
-
//# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/product.model.js.map
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,51 +0,0 @@
|
|
|
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 = 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;
|
|
47
|
-
exports.MyGlobalInterceptor = MyGlobalInterceptor = tslib_1.__decorate([
|
|
48
|
-
(0, core_1.globalInterceptor)('auth', { tags: { name: 'myGlobalInterceptor' } })
|
|
49
|
-
], MyGlobalInterceptor);
|
|
50
|
-
//# sourceMappingURL=interceptor.artifact.js.map
|
|
51
|
-
//# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/interceptor.artifact.js.map
|
|
@@ -1,51 +0,0 @@
|
|
|
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 = 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;
|
|
47
|
-
exports.MyInterceptor = MyInterceptor = tslib_1.__decorate([
|
|
48
|
-
(0, core_1.injectable)({ tags: { namespace: 'interceptors', name: 'myInterceptor' } })
|
|
49
|
-
], MyInterceptor);
|
|
50
|
-
//# sourceMappingURL=non-global-interceptor.artifact.js.map
|
|
51
|
-
//# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/non-global-interceptor.artifact.js.map
|
|
@@ -1,25 +0,0 @@
|
|
|
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 = class NoEntity extends repository_1.Model {
|
|
11
|
-
};
|
|
12
|
-
exports.NoEntity = NoEntity;
|
|
13
|
-
tslib_1.__decorate([
|
|
14
|
-
(0, repository_1.property)({ id: true }),
|
|
15
|
-
tslib_1.__metadata("design:type", Number)
|
|
16
|
-
], NoEntity.prototype, "id", void 0);
|
|
17
|
-
tslib_1.__decorate([
|
|
18
|
-
(0, repository_1.property)({ required: true }),
|
|
19
|
-
tslib_1.__metadata("design:type", String)
|
|
20
|
-
], NoEntity.prototype, "name", void 0);
|
|
21
|
-
exports.NoEntity = NoEntity = tslib_1.__decorate([
|
|
22
|
-
(0, repository_1.model)()
|
|
23
|
-
], NoEntity);
|
|
24
|
-
//# sourceMappingURL=no-entity.model.js.map
|
|
25
|
-
//# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/no-entity.model.js.map
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|