@routr/common 2.1.0 → 2.1.11
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.
|
@@ -52,7 +52,7 @@ message Route {
|
|
|
52
52
|
repeated string external_addrs = 11;
|
|
53
53
|
// During route creation, an endpoint can request to add labels than can later be
|
|
54
54
|
// used as selectors. For example, a Softphone can add a label `priority=1` to indicate
|
|
55
|
-
// that it is the
|
|
55
|
+
// that it is the preferred endpoint for the given AOR.
|
|
56
56
|
map<string, string> labels = 12;
|
|
57
57
|
}
|
|
58
58
|
|
package/dist/service.js
CHANGED
|
@@ -59,7 +59,7 @@ const loadOptions = {
|
|
|
59
59
|
};
|
|
60
60
|
// TODO: Get version from the proto or package
|
|
61
61
|
const API_VERSION = "v2beta1";
|
|
62
|
-
// We
|
|
62
|
+
// We currently don't have a way to obtain the proto type
|
|
63
63
|
exports.PROCESSOR_OBJECT_PROTO = getObjectProto({
|
|
64
64
|
name: "processor",
|
|
65
65
|
version: API_VERSION,
|
|
@@ -50,7 +50,7 @@ const verifier = (verifierAddr) => {
|
|
|
50
50
|
const client = new grpc_client_1.VERIFIER_PROTO.Verifier(verifierAddr, grpc.credentials.createInsecure());
|
|
51
51
|
return new Promise((resolve, reject) => {
|
|
52
52
|
client.sendMessage({ token }, (err, response) => {
|
|
53
|
-
if ((err === null || err === void 0 ? void 0 : err.code) ===
|
|
53
|
+
if ((err === null || err === void 0 ? void 0 : err.code) === grpc.status.UNAVAILABLE) {
|
|
54
54
|
return reject(new errors_1.ServiceUnavailableError(verifierAddr));
|
|
55
55
|
}
|
|
56
56
|
else if (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/common",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.11",
|
|
4
4
|
"description": "Common package",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/js-yaml": "^4.0.5"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "7c3161336c29feb497a256018a08b65c1dedd0fd"
|
|
59
59
|
}
|