elasticio-sailor-nodejs 3.0.0-sailor-proxy-dev14 → 3.0.0-sailor-proxy-dev15
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/lib/proxy-client.js +7 -4
- package/package.json +1 -1
package/lib/proxy-client.js
CHANGED
|
@@ -509,15 +509,18 @@ class ProxyClient {
|
|
|
509
509
|
messageId: metadata.messageId || uuid.v4()
|
|
510
510
|
};
|
|
511
511
|
let preparedData = data;
|
|
512
|
+
if (preparedData.headers) {
|
|
513
|
+
preparedData.headers = _.omitBy(
|
|
514
|
+
preparedData.headers,
|
|
515
|
+
(value, key) => key.toLowerCase() === HEADER_ROUTING_KEY
|
|
516
|
+
);
|
|
517
|
+
}
|
|
512
518
|
if (protocolVersion) {
|
|
513
519
|
preparedData = this.encryptMessageContent(data, protocolVersion);
|
|
514
520
|
preparedMetadata.protocolVersion = protocolVersion;
|
|
515
521
|
}
|
|
516
522
|
return {
|
|
517
|
-
preparedMetadata
|
|
518
|
-
preparedMetadata,
|
|
519
|
-
(value, key) => key.toLowerCase() === HEADER_ROUTING_KEY
|
|
520
|
-
),
|
|
523
|
+
preparedMetadata,
|
|
521
524
|
preparedData
|
|
522
525
|
};
|
|
523
526
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elasticio-sailor-nodejs",
|
|
3
3
|
"description": "The official elastic.io library for bootstrapping and executing for Node.js connectors",
|
|
4
|
-
"version": "3.0.0-sailor-proxy-
|
|
4
|
+
"version": "3.0.0-sailor-proxy-dev15",
|
|
5
5
|
"main": "run.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc",
|