@routr/connect 2.0.7-alpha.0 → 2.0.8-alpha.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/service.js +0 -12
- package/dist/tailor.js +3 -1
- package/package.json +5 -5
package/dist/service.js
CHANGED
@@ -65,18 +65,6 @@ function ConnectProcessor(config) {
|
|
65
65
|
case common_1.Method.SUBSCRIBE:
|
66
66
|
res.sendMethodNotAllowed();
|
67
67
|
break;
|
68
|
-
case common_1.Method.CANCEL:
|
69
|
-
// eslint-disable-next-line no-case-declarations
|
70
|
-
const route = (yield location.findRoutes({ aor: processor_1.Target.getTargetAOR(req) }))[0];
|
71
|
-
if (route) {
|
72
|
-
res.sendOk([
|
73
|
-
{
|
74
|
-
name: common_2.CommonTypes.ExtraHeader.REQUEST_URI,
|
75
|
-
value: `${route === null || route === void 0 ? void 0 : route.user},${route.host},${route.port},${route.transport}`
|
76
|
-
}
|
77
|
-
]);
|
78
|
-
}
|
79
|
-
break;
|
80
68
|
case common_1.Method.REGISTER:
|
81
69
|
if (processor_1.Extensions.getHeaderValue(req, common_2.CommonTypes.ExtraHeader.GATEWAY_AUTH)) {
|
82
70
|
(0, handlers_1.handleRegistry)(req, res);
|
package/dist/tailor.js
CHANGED
@@ -22,7 +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: Shoukd we add support for strict routing?
|
25
|
-
const tailor = (route, req) => (0, function_1.pipe)(
|
25
|
+
const tailor = (route, req) => (0, function_1.pipe)(
|
26
|
+
// TODO: Fix this hardcode
|
27
|
+
processor_1.Extensions.removeHeader(req, "Privacy"), processor_1.Alterations.addSelfVia(route), processor_1.Alterations.applyXHeaders(route), processor_1.Alterations.addRoute(route), processor_1.Alterations.addSelfRecordRoute, processor_1.Alterations.decreaseMaxForwards, processor_1.Alterations.removeAuthorization, processor_1.Alterations.removeRoutes, processor_1.Alterations.removeXEdgePortRef
|
26
28
|
// Add updateContact for SIP.js support
|
27
29
|
);
|
28
30
|
exports.tailor = tailor;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@routr/connect",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.8-alpha.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.0.8-alpha.0",
|
32
|
+
"@routr/location": "^2.0.8-alpha.0",
|
33
|
+
"@routr/processor": "^2.0.8-alpha.0"
|
34
34
|
},
|
35
35
|
"files": [
|
36
36
|
"dist"
|
@@ -45,5 +45,5 @@
|
|
45
45
|
"bugs": {
|
46
46
|
"url": "https://github.com/fonoster/routr/issues"
|
47
47
|
},
|
48
|
-
"gitHead": "
|
48
|
+
"gitHead": "69c60f113c27bc00cbadb62dbdbbb70960ef0f4d"
|
49
49
|
}
|