@loopback/boot
Advanced tools
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.DbDataSource = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| class DbDataSource extends repository_1.juggler.DataSource { | ||
| constructor() { | ||
| super({ name: 'db' }); | ||
| } | ||
| } | ||
| exports.DbDataSource = DbDataSource; | ||
| DbDataSource.dataSourceName = 'db'; | ||
| //# sourceMappingURL=datasource.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/datasource.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| class ArtifactOne { | ||
| one() { | ||
| return 'ControllerOne.one()'; | ||
| } | ||
| } | ||
| exports.ArtifactOne = ArtifactOne; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/one'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactOne.prototype, "one", null); | ||
| class ArtifactTwo { | ||
| two() { | ||
| return 'ControllerTwo.two()'; | ||
| } | ||
| } | ||
| exports.ArtifactTwo = ArtifactTwo; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/two'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactTwo.prototype, "two", null); | ||
| function hello() { | ||
| return 'hello world'; | ||
| } | ||
| exports.hello = hello; | ||
| //# sourceMappingURL=multiple.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.Model2 = exports.Model1 = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| class Model1 extends repository_1.Model { | ||
| } | ||
| exports.Model1 = Model1; | ||
| class Model2 extends repository_1.Entity { | ||
| } | ||
| exports.Model2 = Model2; | ||
| //# sourceMappingURL=multiple-models.model.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple-models.model.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.NoEntity = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const repository_1 = require("@loopback/repository"); | ||
| let NoEntity = class NoEntity extends repository_1.Model { | ||
| }; | ||
| exports.NoEntity = NoEntity; | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ id: true }), | ||
| tslib_1.__metadata("design:type", Number) | ||
| ], NoEntity.prototype, "id", void 0); | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ required: true }), | ||
| tslib_1.__metadata("design:type", String) | ||
| ], NoEntity.prototype, "name", void 0); | ||
| exports.NoEntity = NoEntity = tslib_1.__decorate([ | ||
| (0, repository_1.model)() | ||
| ], NoEntity); | ||
| //# sourceMappingURL=no-entity.model.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/no-entity.model.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.Product = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const repository_1 = require("@loopback/repository"); | ||
| let Product = class Product extends repository_1.Entity { | ||
| }; | ||
| exports.Product = Product; | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ id: true }), | ||
| tslib_1.__metadata("design:type", Number) | ||
| ], Product.prototype, "id", void 0); | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ required: true }), | ||
| tslib_1.__metadata("design:type", String) | ||
| ], Product.prototype, "name", void 0); | ||
| exports.Product = Product = tslib_1.__decorate([ | ||
| (0, repository_1.model)() | ||
| ], Product); | ||
| //# sourceMappingURL=product.model.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/product.model.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| class ArtifactOne { | ||
| one() { | ||
| return 'ControllerOne.one()'; | ||
| } | ||
| } | ||
| exports.ArtifactOne = ArtifactOne; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/one'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactOne.prototype, "one", null); | ||
| class ArtifactTwo { | ||
| two() { | ||
| return 'ControllerTwo.two()'; | ||
| } | ||
| } | ||
| exports.ArtifactTwo = ArtifactTwo; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/two'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactTwo.prototype, "two", null); | ||
| function hello() { | ||
| return 'hello world'; | ||
| } | ||
| exports.hello = hello; | ||
| //# sourceMappingURL=multiple.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.GeocoderServiceProvider = void 0; | ||
| // A dummy service instance to make unit testing easier | ||
| const GeocoderSingleton = { | ||
| geocode(address) { | ||
| return Promise.resolve({ lat: 0, lng: 0 }); | ||
| }, | ||
| }; | ||
| class GeocoderServiceProvider { | ||
| value() { | ||
| return Promise.resolve(GeocoderSingleton); | ||
| } | ||
| } | ||
| exports.GeocoderServiceProvider = GeocoderServiceProvider; | ||
| //# sourceMappingURL=service-provider.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-provider.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.ServiceWithMethodInject = exports.ServiceWithPropertyInject = exports.ServiceWithConstructorInject = exports.NotBindableDateProvider = exports.NotBindableGreetingService = exports.DateProvider = exports.BindableGreetingService = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const core_1 = require("@loopback/core"); | ||
| let BindableGreetingService = class BindableGreetingService { | ||
| greet(whom = 'world') { | ||
| return Promise.resolve(`Hello ${whom}`); | ||
| } | ||
| }; | ||
| exports.BindableGreetingService = BindableGreetingService; | ||
| exports.BindableGreetingService = BindableGreetingService = tslib_1.__decorate([ | ||
| (0, core_1.injectable)({ | ||
| tags: { serviceType: 'local' }, | ||
| scope: core_1.BindingScope.SINGLETON, | ||
| }) | ||
| ], BindableGreetingService); | ||
| let DateProvider = class DateProvider { | ||
| value() { | ||
| return Promise.resolve(new Date()); | ||
| } | ||
| }; | ||
| exports.DateProvider = DateProvider; | ||
| exports.DateProvider = DateProvider = tslib_1.__decorate([ | ||
| (0, core_1.injectable)({ tags: { serviceType: 'local', name: 'CurrentDate' } }) | ||
| ], DateProvider); | ||
| class NotBindableGreetingService { | ||
| greet(whom = 'world') { | ||
| return Promise.resolve(`Hello ${whom}`); | ||
| } | ||
| } | ||
| exports.NotBindableGreetingService = NotBindableGreetingService; | ||
| class NotBindableDateProvider { | ||
| value() { | ||
| return Promise.resolve(new Date()); | ||
| } | ||
| } | ||
| exports.NotBindableDateProvider = NotBindableDateProvider; | ||
| let ServiceWithConstructorInject = class ServiceWithConstructorInject { | ||
| constructor(user) { | ||
| this.user = user; | ||
| } | ||
| }; | ||
| exports.ServiceWithConstructorInject = ServiceWithConstructorInject; | ||
| exports.ServiceWithConstructorInject = ServiceWithConstructorInject = tslib_1.__decorate([ | ||
| tslib_1.__param(0, (0, core_1.inject)('currentUser')), | ||
| tslib_1.__metadata("design:paramtypes", [String]) | ||
| ], ServiceWithConstructorInject); | ||
| class ServiceWithPropertyInject { | ||
| } | ||
| exports.ServiceWithPropertyInject = ServiceWithPropertyInject; | ||
| tslib_1.__decorate([ | ||
| (0, core_1.inject)('currentUser'), | ||
| tslib_1.__metadata("design:type", String) | ||
| ], ServiceWithPropertyInject.prototype, "user", void 0); | ||
| class ServiceWithMethodInject { | ||
| greet(user) { | ||
| return `Hello, ${user}`; | ||
| } | ||
| } | ||
| exports.ServiceWithMethodInject = ServiceWithMethodInject; | ||
| tslib_1.__decorate([ | ||
| tslib_1.__param(0, (0, core_1.inject)('currentUser')), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", [String]), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ServiceWithMethodInject.prototype, "greet", null); | ||
| //# sourceMappingURL=bindable-classes.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/bindable-classes.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.DynamicDateProvider = void 0; | ||
| class DynamicDateProvider { | ||
| static value() { | ||
| return new Date(); | ||
| } | ||
| } | ||
| exports.DynamicDateProvider = DynamicDateProvider; | ||
| //# sourceMappingURL=service-dynamic-value-provider.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-dynamic-value-provider.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.GeocoderServiceProvider = void 0; | ||
| // A dummy service instance to make unit testing easier | ||
| const GeocoderSingleton = { | ||
| geocode(address) { | ||
| return Promise.resolve({ lat: 0, lng: 0 }); | ||
| }, | ||
| }; | ||
| class GeocoderServiceProvider { | ||
| value() { | ||
| return Promise.resolve(GeocoderSingleton); | ||
| } | ||
| } | ||
| exports.GeocoderServiceProvider = GeocoderServiceProvider; | ||
| //# sourceMappingURL=service-provider.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-provider.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.GreetingService = void 0; | ||
| // NOTE(bajtos) At the moment, ServiceBooter recognizes only service providers. | ||
| // This class is used by tests to verify that non-provider classes are ignored. | ||
| class GreetingService { | ||
| greet(whom = 'world') { | ||
| return Promise.resolve(`Hello ${whom}`); | ||
| } | ||
| } | ||
| exports.GreetingService = GreetingService; | ||
| //# sourceMappingURL=service-class.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-class.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.MyGlobalInterceptor = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const core_1 = require("@loopback/core"); | ||
| /** | ||
| * This class will be bound to the application as a global `Interceptor` during | ||
| * `boot` | ||
| */ | ||
| let MyGlobalInterceptor = class MyGlobalInterceptor { | ||
| /* | ||
| constructor() {} | ||
| */ | ||
| /** | ||
| * This method is used by LoopBack context to produce an interceptor function | ||
| * for the binding. | ||
| * | ||
| * @returns An interceptor function | ||
| */ | ||
| value() { | ||
| return this.intercept.bind(this); | ||
| } | ||
| /** | ||
| * The logic to intercept an invocation | ||
| * @param invocationCtx - Invocation context | ||
| * @param next - A function to invoke next interceptor or the target method | ||
| */ | ||
| async intercept(invocationCtx, next) { | ||
| // eslint-disable-next-line no-useless-catch | ||
| try { | ||
| // Add pre-invocation logic here | ||
| const result = await next(); | ||
| // Add post-invocation logic here | ||
| return result; | ||
| } | ||
| catch (err) { | ||
| // Add error handling logic here | ||
| throw err; | ||
| } | ||
| } | ||
| }; | ||
| exports.MyGlobalInterceptor = MyGlobalInterceptor; | ||
| exports.MyGlobalInterceptor = MyGlobalInterceptor = tslib_1.__decorate([ | ||
| (0, core_1.globalInterceptor)('auth', { tags: { name: 'myGlobalInterceptor' } }) | ||
| ], MyGlobalInterceptor); | ||
| //# sourceMappingURL=interceptor.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/interceptor.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.MyInterceptor = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const core_1 = require("@loopback/core"); | ||
| /** | ||
| * This class will be bound to the application as a global `Interceptor` during | ||
| * `boot` | ||
| */ | ||
| let MyInterceptor = class MyInterceptor { | ||
| /* | ||
| constructor() {} | ||
| */ | ||
| /** | ||
| * This method is used by LoopBack context to produce an interceptor function | ||
| * for the binding. | ||
| * | ||
| * @returns An interceptor function | ||
| */ | ||
| value() { | ||
| return this.intercept.bind(this); | ||
| } | ||
| /** | ||
| * The logic to intercept an invocation | ||
| * @param invocationCtx - Invocation context | ||
| * @param next - A function to invoke next interceptor or the target method | ||
| */ | ||
| async intercept(invocationCtx, next) { | ||
| // eslint-disable-next-line no-useless-catch | ||
| try { | ||
| // Add pre-invocation logic here | ||
| const result = await next(); | ||
| // Add post-invocation logic here | ||
| return result; | ||
| } | ||
| catch (err) { | ||
| // Add error handling logic here | ||
| throw err; | ||
| } | ||
| } | ||
| }; | ||
| exports.MyInterceptor = MyInterceptor; | ||
| exports.MyInterceptor = MyInterceptor = tslib_1.__decorate([ | ||
| (0, core_1.injectable)({ tags: { namespace: 'interceptors', name: 'myInterceptor' } }) | ||
| ], MyInterceptor); | ||
| //# sourceMappingURL=non-global-interceptor.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/non-global-interceptor.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| class ArtifactOne { | ||
| one() { | ||
| return 'ControllerOne.one()'; | ||
| } | ||
| } | ||
| exports.ArtifactOne = ArtifactOne; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/one'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactOne.prototype, "one", null); | ||
| class ArtifactTwo { | ||
| two() { | ||
| return 'ControllerTwo.two()'; | ||
| } | ||
| } | ||
| exports.ArtifactTwo = ArtifactTwo; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/two'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactTwo.prototype, "two", null); | ||
| function hello() { | ||
| return 'hello world'; | ||
| } | ||
| exports.hello = hello; | ||
| //# sourceMappingURL=multiple.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map |
| { | ||
| "name": "boot-test-app", | ||
| "version": "1.0.0", | ||
| "description": "boot-test-app", | ||
| "keywords": [ | ||
| "loopback-application", | ||
| "loopback" | ||
| ], | ||
| "engines": { | ||
| "node": "20 || 22 || 24" | ||
| }, | ||
| "scripts": {}, | ||
| "repository": { | ||
| "type": "git" | ||
| }, | ||
| "author": "IBM Corp. and LoopBack contributors", | ||
| "license": "MIT" | ||
| } |
| const {NoEntity} = require('../models/no-entity.model'); | ||
| module.exports = { | ||
| // this model extends Model, not Entity | ||
| model: NoEntity, | ||
| pattern: 'CrudRest', | ||
| dataSource: 'db', | ||
| basePath: '/no-entities', | ||
| }; | ||
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.NoEntity = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const repository_1 = require("@loopback/repository"); | ||
| let NoEntity = class NoEntity extends repository_1.Model { | ||
| }; | ||
| exports.NoEntity = NoEntity; | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ id: true }), | ||
| tslib_1.__metadata("design:type", Number) | ||
| ], NoEntity.prototype, "id", void 0); | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ required: true }), | ||
| tslib_1.__metadata("design:type", String) | ||
| ], NoEntity.prototype, "name", void 0); | ||
| exports.NoEntity = NoEntity = tslib_1.__decorate([ | ||
| (0, repository_1.model)() | ||
| ], NoEntity); | ||
| //# sourceMappingURL=no-entity.model.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/no-entity.model.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| class ArtifactOne { | ||
| one() { | ||
| return 'ControllerOne.one()'; | ||
| } | ||
| } | ||
| exports.ArtifactOne = ArtifactOne; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/one'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactOne.prototype, "one", null); | ||
| class ArtifactTwo { | ||
| two() { | ||
| return 'ControllerTwo.two()'; | ||
| } | ||
| } | ||
| exports.ArtifactTwo = ArtifactTwo; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/two'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactTwo.prototype, "two", null); | ||
| function hello() { | ||
| return 'hello world'; | ||
| } | ||
| exports.hello = hello; | ||
| //# sourceMappingURL=multiple.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map |
| const Product = 'product' | ||
| module.exports = { | ||
| model: Product, | ||
| pattern: 'stub', | ||
| dataSource: 'db', | ||
| basePath: '/products', | ||
| }; | ||
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.Product = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const repository_1 = require("@loopback/repository"); | ||
| let Product = class Product extends repository_1.Entity { | ||
| }; | ||
| exports.Product = Product; | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ id: true }), | ||
| tslib_1.__metadata("design:type", Number) | ||
| ], Product.prototype, "id", void 0); | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ required: true }), | ||
| tslib_1.__metadata("design:type", String) | ||
| ], Product.prototype, "name", void 0); | ||
| exports.Product = Product = tslib_1.__decorate([ | ||
| (0, repository_1.model)() | ||
| ], Product); | ||
| //# sourceMappingURL=product.model.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/product.model.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2018. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.MyLifeCycleObserver = void 0; | ||
| /** | ||
| * An mock-up `LifeCycleObserver`. Please note that `start` and `stop` methods | ||
| * can be async or sync. | ||
| */ | ||
| class MyLifeCycleObserver { | ||
| constructor() { | ||
| this.status = ''; | ||
| } | ||
| /** | ||
| * Handling `start` event asynchronously | ||
| */ | ||
| async start() { | ||
| // Perform some work asynchronously | ||
| // await startSomeAsyncWork(...) | ||
| this.status = 'started'; | ||
| } | ||
| /** | ||
| * Handling `stop` event synchronously. | ||
| */ | ||
| stop() { | ||
| this.status = 'stopped'; | ||
| } | ||
| } | ||
| exports.MyLifeCycleObserver = MyLifeCycleObserver; | ||
| //# sourceMappingURL=lifecycle-observer.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/lifecycle-observer.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| class ArtifactOne { | ||
| one() { | ||
| return 'ControllerOne.one()'; | ||
| } | ||
| } | ||
| exports.ArtifactOne = ArtifactOne; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/one'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactOne.prototype, "one", null); | ||
| class ArtifactTwo { | ||
| two() { | ||
| return 'ControllerTwo.two()'; | ||
| } | ||
| } | ||
| exports.ArtifactTwo = ArtifactTwo; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/two'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactTwo.prototype, "two", null); | ||
| function hello() { | ||
| return 'hello world'; | ||
| } | ||
| exports.hello = hello; | ||
| //# sourceMappingURL=multiple.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map |
| { | ||
| "name": "boot-test-app", | ||
| "version": "1.0.0", | ||
| "description": "boot-test-app", | ||
| "keywords": [ | ||
| "loopback-application", | ||
| "loopback" | ||
| ], | ||
| "engines": { | ||
| "node": "20 || 22 || 24" | ||
| }, | ||
| "scripts": {}, | ||
| "repository": { | ||
| "type": "git" | ||
| }, | ||
| "author": "IBM Corp. and LoopBack contributors", | ||
| "license": "MIT" | ||
| } |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| class ArtifactOne { | ||
| one() { | ||
| return 'ControllerOne.one()'; | ||
| } | ||
| } | ||
| exports.ArtifactOne = ArtifactOne; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/one'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactOne.prototype, "one", null); | ||
| class ArtifactTwo { | ||
| two() { | ||
| return 'ControllerTwo.two()'; | ||
| } | ||
| } | ||
| exports.ArtifactTwo = ArtifactTwo; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/two'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactTwo.prototype, "two", null); | ||
| function hello() { | ||
| return 'hello world'; | ||
| } | ||
| exports.hello = hello; | ||
| //# sourceMappingURL=multiple.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| { | ||
| "name": "boot-test-app", | ||
| "version": "1.0.0", | ||
| "description": "boot-test-app", | ||
| "keywords": [ | ||
| "loopback-application", | ||
| "loopback" | ||
| ], | ||
| "engines": { | ||
| "node": "20 || 22 || 24" | ||
| }, | ||
| "scripts": {}, | ||
| "repository": { | ||
| "type": "git" | ||
| }, | ||
| "author": "IBM Corp. and LoopBack contributors", | ||
| "license": "MIT" | ||
| } |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.DbDataSource = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| class DbDataSource extends repository_1.juggler.DataSource { | ||
| constructor() { | ||
| super({ name: 'db' }); | ||
| } | ||
| } | ||
| exports.DbDataSource = DbDataSource; | ||
| DbDataSource.dataSourceName = 'db'; | ||
| //# sourceMappingURL=datasource.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/datasource.artifact.js.map |
+10
-10
| { | ||
| "name": "@loopback/boot", | ||
| "description": "A collection of Booters for LoopBack 4 Applications", | ||
| "version": "8.0.10", | ||
| "version": "8.0.11", | ||
| "license": "MIT", | ||
@@ -41,5 +41,5 @@ "main": "dist/index.js", | ||
| "dependencies": { | ||
| "@loopback/model-api-builder": "^7.0.10", | ||
| "@loopback/repository": "^8.0.9", | ||
| "@loopback/service-proxy": "^8.0.9", | ||
| "@loopback/model-api-builder": "^7.0.11", | ||
| "@loopback/repository": "^8.0.10", | ||
| "@loopback/service-proxy": "^8.0.10", | ||
| "@types/debug": "^4.1.12", | ||
@@ -51,11 +51,11 @@ "debug": "^4.4.3", | ||
| "devDependencies": { | ||
| "@loopback/build": "^12.0.9", | ||
| "@loopback/core": "^7.0.9", | ||
| "@loopback/build": "^12.0.10", | ||
| "@loopback/core": "^7.0.10", | ||
| "@loopback/eslint-config": "^16.0.1", | ||
| "@loopback/rest": "^15.0.10", | ||
| "@loopback/rest-crud": "^0.19.10", | ||
| "@loopback/testlab": "^8.0.9", | ||
| "@loopback/rest": "^15.0.11", | ||
| "@loopback/rest-crud": "^0.19.11", | ||
| "@loopback/testlab": "^8.0.10", | ||
| "@types/node": "^16.18.126" | ||
| }, | ||
| "gitHead": "77064f8efea6b713992283d653d8d46bdd724982" | ||
| "gitHead": "ae59e33540f12a77c652749c8266bb007302c24e" | ||
| } |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.DbDataSource = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| class DbDataSource extends repository_1.juggler.DataSource { | ||
| constructor() { | ||
| super({ name: 'db' }); | ||
| } | ||
| } | ||
| exports.DbDataSource = DbDataSource; | ||
| DbDataSource.dataSourceName = 'db'; | ||
| //# sourceMappingURL=datasource.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/datasource.artifact.js.map |
| const {NoEntity} = require('../models/no-entity.model'); | ||
| module.exports = { | ||
| // this model extends Model, not Entity | ||
| model: NoEntity, | ||
| pattern: 'CrudRest', | ||
| dataSource: 'db', | ||
| basePath: '/no-entities', | ||
| }; | ||
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.NoEntity = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const repository_1 = require("@loopback/repository"); | ||
| let NoEntity = class NoEntity extends repository_1.Model { | ||
| }; | ||
| exports.NoEntity = NoEntity; | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ id: true }), | ||
| tslib_1.__metadata("design:type", Number) | ||
| ], NoEntity.prototype, "id", void 0); | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ required: true }), | ||
| tslib_1.__metadata("design:type", String) | ||
| ], NoEntity.prototype, "name", void 0); | ||
| exports.NoEntity = NoEntity = tslib_1.__decorate([ | ||
| (0, repository_1.model)() | ||
| ], NoEntity); | ||
| //# sourceMappingURL=no-entity.model.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/no-entity.model.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.Model2 = exports.Model1 = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| class Model1 extends repository_1.Model { | ||
| } | ||
| exports.Model1 = Model1; | ||
| class Model2 extends repository_1.Entity { | ||
| } | ||
| exports.Model2 = Model2; | ||
| //# sourceMappingURL=multiple-models.model.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple-models.model.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.NoEntity = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const repository_1 = require("@loopback/repository"); | ||
| let NoEntity = class NoEntity extends repository_1.Model { | ||
| }; | ||
| exports.NoEntity = NoEntity; | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ id: true }), | ||
| tslib_1.__metadata("design:type", Number) | ||
| ], NoEntity.prototype, "id", void 0); | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ required: true }), | ||
| tslib_1.__metadata("design:type", String) | ||
| ], NoEntity.prototype, "name", void 0); | ||
| exports.NoEntity = NoEntity = tslib_1.__decorate([ | ||
| (0, repository_1.model)() | ||
| ], NoEntity); | ||
| //# sourceMappingURL=no-entity.model.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/no-entity.model.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.Product = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const repository_1 = require("@loopback/repository"); | ||
| let Product = class Product extends repository_1.Entity { | ||
| }; | ||
| exports.Product = Product; | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ id: true }), | ||
| tslib_1.__metadata("design:type", Number) | ||
| ], Product.prototype, "id", void 0); | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ required: true }), | ||
| tslib_1.__metadata("design:type", String) | ||
| ], Product.prototype, "name", void 0); | ||
| exports.Product = Product = tslib_1.__decorate([ | ||
| (0, repository_1.model)() | ||
| ], Product); | ||
| //# sourceMappingURL=product.model.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/product.model.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| class ArtifactOne { | ||
| one() { | ||
| return 'ControllerOne.one()'; | ||
| } | ||
| } | ||
| exports.ArtifactOne = ArtifactOne; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/one'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactOne.prototype, "one", null); | ||
| class ArtifactTwo { | ||
| two() { | ||
| return 'ControllerTwo.two()'; | ||
| } | ||
| } | ||
| exports.ArtifactTwo = ArtifactTwo; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/two'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactTwo.prototype, "two", null); | ||
| function hello() { | ||
| return 'hello world'; | ||
| } | ||
| exports.hello = hello; | ||
| //# sourceMappingURL=multiple.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map |
| const Product = 'product' | ||
| module.exports = { | ||
| model: Product, | ||
| pattern: 'stub', | ||
| dataSource: 'db', | ||
| basePath: '/products', | ||
| }; | ||
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.Product = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const repository_1 = require("@loopback/repository"); | ||
| let Product = class Product extends repository_1.Entity { | ||
| }; | ||
| exports.Product = Product; | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ id: true }), | ||
| tslib_1.__metadata("design:type", Number) | ||
| ], Product.prototype, "id", void 0); | ||
| tslib_1.__decorate([ | ||
| (0, repository_1.property)({ required: true }), | ||
| tslib_1.__metadata("design:type", String) | ||
| ], Product.prototype, "name", void 0); | ||
| exports.Product = Product = tslib_1.__decorate([ | ||
| (0, repository_1.model)() | ||
| ], Product); | ||
| //# sourceMappingURL=product.model.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/product.model.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2018. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.MyLifeCycleObserver = void 0; | ||
| /** | ||
| * An mock-up `LifeCycleObserver`. Please note that `start` and `stop` methods | ||
| * can be async or sync. | ||
| */ | ||
| class MyLifeCycleObserver { | ||
| constructor() { | ||
| this.status = ''; | ||
| } | ||
| /** | ||
| * Handling `start` event asynchronously | ||
| */ | ||
| async start() { | ||
| // Perform some work asynchronously | ||
| // await startSomeAsyncWork(...) | ||
| this.status = 'started'; | ||
| } | ||
| /** | ||
| * Handling `stop` event synchronously. | ||
| */ | ||
| stop() { | ||
| this.status = 'stopped'; | ||
| } | ||
| } | ||
| exports.MyLifeCycleObserver = MyLifeCycleObserver; | ||
| //# sourceMappingURL=lifecycle-observer.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/lifecycle-observer.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| class ArtifactOne { | ||
| one() { | ||
| return 'ControllerOne.one()'; | ||
| } | ||
| } | ||
| exports.ArtifactOne = ArtifactOne; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/one'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactOne.prototype, "one", null); | ||
| class ArtifactTwo { | ||
| two() { | ||
| return 'ControllerTwo.two()'; | ||
| } | ||
| } | ||
| exports.ArtifactTwo = ArtifactTwo; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/two'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactTwo.prototype, "two", null); | ||
| function hello() { | ||
| return 'hello world'; | ||
| } | ||
| exports.hello = hello; | ||
| //# sourceMappingURL=multiple.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| class ArtifactOne { | ||
| one() { | ||
| return 'ControllerOne.one()'; | ||
| } | ||
| } | ||
| exports.ArtifactOne = ArtifactOne; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/one'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactOne.prototype, "one", null); | ||
| class ArtifactTwo { | ||
| two() { | ||
| return 'ControllerTwo.two()'; | ||
| } | ||
| } | ||
| exports.ArtifactTwo = ArtifactTwo; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/two'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactTwo.prototype, "two", null); | ||
| function hello() { | ||
| return 'hello world'; | ||
| } | ||
| exports.hello = hello; | ||
| //# sourceMappingURL=multiple.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| class ArtifactOne { | ||
| one() { | ||
| return 'ControllerOne.one()'; | ||
| } | ||
| } | ||
| exports.ArtifactOne = ArtifactOne; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/one'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactOne.prototype, "one", null); | ||
| class ArtifactTwo { | ||
| two() { | ||
| return 'ControllerTwo.two()'; | ||
| } | ||
| } | ||
| exports.ArtifactTwo = ArtifactTwo; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/two'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactTwo.prototype, "two", null); | ||
| function hello() { | ||
| return 'hello world'; | ||
| } | ||
| exports.hello = hello; | ||
| //# sourceMappingURL=multiple.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map |
| { | ||
| "name": "boot-test-app", | ||
| "version": "1.0.0", | ||
| "description": "boot-test-app", | ||
| "keywords": [ | ||
| "loopback-application", | ||
| "loopback" | ||
| ], | ||
| "engines": { | ||
| "node": "20 || 22 || 24" | ||
| }, | ||
| "scripts": {}, | ||
| "repository": { | ||
| "type": "git" | ||
| }, | ||
| "author": "IBM Corp. and LoopBack contributors", | ||
| "license": "MIT" | ||
| } |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| class ArtifactOne { | ||
| one() { | ||
| return 'ControllerOne.one()'; | ||
| } | ||
| } | ||
| exports.ArtifactOne = ArtifactOne; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/one'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactOne.prototype, "one", null); | ||
| class ArtifactTwo { | ||
| two() { | ||
| return 'ControllerTwo.two()'; | ||
| } | ||
| } | ||
| exports.ArtifactTwo = ArtifactTwo; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/two'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactTwo.prototype, "two", null); | ||
| function hello() { | ||
| return 'hello world'; | ||
| } | ||
| exports.hello = hello; | ||
| //# sourceMappingURL=multiple.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.hello = exports.ArtifactTwo = exports.ArtifactOne = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| class ArtifactOne { | ||
| one() { | ||
| return 'ControllerOne.one()'; | ||
| } | ||
| } | ||
| exports.ArtifactOne = ArtifactOne; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/one'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactOne.prototype, "one", null); | ||
| class ArtifactTwo { | ||
| two() { | ||
| return 'ControllerTwo.two()'; | ||
| } | ||
| } | ||
| exports.ArtifactTwo = ArtifactTwo; | ||
| tslib_1.__decorate([ | ||
| (0, rest_1.get)('/two'), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", []), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ArtifactTwo.prototype, "two", null); | ||
| function hello() { | ||
| return 'hello world'; | ||
| } | ||
| exports.hello = hello; | ||
| //# sourceMappingURL=multiple.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/multiple.artifact.js.map |
| { | ||
| "name": "boot-test-app", | ||
| "version": "1.0.0", | ||
| "description": "boot-test-app", | ||
| "keywords": [ | ||
| "loopback-application", | ||
| "loopback" | ||
| ], | ||
| "engines": { | ||
| "node": "20 || 22 || 24" | ||
| }, | ||
| "scripts": {}, | ||
| "repository": { | ||
| "type": "git" | ||
| }, | ||
| "author": "IBM Corp. and LoopBack contributors", | ||
| "license": "MIT" | ||
| } |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.ServiceWithMethodInject = exports.ServiceWithPropertyInject = exports.ServiceWithConstructorInject = exports.NotBindableDateProvider = exports.NotBindableGreetingService = exports.DateProvider = exports.BindableGreetingService = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const core_1 = require("@loopback/core"); | ||
| let BindableGreetingService = class BindableGreetingService { | ||
| greet(whom = 'world') { | ||
| return Promise.resolve(`Hello ${whom}`); | ||
| } | ||
| }; | ||
| exports.BindableGreetingService = BindableGreetingService; | ||
| exports.BindableGreetingService = BindableGreetingService = tslib_1.__decorate([ | ||
| (0, core_1.injectable)({ | ||
| tags: { serviceType: 'local' }, | ||
| scope: core_1.BindingScope.SINGLETON, | ||
| }) | ||
| ], BindableGreetingService); | ||
| let DateProvider = class DateProvider { | ||
| value() { | ||
| return Promise.resolve(new Date()); | ||
| } | ||
| }; | ||
| exports.DateProvider = DateProvider; | ||
| exports.DateProvider = DateProvider = tslib_1.__decorate([ | ||
| (0, core_1.injectable)({ tags: { serviceType: 'local', name: 'CurrentDate' } }) | ||
| ], DateProvider); | ||
| class NotBindableGreetingService { | ||
| greet(whom = 'world') { | ||
| return Promise.resolve(`Hello ${whom}`); | ||
| } | ||
| } | ||
| exports.NotBindableGreetingService = NotBindableGreetingService; | ||
| class NotBindableDateProvider { | ||
| value() { | ||
| return Promise.resolve(new Date()); | ||
| } | ||
| } | ||
| exports.NotBindableDateProvider = NotBindableDateProvider; | ||
| let ServiceWithConstructorInject = class ServiceWithConstructorInject { | ||
| constructor(user) { | ||
| this.user = user; | ||
| } | ||
| }; | ||
| exports.ServiceWithConstructorInject = ServiceWithConstructorInject; | ||
| exports.ServiceWithConstructorInject = ServiceWithConstructorInject = tslib_1.__decorate([ | ||
| tslib_1.__param(0, (0, core_1.inject)('currentUser')), | ||
| tslib_1.__metadata("design:paramtypes", [String]) | ||
| ], ServiceWithConstructorInject); | ||
| class ServiceWithPropertyInject { | ||
| } | ||
| exports.ServiceWithPropertyInject = ServiceWithPropertyInject; | ||
| tslib_1.__decorate([ | ||
| (0, core_1.inject)('currentUser'), | ||
| tslib_1.__metadata("design:type", String) | ||
| ], ServiceWithPropertyInject.prototype, "user", void 0); | ||
| class ServiceWithMethodInject { | ||
| greet(user) { | ||
| return `Hello, ${user}`; | ||
| } | ||
| } | ||
| exports.ServiceWithMethodInject = ServiceWithMethodInject; | ||
| tslib_1.__decorate([ | ||
| tslib_1.__param(0, (0, core_1.inject)('currentUser')), | ||
| tslib_1.__metadata("design:type", Function), | ||
| tslib_1.__metadata("design:paramtypes", [String]), | ||
| tslib_1.__metadata("design:returntype", void 0) | ||
| ], ServiceWithMethodInject.prototype, "greet", null); | ||
| //# sourceMappingURL=bindable-classes.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/bindable-classes.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.DynamicDateProvider = void 0; | ||
| class DynamicDateProvider { | ||
| static value() { | ||
| return new Date(); | ||
| } | ||
| } | ||
| exports.DynamicDateProvider = DynamicDateProvider; | ||
| //# sourceMappingURL=service-dynamic-value-provider.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-dynamic-value-provider.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.GeocoderServiceProvider = void 0; | ||
| // A dummy service instance to make unit testing easier | ||
| const GeocoderSingleton = { | ||
| geocode(address) { | ||
| return Promise.resolve({ lat: 0, lng: 0 }); | ||
| }, | ||
| }; | ||
| class GeocoderServiceProvider { | ||
| value() { | ||
| return Promise.resolve(GeocoderSingleton); | ||
| } | ||
| } | ||
| exports.GeocoderServiceProvider = GeocoderServiceProvider; | ||
| //# sourceMappingURL=service-provider.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-provider.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.GreetingService = void 0; | ||
| // NOTE(bajtos) At the moment, ServiceBooter recognizes only service providers. | ||
| // This class is used by tests to verify that non-provider classes are ignored. | ||
| class GreetingService { | ||
| greet(whom = 'world') { | ||
| return Promise.resolve(`Hello ${whom}`); | ||
| } | ||
| } | ||
| exports.GreetingService = GreetingService; | ||
| //# sourceMappingURL=service-class.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-class.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.MyGlobalInterceptor = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const core_1 = require("@loopback/core"); | ||
| /** | ||
| * This class will be bound to the application as a global `Interceptor` during | ||
| * `boot` | ||
| */ | ||
| let MyGlobalInterceptor = class MyGlobalInterceptor { | ||
| /* | ||
| constructor() {} | ||
| */ | ||
| /** | ||
| * This method is used by LoopBack context to produce an interceptor function | ||
| * for the binding. | ||
| * | ||
| * @returns An interceptor function | ||
| */ | ||
| value() { | ||
| return this.intercept.bind(this); | ||
| } | ||
| /** | ||
| * The logic to intercept an invocation | ||
| * @param invocationCtx - Invocation context | ||
| * @param next - A function to invoke next interceptor or the target method | ||
| */ | ||
| async intercept(invocationCtx, next) { | ||
| // eslint-disable-next-line no-useless-catch | ||
| try { | ||
| // Add pre-invocation logic here | ||
| const result = await next(); | ||
| // Add post-invocation logic here | ||
| return result; | ||
| } | ||
| catch (err) { | ||
| // Add error handling logic here | ||
| throw err; | ||
| } | ||
| } | ||
| }; | ||
| exports.MyGlobalInterceptor = MyGlobalInterceptor; | ||
| exports.MyGlobalInterceptor = MyGlobalInterceptor = tslib_1.__decorate([ | ||
| (0, core_1.globalInterceptor)('auth', { tags: { name: 'myGlobalInterceptor' } }) | ||
| ], MyGlobalInterceptor); | ||
| //# sourceMappingURL=interceptor.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/interceptor.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.MyInterceptor = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const core_1 = require("@loopback/core"); | ||
| /** | ||
| * This class will be bound to the application as a global `Interceptor` during | ||
| * `boot` | ||
| */ | ||
| let MyInterceptor = class MyInterceptor { | ||
| /* | ||
| constructor() {} | ||
| */ | ||
| /** | ||
| * This method is used by LoopBack context to produce an interceptor function | ||
| * for the binding. | ||
| * | ||
| * @returns An interceptor function | ||
| */ | ||
| value() { | ||
| return this.intercept.bind(this); | ||
| } | ||
| /** | ||
| * The logic to intercept an invocation | ||
| * @param invocationCtx - Invocation context | ||
| * @param next - A function to invoke next interceptor or the target method | ||
| */ | ||
| async intercept(invocationCtx, next) { | ||
| // eslint-disable-next-line no-useless-catch | ||
| try { | ||
| // Add pre-invocation logic here | ||
| const result = await next(); | ||
| // Add post-invocation logic here | ||
| return result; | ||
| } | ||
| catch (err) { | ||
| // Add error handling logic here | ||
| throw err; | ||
| } | ||
| } | ||
| }; | ||
| exports.MyInterceptor = MyInterceptor; | ||
| exports.MyInterceptor = MyInterceptor = tslib_1.__decorate([ | ||
| (0, core_1.injectable)({ tags: { namespace: 'interceptors', name: 'myInterceptor' } }) | ||
| ], MyInterceptor); | ||
| //# sourceMappingURL=non-global-interceptor.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/non-global-interceptor.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| { | ||
| "name": "boot-test-app", | ||
| "version": "1.0.0", | ||
| "description": "boot-test-app", | ||
| "keywords": [ | ||
| "loopback-application", | ||
| "loopback" | ||
| ], | ||
| "engines": { | ||
| "node": "20 || 22 || 24" | ||
| }, | ||
| "scripts": {}, | ||
| "repository": { | ||
| "type": "git" | ||
| }, | ||
| "author": "IBM Corp. and LoopBack contributors", | ||
| "license": "MIT" | ||
| } |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.BooterApp = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| const rest_1 = require("@loopback/rest"); | ||
| const service_proxy_1 = require("@loopback/service-proxy"); | ||
| const __1 = require("../.."); | ||
| class BooterApp extends (0, __1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) { | ||
| constructor(options) { | ||
| super(options); | ||
| this.projectRoot = __dirname; | ||
| } | ||
| } | ||
| exports.BooterApp = BooterApp; | ||
| //# sourceMappingURL=application.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/application.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.DbDataSource = void 0; | ||
| const repository_1 = require("@loopback/repository"); | ||
| class DbDataSource extends repository_1.juggler.DataSource { | ||
| constructor() { | ||
| super({ name: 'db' }); | ||
| } | ||
| } | ||
| exports.DbDataSource = DbDataSource; | ||
| DbDataSource.dataSourceName = 'db'; | ||
| //# sourceMappingURL=datasource.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/datasource.artifact.js.map |
| "use strict"; | ||
| // Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. | ||
| // Node module: @loopback/boot | ||
| // This file is licensed under the MIT License. | ||
| // License text available at https://opensource.org/licenses/MIT | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.GeocoderServiceProvider = void 0; | ||
| // A dummy service instance to make unit testing easier | ||
| const GeocoderSingleton = { | ||
| geocode(address) { | ||
| return Promise.resolve({ lat: 0, lng: 0 }); | ||
| }, | ||
| }; | ||
| class GeocoderServiceProvider { | ||
| value() { | ||
| return Promise.resolve(GeocoderSingleton); | ||
| } | ||
| } | ||
| exports.GeocoderServiceProvider = GeocoderServiceProvider; | ||
| //# sourceMappingURL=service-provider.artifact.js.map | ||
| //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/packages/boot/dist/__tests__/fixtures/service-provider.artifact.js.map |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
227452
0