From d5c20c5581f1aa99bd89a234733365d9b58ddef7 Mon Sep 17 00:00:00 2001 From: Pedro Dias Date: Mon, 13 Mar 2023 12:39:15 +0000 Subject: [PATCH] v3.0.8 --- lib/modem.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/modem.js b/lib/modem.js index be32e5d..7f84442 100644 --- a/lib/modem.js +++ b/lib/modem.js @@ -304,7 +304,7 @@ Modem.prototype.buildRequest = function (options, context, data, callback) { debug('Received: %s', result); - var json = utils.parseJSON(result) || stream.Readable.from(buffer); + var json = utils.parseJSON(result) || buffer; if (finished === false) { finished = true; self.buildPayload(null, context.isStream, context.statusCodes, false, req, res, json, callback); diff --git a/package-lock.json b/package-lock.json index 87204b0..e2ed506 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "docker-modem", - "version": "3.0.7", + "version": "3.0.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "docker-modem", - "version": "3.0.7", + "version": "3.0.8", "license": "Apache-2.0", "dependencies": { "debug": "^4.1.1", diff --git a/package.json b/package.json index 3059fec..e1c3c47 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "docker-modem", "description": "Docker remote API network layer module.", - "version": "3.0.7", + "version": "3.0.8", "author": "Pedro Dias ", "maintainers": [ "apocas "