UNPKG

861 BJavaScriptView Raw
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
6Object.defineProperty(exports, "__esModule", { value: true });
7exports.GeocoderServiceProvider = void 0;
8// A dummy service instance to make unit testing easier
9const GeocoderSingleton = {
10 geocode(address) {
11 return Promise.resolve({ lat: 0, lng: 0 });
12 },
13};
14class GeocoderServiceProvider {
15 value() {
16 return Promise.resolve(GeocoderSingleton);
17 }
18}
19exports.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
\No newline at end of file