@routr/processor 2.0.8-alpha.3 → 2.0.8-alpha.4

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.
@@ -20,8 +20,7 @@ exports.decreaseMaxForwards = exports.removeTopVia = exports.removeRoutes = expo
20
20
  * limitations under the License.
21
21
  */
22
22
  const common_1 = require("@routr/common");
23
- const helper_1 = require("@routr/common/src/helper");
24
- const helper_2 = require("./helper");
23
+ const helper_1 = require("./helper");
25
24
  // Q: Should we deprecate this method since we are not doing strict routing?
26
25
  const updateRequestURI = (route) => (request) => {
27
26
  const req = common_1.Helper.deepCopy(request);
@@ -109,8 +108,8 @@ const applyXHeaders = (route) => (request) => {
109
108
  exports.applyXHeaders = applyXHeaders;
110
109
  const addSelfRecordRoute = (route) => (request) => {
111
110
  const req = common_1.Helper.deepCopy(request);
112
- const originIntf = (0, helper_2.getEdgeInterface)(request, request.sender);
113
- const targetIntf = (0, helper_2.getEdgeInterface)(request, route);
111
+ const originIntf = (0, helper_1.getEdgeInterface)(request, request.sender);
112
+ const targetIntf = (0, helper_1.getEdgeInterface)(request, route);
114
113
  const originRoute = {
115
114
  address: {
116
115
  uri: {
@@ -180,7 +179,7 @@ const removeRoutes = (request) => {
180
179
  req.message.route = req.message.route.filter((r) => {
181
180
  var _a;
182
181
  const localIps = request.localnets.map((ln) => ln.split("/")[0]);
183
- const lp = (0, helper_1.getListeningPoint)(request, ((_a = r.address.uri.transportParam) === null || _a === void 0 ? void 0 : _a.toLowerCase()) ||
182
+ const lp = common_1.Helper.getListeningPoint(request, ((_a = r.address.uri.transportParam) === null || _a === void 0 ? void 0 : _a.toLowerCase()) ||
184
183
  common_1.Transport.UDP);
185
184
  const route = r.address.uri;
186
185
  return !((localIps.includes(route.host) ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/processor",
3
- "version": "2.0.8-alpha.3",
3
+ "version": "2.0.8-alpha.4",
4
4
  "description": "Processor server and API",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/routr#readme",
@@ -23,7 +23,7 @@
23
23
  "@opentelemetry/sdk-trace-base": "^1.0.4",
24
24
  "@opentelemetry/sdk-trace-node": "^1.0.4",
25
25
  "@opentelemetry/semantic-conventions": "^1.0.4",
26
- "@routr/common": "^2.0.8-alpha.3",
26
+ "@routr/common": "^2.0.8-alpha.4",
27
27
  "fp-ts": "^2.11.8"
28
28
  },
29
29
  "directories": {
@@ -43,5 +43,5 @@
43
43
  "bugs": {
44
44
  "url": "https://github.com/fonoster/routr/issues"
45
45
  },
46
- "gitHead": "aad4c5c31af1fef5e657ee6b445879706757bbbf"
46
+ "gitHead": "320abeb05175976ddfca265096a2ea63004607f4"
47
47
  }