node-pluginsmanager-plugin 6.4.1 → 6.4.3

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.
@@ -102,7 +102,7 @@ class Mediator extends DescriptorUser_1.default {
102
102
  return resolve();
103
103
  }
104
104
  // validator cannot correctly check pure boolean return
105
- else if ("undefined" !== typeof res.body && ["true", "false"].includes(res.body)) {
105
+ else if ("undefined" !== typeof res.body && ["true", "false", true, false].includes(res.body)) {
106
106
  return resolve();
107
107
  }
108
108
  else {
@@ -8,6 +8,9 @@ function send(req, res, code, content, options) {
8
8
  if ("undefined" === typeof content) {
9
9
  return "";
10
10
  }
11
+ else if ("object" === typeof content && content instanceof Buffer) {
12
+ return content;
13
+ }
11
14
  else if ("string" === typeof content && "" === content) {
12
15
  return "";
13
16
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
 
3
3
  "name": "node-pluginsmanager-plugin",
4
- "version": "6.4.1",
4
+ "version": "6.4.3",
5
5
  "description": "An abstract parent plugin for node-pluginsmanager",
6
6
 
7
7
  "type": "commonjs",