@routr/location 2.0.8-alpha.16 → 2.0.8-alpha.18

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 +2 -1
  2. package/package.json +5 -5
package/dist/helper.js CHANGED
@@ -28,6 +28,7 @@ const processor_1 = require("@routr/processor");
28
28
  // Also consider: https://github.com/fonoster/routr/blob/ee5d339888344013939d06c734385f17f0cd75c2/mod/registrar/utils.js#L116
29
29
  // and https://github.com/fonoster/routr/blob/ee5d339888344013939d06c734385f17f0cd75c2/mod/registrar/utils.js#L131
30
30
  const createRoute = (request) => {
31
+ var _a;
31
32
  const uri = request.message.contact.address.uri;
32
33
  const sessionCount = processor_1.Extensions.getHeaderValue(request, common_1.CommonTypes.ExtraHeader.SESSION_COUNT)
33
34
  ? parseInt(processor_1.Extensions.getHeaderValue(request, common_1.CommonTypes.ExtraHeader.SESSION_COUNT))
@@ -37,7 +38,7 @@ const createRoute = (request) => {
37
38
  user: uri.user,
38
39
  host: uri.host,
39
40
  port: uri.port,
40
- transport: uri.transportParam.toLowerCase(),
41
+ transport: (_a = uri.transportParam) === null || _a === void 0 ? void 0 : _a.toUpperCase(),
41
42
  registeredOn: Date.now(),
42
43
  sessionCount,
43
44
  expires: processor_1.Target.getTargetExpires(request),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/location",
3
- "version": "2.0.8-alpha.16",
3
+ "version": "2.0.8-alpha.18",
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,9 +35,9 @@
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.8-alpha.16",
39
- "@routr/processor": "^2.0.8-alpha.16",
40
- "ajv": "^8.11.2",
38
+ "@routr/common": "^2.0.8-alpha.18",
39
+ "@routr/processor": "^2.0.8-alpha.18",
40
+ "ajv": "^6.12.6",
41
41
  "fp-ts": "^2.11.8",
42
42
  "redis": "^4.0.4"
43
43
  },
@@ -48,5 +48,5 @@
48
48
  "bugs": {
49
49
  "url": "https://github.com/fonoster/routr/issues"
50
50
  },
51
- "gitHead": "78e8c80cd1c1a5b045d83cce6c4ec58e07618314"
51
+ "gitHead": "66ce6b3ed832bb8c549d344b3367aceed4b6da8f"
52
52
  }