@routr/processor 2.0.8-alpha.10 → 2.0.8-alpha.11

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.
@@ -22,7 +22,7 @@ exports.removeHeader = exports.addHeader = exports.updateHeader = exports.getHea
22
22
  const common_1 = require("@routr/common");
23
23
  const getHeaderValue = (request, name) => {
24
24
  var _a;
25
- return (_a = request.message.extensions.find((ext) => ext.name.toLowerCase() === name.toLowerCase())) === null || _a === void 0 ? void 0 : _a.value;
25
+ return ((_a = request.message.extensions.find((ext) => ext.name.toLowerCase() === (name === null || name === void 0 ? void 0 : name.toLowerCase()))) === null || _a === void 0 ? void 0 : _a.value) || null;
26
26
  };
27
27
  exports.getHeaderValue = getHeaderValue;
28
28
  const updateHeader = (request, header) => {
package/dist/helper.d.ts CHANGED
@@ -8,7 +8,7 @@ export declare const getEdgeInterface: (nets: {
8
8
  externalAddrs: string[];
9
9
  }) => NetInterface;
10
10
  /**
11
- * A request traversing a second EdgePort would have an updated the requestUri.
11
+ * A request traversing a second EdgePort would have updated the requestUri.
12
12
  * Therefore, we are able to re-construct the Route from the request.
13
13
  *
14
14
  * @param {MessageRequest} request - the request
package/dist/helper.js CHANGED
@@ -45,7 +45,7 @@ const getEdgeInterface = (nets) => {
45
45
  };
46
46
  exports.getEdgeInterface = getEdgeInterface;
47
47
  /**
48
- * A request traversing a second EdgePort would have an updated the requestUri.
48
+ * A request traversing a second EdgePort would have updated the requestUri.
49
49
  * Therefore, we are able to re-construct the Route from the request.
50
50
  *
51
51
  * @param {MessageRequest} request - the request
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/processor",
3
- "version": "2.0.8-alpha.10",
3
+ "version": "2.0.8-alpha.11",
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.10",
26
+ "@routr/common": "^2.0.8-alpha.11",
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": "5082233fb155ddb8535f934550fa4013da87468e"
46
+ "gitHead": "627659ac51d0814a3106bcaac31a15c581a5809f"
47
47
  }