@orion-js/echoes 2.5.3 → 2.6.1

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/echo/index.js CHANGED
@@ -17,9 +17,6 @@ const echo = function (options) {
17
17
  const {
18
18
  message
19
19
  } = messageData;
20
- const key = message.key.toString();
21
- if (key !== 'pink_floyd') return; // not made by this library
22
-
23
20
  const data = (0, _deserialize.default)(message.value.toString());
24
21
  const context = { ...messageData,
25
22
  data
@@ -30,6 +30,7 @@ async function _default(options) {
30
30
  topic: options.topic,
31
31
  messages: [{
32
32
  key: 'pink_floyd',
33
+ // TODO: Remove this in the next release. Kept only to prevent downtime.
33
34
  value: (0, _serialize.default)(payload)
34
35
  }]
35
36
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-js/echoes",
3
- "version": "2.5.3",
3
+ "version": "2.6.1",
4
4
  "main": "lib/index.js",
5
5
  "author": "nicolaslopezj",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@
12
12
  "test:watch": "jest src --coverage --watch"
13
13
  },
14
14
  "dependencies": {
15
- "@orion-js/helpers": "^2.5.1",
15
+ "@orion-js/helpers": "^2.6.1",
16
16
  "axios": "^0.23.0",
17
17
  "jssha": "^3.2.0",
18
18
  "kafkajs": "^1.15.0",
@@ -28,5 +28,5 @@
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
- "gitHead": "2d2feff37a7ba7818d1ab44dbc74763638931175"
31
+ "gitHead": "886008c4d4d52d649a841d191873d52b080f5ee1"
32
32
  }