@routr/connect 2.0.33 → 2.1.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/access.js +1 -1
- package/dist/handlers.js +0 -1
- package/package.json +5 -5
package/dist/access.js
CHANGED
@@ -79,7 +79,7 @@ const checkAccessFromPSTN = (apiClient, request, callee) => __awaiter(void 0, vo
|
|
79
79
|
if (callee.trunk.ref !== trunk.ref) {
|
80
80
|
return common_1.Auth.createForbideenResponse();
|
81
81
|
}
|
82
|
-
// Verify that the IP is
|
82
|
+
// Verify that the IP is allowlist which means getting the access control list for the trunk
|
83
83
|
if (trunk.accessControlList) {
|
84
84
|
try {
|
85
85
|
const allow = trunk.accessControlList.allow.filter((net) => {
|
package/dist/handlers.js
CHANGED
@@ -97,7 +97,6 @@ const handleRegistry = (req, res) => {
|
|
97
97
|
res.send((0, function_1.pipe)(req, processor_1.Alterations.addSelfVia(route), processor_1.Alterations.decreaseMaxForwards, processor_1.Alterations.removeAuthorization, processor_1.Alterations.removeSelfRoutes, processor_1.Alterations.removeXEdgePortRef));
|
98
98
|
};
|
99
99
|
exports.handleRegistry = handleRegistry;
|
100
|
-
// TODO: If request has X-Connect-Token then validate the JWT value and continue
|
101
100
|
const handleRequest = (location, apiClient) => (request, res) => __awaiter(void 0, void 0, void 0, function* () {
|
102
101
|
try {
|
103
102
|
const req = common_1.Environment.ENFORCE_E164 ? enforceE164(request) : request;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@routr/connect",
|
3
|
-
"version": "2.0
|
3
|
+
"version": "2.1.0",
|
4
4
|
"description": "Default processor",
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
@@ -28,9 +28,9 @@
|
|
28
28
|
"@opentelemetry/sdk-trace-base": "^1.0.4",
|
29
29
|
"@opentelemetry/sdk-trace-node": "^1.0.4",
|
30
30
|
"@opentelemetry/semantic-conventions": "^1.0.4",
|
31
|
-
"@routr/common": "^2.0
|
32
|
-
"@routr/location": "^2.0
|
33
|
-
"@routr/processor": "^2.0
|
31
|
+
"@routr/common": "^2.1.0",
|
32
|
+
"@routr/location": "^2.1.0",
|
33
|
+
"@routr/processor": "^2.1.0",
|
34
34
|
"jsonwebtoken": "^9.0.0"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"bugs": {
|
50
50
|
"url": "https://github.com/fonoster/routr/issues"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "0e75c7950157dcb7701082655259a87da322c29d"
|
53
53
|
}
|