@routr/connect 2.2.0 → 2.2.1
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 -2
- package/dist/tailor.js +5 -1
- package/package.json +2 -2
package/dist/service.js
CHANGED
@@ -57,8 +57,9 @@ function connectProcessor(config) {
|
|
57
57
|
// If it is a response simply forwards to uac
|
58
58
|
if (processor_1.Helper.isTypeResponse(req)) {
|
59
59
|
// Remove the proxy and overwrite the contact with the sender info
|
60
|
-
|
61
|
-
|
60
|
+
return res.send(
|
61
|
+
// NOTE: We should consider making the overwriteContactWithSenderInfo an Agent/Peer level alteration
|
62
|
+
(0, function_1.pipe)(req, processor_1.Alterations.overwriteContactWithSenderInfo, processor_1.Alterations.removeTopVia));
|
62
63
|
}
|
63
64
|
switch (req.method) {
|
64
65
|
case common_1.Method.PUBLISH:
|
package/dist/tailor.js
CHANGED
@@ -22,5 +22,9 @@ exports.tailor = void 0;
|
|
22
22
|
const processor_1 = require("@routr/processor");
|
23
23
|
const function_1 = require("fp-ts/function");
|
24
24
|
// Q: Should we add support for strict routing?
|
25
|
-
const tailor = (route, req) => (0, function_1.pipe)(req, processor_1.Alterations.decreaseMaxForwards, processor_1.Alterations.removeAuthorization, processor_1.Alterations.removeSelfRoutes, processor_1.Alterations.removeXEdgePortRef,
|
25
|
+
const tailor = (route, req) => (0, function_1.pipe)(req, processor_1.Alterations.decreaseMaxForwards, processor_1.Alterations.removeAuthorization, processor_1.Alterations.removeSelfRoutes, processor_1.Alterations.removeXEdgePortRef,
|
26
|
+
// NOTE: We should consider making the overwriteContactWithSenderInfo an Agent/Peer level alteration
|
27
|
+
processor_1.Alterations.overwriteContactWithSenderInfo,
|
28
|
+
// A.fixInvalidContact,
|
29
|
+
processor_1.Alterations.fixRequestURI(route), processor_1.Alterations.addSelfVia(route), processor_1.Alterations.applyXHeaders(route), processor_1.Alterations.addSelfRecordRoute(route), processor_1.Alterations.addRouteToNextHop(route));
|
26
30
|
exports.tailor = tailor;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@routr/connect",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.1",
|
4
4
|
"description": "Default processor",
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"bugs": {
|
50
50
|
"url": "https://github.com/fonoster/routr/issues"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "e93238063bb807c4ea48e0d283845717a424541c"
|
53
53
|
}
|