ismx-nexo-node-app 0.4.52 → 0.4.53

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.
@@ -58,7 +58,7 @@ class BusinessProxy {
58
58
  headers.set(header, (_b = (_a = request.headers) === null || _a === void 0 ? void 0 : _a[header]) !== null && _b !== void 0 ? _b : "");
59
59
  // Si el body especificado es un objeto, lo convierte a JSON.
60
60
  let body = (_c = request.body) === null || _c === void 0 ? void 0 : _c.toString();
61
- if (request.body && typeof request.body !== 'string') {
61
+ if (request.body && typeof request.body !== 'string' && !Buffer.isBuffer(request.body)) {
62
62
  headers.set('Content-Type', 'application/json');
63
63
  body = JSON.stringify(request.body);
64
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ismx-nexo-node-app",
3
- "version": "0.4.52",
3
+ "version": "0.4.53",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist && npx tsc",
@@ -30,7 +30,7 @@ export default class BusinessProxy
30
30
 
31
31
  // Si el body especificado es un objeto, lo convierte a JSON.
32
32
  let body: string | undefined = request.body?.toString();
33
- if (request.body && typeof request.body !== 'string') {
33
+ if (request.body && typeof request.body !== 'string' && !Buffer.isBuffer(request.body)) {
34
34
  headers.set('Content-Type', 'application/json');
35
35
  body = JSON.stringify(request.body);
36
36
  }