Socket
Socket
Sign inDemoInstall

ibm-cloud-sdk-core

Package Overview
Dependencies
Maintainers
3
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ibm-cloud-sdk-core - npm Package Compare versions

Comparing version 2.17.4 to 2.17.5

7

CHANGELOG.md

@@ -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 @@

3

es/lib/request-wrapper.js

@@ -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

5

lib/request-wrapper.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc