@azure/storage-file-datalake 12.25.0-alpha.20250311.1 → 12.25.0-alpha.20250314.1
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.
package/README.md
CHANGED
|
@@ -503,7 +503,7 @@ async function main() {
|
|
|
503
503
|
return new Promise((resolve, reject) => {
|
|
504
504
|
const chunks = [];
|
|
505
505
|
readableStream.on("data", (data) => {
|
|
506
|
-
chunks.push(data
|
|
506
|
+
chunks.push(typeof data === "string" ? Buffer.from(data) : data);
|
|
507
507
|
});
|
|
508
508
|
readableStream.on("end", () => {
|
|
509
509
|
resolve(Buffer.concat(chunks));
|
package/dist/index.js
CHANGED
|
@@ -7834,7 +7834,7 @@ class DataLakeFileClient extends DataLakePathClient {
|
|
|
7834
7834
|
* return new Promise((resolve, reject) => {
|
|
7835
7835
|
* const chunks = [];
|
|
7836
7836
|
* readableStream.on("data", (data) => {
|
|
7837
|
-
* chunks.push(data
|
|
7837
|
+
* chunks.push(typeof data === "string" ? Buffer.from(data) : data);
|
|
7838
7838
|
* });
|
|
7839
7839
|
* readableStream.on("end", () => {
|
|
7840
7840
|
* resolve(Buffer.concat(chunks));
|
|
@@ -8214,7 +8214,7 @@ class DataLakeFileClient extends DataLakePathClient {
|
|
|
8214
8214
|
* return new Promise((resolve, reject) => {
|
|
8215
8215
|
* const chunks = [];
|
|
8216
8216
|
* readableStream.on("data", (data) => {
|
|
8217
|
-
* chunks.push(data
|
|
8217
|
+
* chunks.push(typeof data === "string" ? Buffer.from(data) : data);
|
|
8218
8218
|
* });
|
|
8219
8219
|
* readableStream.on("end", () => {
|
|
8220
8220
|
* resolve(Buffer.concat(chunks));
|