@azure/storage-blob 12.23.0-alpha.20240202.1 → 12.23.0-alpha.20240216.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/dist/index.js CHANGED
@@ -18,6 +18,7 @@ var coreLro = require('@azure/core-lro');
18
18
  var events = require('events');
19
19
  var fs = require('fs');
20
20
  var util = require('util');
21
+ var buffer = require('buffer');
21
22
 
22
23
  function _interopNamespaceDefault(e) {
23
24
  var n = Object.create(null);
@@ -18753,11 +18754,7 @@ class BuffersStream extends stream.Readable {
18753
18754
 
18754
18755
  // Copyright (c) Microsoft Corporation.
18755
18756
  // Licensed under the MIT license.
18756
- /**
18757
- * maxBufferLength is max size of each buffer in the pooled buffers.
18758
- */
18759
- // Can't use import as Typescript doesn't recognize "buffer".
18760
- const maxBufferLength = require("buffer").constants.MAX_LENGTH;
18757
+ const maxBufferLength = buffer.constants.MAX_LENGTH;
18761
18758
  /**
18762
18759
  * This class provides a buffer container which conceptually has no hard size limit.
18763
18760
  * It accepts a capacity, an array of input buffers and the total length of input data.