@azure/storage-file-share 12.27.0-alpha.20250311.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 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 instanceof Buffer ? data : Buffer.from(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 instanceof Buffer ? data : Buffer.from(data));
15272
+ * chunks.push(typeof data === "string" ? Buffer.from(data) : data);
15273
15273
  * });
15274
15274
  * readableStream.on("end", () => {
15275
15275
  * resolve(Buffer.concat(chunks));