@routr/connect 2.13.6 → 2.13.9
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 +3 -5
- package/package.json +5 -5
package/dist/service.js
CHANGED
@@ -61,7 +61,8 @@ function connectProcessor(config) {
|
|
61
61
|
// Remove the proxy and overwrite the contact with the sender info
|
62
62
|
return res.send(
|
63
63
|
// NOTE: We should consider making the overwriteContactWithSenderInfo an Agent/Peer level alteration
|
64
|
-
|
64
|
+
// pipe(req, A.overwriteContactWithSenderInfo, A.removeTopVia)
|
65
|
+
(0, function_1.pipe)(req, processor_1.Alterations.removeTopVia));
|
65
66
|
}
|
66
67
|
switch (req.method) {
|
67
68
|
case common_1.Method.PUBLISH:
|
@@ -80,10 +81,7 @@ function connectProcessor(config) {
|
|
80
81
|
break;
|
81
82
|
case common_1.Method.BYE:
|
82
83
|
case common_1.Method.ACK:
|
83
|
-
res.send((0, function_1.pipe)(req, processor_1.Alterations.decreaseMaxForwards,
|
84
|
-
// The order of the following alterations is important
|
85
|
-
// since addSelfViaUsingTheRouteHeaders uses the route headers
|
86
|
-
processor_1.Alterations.addSelfViaUsingTheRouteHeaders, processor_1.Alterations.removeSelfRoutes));
|
84
|
+
res.send((0, function_1.pipe)(req, processor_1.Alterations.decreaseMaxForwards, processor_1.Alterations.addSelfViaUsingExternalAddrs, processor_1.Alterations.removeSelfRoutes));
|
87
85
|
break;
|
88
86
|
default:
|
89
87
|
(0, request_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.13.
|
3
|
+
"version": "2.13.9",
|
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.13.
|
32
|
-
"@routr/location": "^2.13.
|
33
|
-
"@routr/processor": "^2.13.
|
31
|
+
"@routr/common": "^2.13.7",
|
32
|
+
"@routr/location": "^2.13.9",
|
33
|
+
"@routr/processor": "^2.13.9",
|
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": "1759162c264d75d7f7cc161534b3bae65818d331"
|
53
53
|
}
|