@routr/connect 2.0.8-alpha.35 → 2.0.8-alpha.36
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/handlers.js +2 -2
- package/dist/service.js +1 -1
- package/package.json +4 -4
package/dist/handlers.js
CHANGED
@@ -71,7 +71,7 @@ const handleRegister = (apiClient, location) => {
|
|
71
71
|
exports.handleRegister = handleRegister;
|
72
72
|
// TODO: Needs test
|
73
73
|
const handleRegistry = (req, res) => {
|
74
|
-
const route =
|
74
|
+
const route = location_1.Helper.createRouteFromLastMessage(req);
|
75
75
|
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));
|
76
76
|
};
|
77
77
|
exports.handleRegistry = handleRegistry;
|
@@ -80,7 +80,7 @@ const handleRequest = (location, apiClient) => (request, res) => __awaiter(void
|
|
80
80
|
try {
|
81
81
|
const req = common_1.Environment.ENFORCE_E164 ? enforceE164(request) : request;
|
82
82
|
const route = processor_1.Extensions.getHeaderValue(req, common_1.CommonTypes.ExtraHeader.EDGEPORT_REF)
|
83
|
-
?
|
83
|
+
? location_1.Helper.createRouteFromLastMessage(req)
|
84
84
|
: yield (0, router_1.router)(location, apiClient)(req);
|
85
85
|
if (!route)
|
86
86
|
return res.sendNotFound();
|
package/dist/service.js
CHANGED
@@ -76,7 +76,7 @@ function ConnectProcessor(config) {
|
|
76
76
|
break;
|
77
77
|
case common_1.Method.BYE:
|
78
78
|
case common_1.Method.ACK:
|
79
|
-
res.send((0, tailor_1.tailor)(
|
79
|
+
res.send((0, tailor_1.tailor)(location_1.Helper.createRouteFromLastMessage(req), req));
|
80
80
|
break;
|
81
81
|
default:
|
82
82
|
(0, handlers_1.handleRequest)(location, common_2.CommonConnect.apiClient({ apiAddr: config.apiAddr }))(req, res);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@routr/connect",
|
3
|
-
"version": "2.0.8-alpha.
|
3
|
+
"version": "2.0.8-alpha.36",
|
4
4
|
"description": "Default processor",
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
@@ -30,8 +30,8 @@
|
|
30
30
|
"@opentelemetry/sdk-trace-node": "^1.0.4",
|
31
31
|
"@opentelemetry/semantic-conventions": "^1.0.4",
|
32
32
|
"@routr/common": "^2.0.8-alpha.33",
|
33
|
-
"@routr/location": "^2.0.8-alpha.
|
34
|
-
"@routr/processor": "^2.0.8-alpha.
|
33
|
+
"@routr/location": "^2.0.8-alpha.36",
|
34
|
+
"@routr/processor": "^2.0.8-alpha.36"
|
35
35
|
},
|
36
36
|
"files": [
|
37
37
|
"dist"
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"bugs": {
|
47
47
|
"url": "https://github.com/fonoster/routr/issues"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "88b5c909892c32a5663ee3fee30910df2ecaf2aa"
|
50
50
|
}
|