@oada/client
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -44,2 +44,3 @@ "use strict"; | ||
const type_is_1 = __importDefault(require("type-is")); | ||
const buffer_1 = require("buffer"); | ||
const websocket_1 = require("./websocket"); | ||
@@ -160,3 +161,3 @@ const errors_1 = require("./errors"); | ||
// Assume anything that is not a Buffer should be JSON? | ||
const body = Buffer.isBuffer(req.data) | ||
const body = buffer_1.Buffer.isBuffer(req.data) | ||
? req.data | ||
@@ -203,3 +204,3 @@ : JSON.stringify(req.data); | ||
if (!type_is_1.default.is(result.headers.get("content-type"), ["json", "+json"])) { | ||
data = Buffer.from(await result.arrayBuffer()); | ||
data = buffer_1.Buffer.from(await result.arrayBuffer()); | ||
} | ||
@@ -206,0 +207,0 @@ else { |
{ | ||
"name": "@oada/client", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "A lightweight client tool to interact with an OADA-compliant server", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/OADA/client", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95883
1387