ibm-cloud-sdk-core 5.4.4 → 5.4.6
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.
|
@@ -430,7 +430,7 @@ export class RequestWrapper {
|
|
|
430
430
|
try {
|
|
431
431
|
if (isStream(data)) {
|
|
432
432
|
const streamData = yield streamToPromise(data);
|
|
433
|
-
reqBuffer = Buffer.isBuffer(streamData) ? streamData : Buffer.from(streamData);
|
|
433
|
+
reqBuffer = Buffer.isBuffer(streamData) ? streamData : Buffer.from(streamData.join(''));
|
|
434
434
|
}
|
|
435
435
|
else if (Buffer.isBuffer(data)) {
|
|
436
436
|
reqBuffer = data;
|
package/lib/request-wrapper.js
CHANGED
|
@@ -522,7 +522,7 @@ var RequestWrapper = /** @class */ (function () {
|
|
|
522
522
|
return [4 /*yield*/, (0, stream_to_promise_1.streamToPromise)(data)];
|
|
523
523
|
case 2:
|
|
524
524
|
streamData = _a.sent();
|
|
525
|
-
reqBuffer = Buffer.isBuffer(streamData) ? streamData : Buffer.from(streamData);
|
|
525
|
+
reqBuffer = Buffer.isBuffer(streamData) ? streamData : Buffer.from(streamData.join(''));
|
|
526
526
|
return [3 /*break*/, 4];
|
|
527
527
|
case 3:
|
|
528
528
|
if (Buffer.isBuffer(data)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ibm-cloud-sdk-core",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.6",
|
|
4
4
|
"description": "Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./es/index.d.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"file-type": "16.5.4",
|
|
46
46
|
"form-data": "^4.0.4",
|
|
47
47
|
"isstream": "0.1.2",
|
|
48
|
-
"jsonwebtoken": "^9.0.
|
|
48
|
+
"jsonwebtoken": "^9.0.3",
|
|
49
49
|
"mime-types": "2.1.35",
|
|
50
50
|
"retry-axios": "^2.6.0",
|
|
51
51
|
"tough-cookie": "^4.1.3"
|
|
@@ -58,6 +58,6 @@
|
|
|
58
58
|
"./auth/utils/read-credentials-file": "./auth/utils/read-credentials-file.browser"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
|
-
"node": ">=
|
|
61
|
+
"node": ">=20"
|
|
62
62
|
}
|
|
63
63
|
}
|