@azure/storage-file-share 12.27.0-alpha.20250310.1 → 12.27.0-alpha.20250313.2
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/Clients.js +11 -11
- package/dist-esm/storage-blob/src/Clients.js.map +1 -1
- package/dist-esm/storage-file-share/src/Clients.js +1 -1
- package/dist-esm/storage-file-share/src/Clients.js.map +1 -1
- package/package.json +1 -1
- package/types/latest/storage-file-share.d.ts +1 -1
package/README.md
CHANGED
@@ -412,7 +412,7 @@ async function streamToBuffer(readableStream) {
|
|
412
412
|
return new Promise((resolve, reject) => {
|
413
413
|
const chunks = [];
|
414
414
|
readableStream.on("data", (data) => {
|
415
|
-
chunks.push(data
|
415
|
+
chunks.push(typeof data === "string" ? Buffer.from(data) : data);
|
416
416
|
});
|
417
417
|
readableStream.on("end", () => {
|
418
418
|
resolve(Buffer.concat(chunks));
|
package/dist/index.js
CHANGED
@@ -15269,7 +15269,7 @@ class ShareFileClient extends StorageClient {
|
|
15269
15269
|
* return new Promise((resolve, reject) => {
|
15270
15270
|
* const chunks = [];
|
15271
15271
|
* readableStream.on("data", (data) => {
|
15272
|
-
* chunks.push(data
|
15272
|
+
* chunks.push(typeof data === "string" ? Buffer.from(data) : data);
|
15273
15273
|
* });
|
15274
15274
|
* readableStream.on("end", () => {
|
15275
15275
|
* resolve(Buffer.concat(chunks));
|