@routr/connect 2.1.7 → 2.2.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.
Files changed (2) hide show
  1. package/dist/service.js +3 -2
  2. package/package.json +5 -5
package/dist/service.js CHANGED
@@ -56,8 +56,9 @@ function connectProcessor(config) {
56
56
  logger.silly(JSON.stringify(req, null, " "));
57
57
  // If it is a response simply forwards to uac
58
58
  if (processor_1.Helper.isTypeResponse(req)) {
59
- // Remove the proxy via before forwarding response
60
- return res.send(processor_1.Alterations.removeTopVia(req));
59
+ // Remove the proxy and overwrite the contact with the sender info
60
+ // NOTE: We should consider making the overwriteContactWithSenderInfo at the endpoint level
61
+ return res.send((0, function_1.pipe)(req, processor_1.Alterations.overwriteContactWithSenderInfo, processor_1.Alterations.removeTopVia));
61
62
  }
62
63
  switch (req.method) {
63
64
  case common_1.Method.PUBLISH:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/connect",
3
- "version": "2.1.7",
3
+ "version": "2.2.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.1.7",
32
- "@routr/location": "^2.1.7",
33
- "@routr/processor": "^2.1.7",
31
+ "@routr/common": "^2.2.0",
32
+ "@routr/location": "^2.2.0",
33
+ "@routr/processor": "^2.2.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": "d9c077986f631b93b28c13df87ad3f45bdd68499"
52
+ "gitHead": "924c7d8711a7855635e52184d8ece28587febf48"
53
53
  }