@azure/storage-blob 12.12.0-beta.1 → 12.12.1-alpha.20221019.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 +16 -6
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/Clients.js.map +1 -1
- package/dist-esm/storage-blob/src/ContainerClient.js +5 -5
- package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClientContext.js +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClientContext.js.map +1 -1
- package/dist-esm/storage-blob/src/index.js.map +1 -1
- package/dist-esm/storage-blob/src/models.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/utils.common.js +10 -0
- package/dist-esm/storage-blob/src/utils/utils.common.js.map +1 -1
- package/package.json +9 -9
- package/types/3.1/storage-blob.d.ts +61 -1
- package/types/latest/storage-blob.d.ts +62 -1
package/README.md
CHANGED
@@ -25,7 +25,7 @@ Key links
|
|
25
25
|
|
26
26
|
### Currently supported environments
|
27
27
|
|
28
|
-
- [LTS versions of Node.js](https://
|
28
|
+
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
|
29
29
|
- Latest versions of Safari, Chrome, Edge, and Firefox.
|
30
30
|
|
31
31
|
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
package/dist/index.js
CHANGED
@@ -13325,7 +13325,7 @@ const logger = logger$1.createClientLogger("storage-blob");
|
|
13325
13325
|
|
13326
13326
|
// Copyright (c) Microsoft Corporation.
|
13327
13327
|
// Licensed under the MIT license.
|
13328
|
-
const SDK_VERSION = "12.12.
|
13328
|
+
const SDK_VERSION = "12.12.1";
|
13329
13329
|
const SERVICE_VERSION = "2021-10-04";
|
13330
13330
|
const BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES = 256 * 1024 * 1024; // 256MB
|
13331
13331
|
const BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES = 4000 * 1024 * 1024; // 4000MB
|
@@ -14505,6 +14505,16 @@ function* ExtractPageRangeInfoItems(getPageRangesSegment) {
|
|
14505
14505
|
};
|
14506
14506
|
}
|
14507
14507
|
}
|
14508
|
+
/**
|
14509
|
+
* Escape the blobName but keep path separator ('/').
|
14510
|
+
*/
|
14511
|
+
function EscapePath(blobName) {
|
14512
|
+
const split = blobName.split("/");
|
14513
|
+
for (let i = 0; i < split.length; i++) {
|
14514
|
+
split[i] = encodeURIComponent(split[i]);
|
14515
|
+
}
|
14516
|
+
return split.join("/");
|
14517
|
+
}
|
14508
14518
|
|
14509
14519
|
// Copyright (c) Microsoft Corporation.
|
14510
14520
|
/**
|
@@ -15463,7 +15473,7 @@ class StorageSharedKeyCredential extends Credential {
|
|
15463
15473
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
15464
15474
|
*/
|
15465
15475
|
const packageName = "azure-storage-blob";
|
15466
|
-
const packageVersion = "12.12.
|
15476
|
+
const packageVersion = "12.12.1";
|
15467
15477
|
class StorageClientContext extends coreHttp__namespace.ServiceClient {
|
15468
15478
|
/**
|
15469
15479
|
* Initializes a new instance of the StorageClientContext class.
|
@@ -23003,7 +23013,7 @@ class ContainerClient extends StorageClient {
|
|
23003
23013
|
* @returns A new BlobClient object for the given blob name.
|
23004
23014
|
*/
|
23005
23015
|
getBlobClient(blobName) {
|
23006
|
-
return new BlobClient(appendToURLPath(this.url,
|
23016
|
+
return new BlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);
|
23007
23017
|
}
|
23008
23018
|
/**
|
23009
23019
|
* Creates an {@link AppendBlobClient}
|
@@ -23011,7 +23021,7 @@ class ContainerClient extends StorageClient {
|
|
23011
23021
|
* @param blobName - An append blob name
|
23012
23022
|
*/
|
23013
23023
|
getAppendBlobClient(blobName) {
|
23014
|
-
return new AppendBlobClient(appendToURLPath(this.url,
|
23024
|
+
return new AppendBlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);
|
23015
23025
|
}
|
23016
23026
|
/**
|
23017
23027
|
* Creates a {@link BlockBlobClient}
|
@@ -23029,7 +23039,7 @@ class ContainerClient extends StorageClient {
|
|
23029
23039
|
* ```
|
23030
23040
|
*/
|
23031
23041
|
getBlockBlobClient(blobName) {
|
23032
|
-
return new BlockBlobClient(appendToURLPath(this.url,
|
23042
|
+
return new BlockBlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);
|
23033
23043
|
}
|
23034
23044
|
/**
|
23035
23045
|
* Creates a {@link PageBlobClient}
|
@@ -23037,7 +23047,7 @@ class ContainerClient extends StorageClient {
|
|
23037
23047
|
* @param blobName - A page blob name
|
23038
23048
|
*/
|
23039
23049
|
getPageBlobClient(blobName) {
|
23040
|
-
return new PageBlobClient(appendToURLPath(this.url,
|
23050
|
+
return new PageBlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);
|
23041
23051
|
}
|
23042
23052
|
/**
|
23043
23053
|
* Returns all user-defined metadata and system properties for the specified
|