@azure/storage-blob 12.26.0-alpha.20250310.1 → 12.26.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@azure/storage-blob",
3
3
  "sdk-type": "client",
4
- "version": "12.26.0-alpha.20250310.1",
4
+ "version": "12.26.0-alpha.20250313.2",
5
5
  "description": "Microsoft Azure Storage SDK for JavaScript - Blob",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist-esm/storage-blob/src/index.js",
@@ -1866,16 +1866,16 @@ export declare class BlobClient extends StorageClient {
1866
1866
  * console.log("Downloaded blob content:", downloaded.toString());
1867
1867
  *
1868
1868
  * async function streamToBuffer(readableStream) {
1869
- * return new Promise((resolve, reject) => {
1870
- * const chunks = [];
1871
- * readableStream.on("data", (data) => {
1872
- * chunks.push(data instanceof Buffer ? data : Buffer.from(data));
1873
- * });
1874
- * readableStream.on("end", () => {
1875
- * resolve(Buffer.concat(chunks));
1876
- * });
1877
- * readableStream.on("error", reject);
1878
- * });
1869
+ * return new Promise((resolve, reject) => {
1870
+ * const chunks = [];
1871
+ * readableStream.on("data", (data) => {
1872
+ * chunks.push(typeof data === "string" ? Buffer.from(data) : data);
1873
+ * });
1874
+ * readableStream.on("end", () => {
1875
+ * resolve(Buffer.concat(chunks));
1876
+ * });
1877
+ * readableStream.on("error", reject);
1878
+ * });
1879
1879
  * }
1880
1880
  * ```
1881
1881
  *
@@ -5166,7 +5166,7 @@ export declare class BlockBlobClient extends BlobClient {
5166
5166
  * return new Promise((resolve, reject) => {
5167
5167
  * const chunks = [];
5168
5168
  * readableStream.on("data", (data) => {
5169
- * chunks.push(data instanceof Buffer ? data : Buffer.from(data));
5169
+ * chunks.push(typeof data === "string" ? Buffer.from(data) : data);
5170
5170
  * });
5171
5171
  * readableStream.on("end", () => {
5172
5172
  * resolve(Buffer.concat(chunks));