@routr/location 2.0.5-alpha.6 → 2.0.5-alpha.7

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.
Files changed (2) hide show
  1. package/dist/helper.js +4 -2
  2. package/package.json +4 -3
package/dist/helper.js CHANGED
@@ -11,15 +11,17 @@ 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;
14
15
  return {
15
- edgePortRef: request.edge_port_ref,
16
+ edgePortRef: request.edgePortRef,
16
17
  user: uri.user,
17
18
  host: uri.host,
18
19
  port: uri.port,
19
20
  transport: uri.transport,
20
21
  registeredOn: Date.now(),
21
22
  sessionCount: processor_1.Extensions.getHeaderValue(request, "x-session-count") || -1,
22
- expires: processor_2.Target.getTargetExpires(request)
23
+ expires: processor_2.Target.getTargetExpires(request),
24
+ listeningPoint: listeningPoint
23
25
  };
24
26
  };
25
27
  exports.createRoute = createRoute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/location",
3
- "version": "2.0.5-alpha.6",
3
+ "version": "2.0.5-alpha.7",
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,7 +26,8 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@grpc/grpc-js": "^1.5.9",
29
- "@routr/processor": "^2.0.5-alpha.6",
29
+ "@routr/common": "^2.0.5-alpha.7",
30
+ "@routr/processor": "^2.0.5-alpha.7",
30
31
  "ajv": "^6.12.6",
31
32
  "fp-ts": "^2.11.8",
32
33
  "redis": "^4.0.4"
@@ -38,5 +39,5 @@
38
39
  "bugs": {
39
40
  "url": "https://github.com/fonoster/routr/issues"
40
41
  },
41
- "gitHead": "ac4963e735fbc4ad3045379463796137e650509c"
42
+ "gitHead": "690b6fc677009c8c416c7c737b1cc5360b9ed7c7"
42
43
  }