@routr/registry 2.0.6-alpha.1 → 2.0.6-alpha.2

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/errors.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as grpc from "@grpc/grpc-js";
2
- export declare type InvalidConfiguration = InvalidSchemaConfiguration;
2
+ export type InvalidConfiguration = InvalidSchemaConfiguration;
3
3
  /**
4
4
  * Error thrown when the Registry service finds a bad configuration.
5
5
  */
@@ -49,23 +49,30 @@ class RedisStore {
49
49
  }
50
50
  /** @inheritdoc */
51
51
  list() {
52
- var e_1, _a;
52
+ var _a, e_1, _b, _c;
53
53
  return __awaiter(this, void 0, void 0, function* () {
54
54
  const entries = [];
55
55
  try {
56
56
  // eslint-disable-next-line no-loops/no-loops
57
- for (var _b = __asyncValues(yield this.client.scanIterator({
57
+ for (var _d = true, _e = __asyncValues(yield this.client.scanIterator({
58
58
  CURSOR: 0,
59
59
  MATCH: `${KEY_PREFIX}:*`
60
- })), _c; _c = yield _b.next(), !_c.done;) {
61
- const k = _c.value;
62
- entries.push(JSON.parse(yield this.client.get(k)));
60
+ })), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
61
+ _c = _f.value;
62
+ _d = false;
63
+ try {
64
+ const k = _c;
65
+ entries.push(JSON.parse(yield this.client.get(k)));
66
+ }
67
+ finally {
68
+ _d = true;
69
+ }
63
70
  }
64
71
  }
65
72
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
73
  finally {
67
74
  try {
68
- if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
75
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
69
76
  }
70
77
  finally { if (e_1) throw e_1.error; }
71
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/registry",
3
- "version": "2.0.6-alpha.1",
3
+ "version": "2.0.6-alpha.2",
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.6-alpha.1",
38
- "@routr/processor": "^2.0.6-alpha.1",
37
+ "@routr/common": "^2.0.6-alpha.2",
38
+ "@routr/processor": "^2.0.6-alpha.2",
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": "389513636bbac9ab7ffbe14f1b8ecdb5bb93bad4"
55
+ "gitHead": "d933de33862f322730e0b3dd01ec3c009d4f2fad"
56
56
  }