@routr/registry 2.0.6-alpha.2 → 2.0.7-alpha.0

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/service.js CHANGED
@@ -66,7 +66,7 @@ function registryService(config) {
66
66
  // Create a list of trunks in the Store
67
67
  const trunksInStore = (yield store.list()).map((r) => r.trunkRef);
68
68
  const registryInvocations = resources
69
- .filter((resources) => !trunksInStore.includes(resources.metadata.ref))
69
+ .filter((resources) => !trunksInStore.includes(resources.ref))
70
70
  .map((resource) => __awaiter(this, void 0, void 0, function* () {
71
71
  const registrationRequestInput = (0, utils_1.registrationRequestInputFromTrunk)(yield (0, utils_1.convertResourceToTrunk)(dataAPI, resource), config);
72
72
  const request = (0, request_1.default)(registrationRequestInput);
package/dist/utils.js CHANGED
@@ -98,7 +98,7 @@ const convertResourceToTrunk = (dataAPI, resource) => __awaiter(void 0, void 0,
98
98
  const cred = yield dataAPI.get((_c = trunkSpec.outbound) === null || _c === void 0 ? void 0 : _c.credentialsRef);
99
99
  const usernameAndPassword = cred === null || cred === void 0 ? void 0 : cred.spec.credentials;
100
100
  return {
101
- ref: resource.metadata.ref,
101
+ ref: resource.ref,
102
102
  name: resource.metadata.name,
103
103
  region: metadata.region,
104
104
  host: uri.host,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/registry",
3
- "version": "2.0.6-alpha.2",
3
+ "version": "2.0.7-alpha.0",
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.2",
38
- "@routr/processor": "^2.0.6-alpha.2",
37
+ "@routr/common": "^2.0.7-alpha.0",
38
+ "@routr/processor": "^2.0.7-alpha.0",
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": "d933de33862f322730e0b3dd01ec3c009d4f2fad"
55
+ "gitHead": "1c08d04c570d1fa156729a8f61e43c3c51b68f96"
56
56
  }