@routr/location 2.0.5-alpha.7 → 2.0.5-alpha.8
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/client.js +2 -1
- package/dist/helper.js +1 -2
- package/package.json +4 -4
package/dist/client.js
CHANGED
|
@@ -31,8 +31,9 @@ class Location {
|
|
|
31
31
|
return container(this, request, this.addRoute.name);
|
|
32
32
|
}
|
|
33
33
|
findRoutes(request) {
|
|
34
|
+
var _a;
|
|
34
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
return container(this, request, this.findRoutes.name);
|
|
36
|
+
return ((_a = (yield container(this, request, this.findRoutes.name))) === null || _a === void 0 ? void 0 : _a.routes) || [];
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
39
|
removeRoutes(request) {
|
package/dist/helper.js
CHANGED
|
@@ -11,7 +11,6 @@ const processor_2 = require("@routr/processor");
|
|
|
11
11
|
// and https://github.com/fonoster/routr/blob/ee5d339888344013939d06c734385f17f0cd75c2/mod/registrar/utils.js#L131
|
|
12
12
|
const createRoute = (request) => {
|
|
13
13
|
const uri = request.message.contact.address.uri;
|
|
14
|
-
const listeningPoint = request.message.listeningPoint;
|
|
15
14
|
return {
|
|
16
15
|
edgePortRef: request.edgePortRef,
|
|
17
16
|
user: uri.user,
|
|
@@ -21,7 +20,7 @@ const createRoute = (request) => {
|
|
|
21
20
|
registeredOn: Date.now(),
|
|
22
21
|
sessionCount: processor_1.Extensions.getHeaderValue(request, "x-session-count") || -1,
|
|
23
22
|
expires: processor_2.Target.getTargetExpires(request),
|
|
24
|
-
listeningPoint: listeningPoint
|
|
23
|
+
listeningPoint: request.listeningPoint
|
|
25
24
|
};
|
|
26
25
|
};
|
|
27
26
|
exports.createRoute = createRoute;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/location",
|
|
3
|
-
"version": "2.0.5-alpha.
|
|
3
|
+
"version": "2.0.5-alpha.8",
|
|
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",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@grpc/grpc-js": "^1.5.9",
|
|
29
|
-
"@routr/common": "^2.0.5-alpha.
|
|
30
|
-
"@routr/processor": "^2.0.5-alpha.
|
|
29
|
+
"@routr/common": "^2.0.5-alpha.8",
|
|
30
|
+
"@routr/processor": "^2.0.5-alpha.8",
|
|
31
31
|
"ajv": "^6.12.6",
|
|
32
32
|
"fp-ts": "^2.11.8",
|
|
33
33
|
"redis": "^4.0.4"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"bugs": {
|
|
40
40
|
"url": "https://github.com/fonoster/routr/issues"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "e093bd9f05f7600a419f4e3d9eb41643b3682218"
|
|
43
43
|
}
|