ibm-cloud-sdk-core
Advanced tools
Comparing version 2.17.4 to 2.17.5
@@ -0,1 +1,8 @@ | ||
## [2.17.5](https://github.com/IBM/node-sdk-core/compare/v2.17.4...v2.17.5) (2021-12-17) | ||
### Bug Fixes | ||
* avoid Buffer re-encode during compression ([#184](https://github.com/IBM/node-sdk-core/issues/184)) ([8b82f36](https://github.com/IBM/node-sdk-core/commit/8b82f36bf6d4ac0163563ce3a10f0a395bd87627)) | ||
## [2.17.4](https://github.com/IBM/node-sdk-core/compare/v2.17.3...v2.17.4) (2021-12-16) | ||
@@ -2,0 +9,0 @@ |
@@ -366,2 +366,5 @@ /* eslint-disable class-methods-use-this */ | ||
} | ||
else if (Buffer.isBuffer(data)) { | ||
reqBuffer = data; | ||
} | ||
else if (data.toString && data.toString() !== '[object Object]' && !Array.isArray(data)) { | ||
@@ -368,0 +371,0 @@ // this handles pretty much any primitive that isnt a JSON object or array |
@@ -432,3 +432,6 @@ "use strict"; | ||
case 3: | ||
if (data.toString && data.toString() !== '[object Object]' && !Array.isArray(data)) { | ||
if (Buffer.isBuffer(data)) { | ||
reqBuffer = data; | ||
} | ||
else if (data.toString && data.toString() !== '[object Object]' && !Array.isArray(data)) { | ||
// this handles pretty much any primitive that isnt a JSON object or array | ||
@@ -435,0 +438,0 @@ reqBuffer = Buffer.from(data.toString()); |
{ | ||
"name": "ibm-cloud-sdk-core", | ||
"version": "2.17.4", | ||
"version": "2.17.5", | ||
"description": "Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1407147
27842