@routr/registry 2.0.8-alpha.27 → 2.0.8-alpha.29

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/service.js +1 -1
  2. package/package.json +4 -4
package/dist/service.js CHANGED
@@ -87,7 +87,7 @@ function registryService(config) {
87
87
  // Makes sure we send register before the last register expires
88
88
  const retentionTime = ((_e = (_c = (_b = message.contact) === null || _b === void 0 ? void 0 : _b.expires) !== null && _c !== void 0 ? _c : (_d = message.expires) === null || _d === void 0 ? void 0 : _d.expires) !== null && _e !== void 0 ? _e : types_1.DEFAULT_EXPIRES) - registerInterval;
89
89
  // TODO: Refactor to use ResponseType instead of string
90
- const status = message.responseType.toString() == "OK"
90
+ const status = message.responseType == common_1.CommonTypes.ResponseType.OK
91
91
  ? types_1.RegistrationEntryStatus.REGISTERED
92
92
  : types_1.RegistrationEntryStatus.QUARANTINE;
93
93
  // Storing trunk in registry with status and retention time
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/registry",
3
- "version": "2.0.8-alpha.27",
3
+ "version": "2.0.8-alpha.29",
4
4
  "description": "Sends trunks registrations and maintains their bindings",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/routr#readme",
@@ -34,8 +34,8 @@
34
34
  "@opentelemetry/sdk-trace-base": "^1.0.4",
35
35
  "@opentelemetry/sdk-trace-node": "^1.0.4",
36
36
  "@opentelemetry/semantic-conventions": "^1.0.4",
37
- "@routr/common": "^2.0.8-alpha.27",
38
- "@routr/processor": "^2.0.8-alpha.27",
37
+ "@routr/common": "^2.0.8-alpha.29",
38
+ "@routr/processor": "^2.0.8-alpha.29",
39
39
  "ajv": "^6.12.6",
40
40
  "fp-ts": "^2.11.8",
41
41
  "pb-util": "^1.0.3",
@@ -52,5 +52,5 @@
52
52
  "devDependencies": {
53
53
  "@types/uniqid": "^5.3.2"
54
54
  },
55
- "gitHead": "d6d51363e232a1a581f34236df9408422d6c68ee"
55
+ "gitHead": "f273cfb052bd734a906ab97011e1338ceac53111"
56
56
  }