@routr/location 2.0.9 → 2.0.13
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/index.d.ts +5 -2
- package/dist/index.js +7 -1
- package/dist/runner.js +0 -0
- package/dist/service.d.ts +1 -1
- package/dist/service.js +3 -3
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { getConfig } from "./config/get_config";
|
|
2
|
+
import { CacheProvider, ILocationService, LocationConfig } from "./types";
|
|
3
|
+
import locationService from "./service";
|
|
1
4
|
import LocationClient from "./client";
|
|
2
|
-
import { ILocationService } from "./types";
|
|
3
5
|
export * as Helper from "./helper";
|
|
4
6
|
export * as Utils from "./utils";
|
|
5
7
|
export * from "./errors";
|
|
6
|
-
export { LocationClient, ILocationService };
|
|
8
|
+
export { LocationClient, ILocationService, getConfig };
|
|
9
|
+
export { LocationConfig, CacheProvider, locationService };
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
29
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.LocationClient = exports.Utils = exports.Helper = void 0;
|
|
32
|
+
exports.locationService = exports.CacheProvider = exports.getConfig = exports.LocationClient = exports.Utils = exports.Helper = void 0;
|
|
33
33
|
/*
|
|
34
34
|
* Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
|
|
35
35
|
* http://github.com/fonoster/routr
|
|
@@ -48,6 +48,12 @@ exports.LocationClient = exports.Utils = exports.Helper = void 0;
|
|
|
48
48
|
* See the License for the specific language governing permissions and
|
|
49
49
|
* limitations under the License.
|
|
50
50
|
*/
|
|
51
|
+
const get_config_1 = require("./config/get_config");
|
|
52
|
+
Object.defineProperty(exports, "getConfig", { enumerable: true, get: function () { return get_config_1.getConfig; } });
|
|
53
|
+
const types_1 = require("./types");
|
|
54
|
+
Object.defineProperty(exports, "CacheProvider", { enumerable: true, get: function () { return types_1.CacheProvider; } });
|
|
55
|
+
const service_1 = __importDefault(require("./service"));
|
|
56
|
+
exports.locationService = service_1.default;
|
|
51
57
|
const client_1 = __importDefault(require("./client"));
|
|
52
58
|
exports.LocationClient = client_1.default;
|
|
53
59
|
exports.Helper = __importStar(require("./helper"));
|
package/dist/runner.js
CHANGED
|
File without changes
|
package/dist/service.d.ts
CHANGED
package/dist/service.js
CHANGED
|
@@ -24,10 +24,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
24
|
const types_1 = require("./types");
|
|
25
25
|
const common_1 = require("@routr/common");
|
|
26
26
|
const utils_1 = require("./utils");
|
|
27
|
+
const logger_1 = require("@fonoster/logger");
|
|
27
28
|
const location_1 = __importDefault(require("./location"));
|
|
28
29
|
const memory_store_1 = __importDefault(require("./memory_store"));
|
|
29
30
|
const redis_store_1 = __importDefault(require("./redis_store"));
|
|
30
|
-
const logger_1 = require("@fonoster/logger");
|
|
31
31
|
const logger = (0, logger_1.getLogger)({ service: "location", filePath: __filename });
|
|
32
32
|
const allowedParameters = ["host", "port", "username", "password", "secure"];
|
|
33
33
|
/**
|
|
@@ -35,7 +35,7 @@ const allowedParameters = ["host", "port", "username", "password", "secure"];
|
|
|
35
35
|
*
|
|
36
36
|
* @param {LocationConfig} config - Service configuration
|
|
37
37
|
*/
|
|
38
|
-
function
|
|
38
|
+
function locationService(config) {
|
|
39
39
|
var _a;
|
|
40
40
|
const { bindAddr, cache } = config;
|
|
41
41
|
let store;
|
|
@@ -48,4 +48,4 @@ function LocationService(config) {
|
|
|
48
48
|
(0, common_1.createService)((0, utils_1.getServiceInfo)(bindAddr, new location_1.default(store)));
|
|
49
49
|
logger.info(`using ${cache.provider} as cache provider`);
|
|
50
50
|
}
|
|
51
|
-
exports.default =
|
|
51
|
+
exports.default = locationService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/location",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"description": "Creates and maintains a list of routes to all registered endpoints",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@opentelemetry/sdk-trace-base": "^1.0.4",
|
|
36
36
|
"@opentelemetry/sdk-trace-node": "^1.0.4",
|
|
37
37
|
"@opentelemetry/semantic-conventions": "^1.0.4",
|
|
38
|
-
"@routr/common": "^2.0.
|
|
39
|
-
"@routr/processor": "^2.0.
|
|
38
|
+
"@routr/common": "^2.0.13",
|
|
39
|
+
"@routr/processor": "^2.0.13",
|
|
40
40
|
"ajv": "^6.12.6",
|
|
41
41
|
"fp-ts": "^2.11.8",
|
|
42
42
|
"redis": "^4.0.4"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"bugs": {
|
|
49
49
|
"url": "https://github.com/fonoster/routr/issues"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "476d11cfb4fd3dc9847a0829cae6fece84d048df"
|
|
52
52
|
}
|