@azure/storage-blob 12.23.0-alpha.20231116.2 → 12.23.0-alpha.20231212.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 +6 -5
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobBatch.js +2 -2
- package/dist-esm/storage-blob/src/BlobBatch.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobLeaseClient.js +2 -2
- package/dist-esm/storage-blob/src/BlobLeaseClient.js.map +1 -1
- package/dist-esm/storage-blob/src/Clients.js +5 -3
- package/dist-esm/storage-blob/src/Clients.js.map +1 -1
- package/package.json +4 -17
- package/types/3.1/storage-blob.d.ts +0 -11135
package/dist/index.js
CHANGED
@@ -13,7 +13,6 @@ var logger$1 = require('@azure/logger');
|
|
13
13
|
var abortController = require('@azure/abort-controller');
|
14
14
|
var crypto = require('crypto');
|
15
15
|
var coreTracing = require('@azure/core-tracing');
|
16
|
-
var uuid = require('uuid');
|
17
16
|
var stream = require('stream');
|
18
17
|
require('@azure/core-paging');
|
19
18
|
var coreLro = require('@azure/core-lro');
|
@@ -16546,7 +16545,7 @@ class BlobLeaseClient {
|
|
16546
16545
|
this._containerOrBlobOperation = clientContext.blob;
|
16547
16546
|
}
|
16548
16547
|
if (!leaseId) {
|
16549
|
-
leaseId =
|
16548
|
+
leaseId = coreUtil.randomUUID();
|
16550
16549
|
}
|
16551
16550
|
this._leaseId = leaseId;
|
16552
16551
|
}
|
@@ -19199,6 +19198,8 @@ async function readStreamToLocalFile(rs, file) {
|
|
19199
19198
|
const fsStat = util__namespace.promisify(fs__namespace.stat);
|
19200
19199
|
const fsCreateReadStream = fs__namespace.createReadStream;
|
19201
19200
|
|
19201
|
+
// Copyright (c) Microsoft Corporation.
|
19202
|
+
// Licensed under the MIT license.
|
19202
19203
|
/**
|
19203
19204
|
* A BlobClient represents a URL to an Azure Storage blob; the blob may be a block blob,
|
19204
19205
|
* append blob, or page blob.
|
@@ -20855,7 +20856,7 @@ class BlockBlobClient extends BlobClient {
|
|
20855
20856
|
`the number of blocks must be <= ${BLOCK_BLOB_MAX_BLOCKS}`);
|
20856
20857
|
}
|
20857
20858
|
const blockList = [];
|
20858
|
-
const blockIDPrefix =
|
20859
|
+
const blockIDPrefix = coreUtil.randomUUID();
|
20859
20860
|
let transferProgress = 0;
|
20860
20861
|
const batch = new Batch(options.concurrency);
|
20861
20862
|
for (let i = 0; i < numBlocks; i++) {
|
@@ -20935,7 +20936,7 @@ class BlockBlobClient extends BlobClient {
|
|
20935
20936
|
}
|
20936
20937
|
return tracingClient.withSpan("BlockBlobClient-uploadStream", options, async (updatedOptions) => {
|
20937
20938
|
let blockNum = 0;
|
20938
|
-
const blockIDPrefix =
|
20939
|
+
const blockIDPrefix = coreUtil.randomUUID();
|
20939
20940
|
let transferProgress = 0;
|
20940
20941
|
const blockList = [];
|
20941
20942
|
const scheduler = new BufferScheduler(stream, bufferSize, maxConcurrency, async (body, length) => {
|
@@ -22037,7 +22038,7 @@ class InnerBatchRequest {
|
|
22037
22038
|
constructor() {
|
22038
22039
|
this.operationCount = 0;
|
22039
22040
|
this.body = "";
|
22040
|
-
const tempGuid =
|
22041
|
+
const tempGuid = coreUtil.randomUUID();
|
22041
22042
|
// batch_{batchid}
|
22042
22043
|
this.boundary = `batch_${tempGuid}`;
|
22043
22044
|
// --batch_{batchid}
|