@azure/storage-blob 12.12.0-alpha.20220907.1 → 12.12.0-alpha.20220922.1

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
@@ -25,7 +25,7 @@ Key links
25
25
 
26
26
  ### Currently supported environments
27
27
 
28
- - [LTS versions of Node.js](https://nodejs.org/about/releases/)
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
@@ -23003,7 +23003,7 @@ class ContainerClient extends StorageClient {
23003
23003
  * @returns A new BlobClient object for the given blob name.
23004
23004
  */
23005
23005
  getBlobClient(blobName) {
23006
- return new BlobClient(appendToURLPath(this.url, encodeURIComponent(blobName)), this.pipeline);
23006
+ return new BlobClient(appendToURLPath(this.url, this.escapePath(blobName)), this.pipeline);
23007
23007
  }
23008
23008
  /**
23009
23009
  * Creates an {@link AppendBlobClient}
@@ -23011,7 +23011,7 @@ class ContainerClient extends StorageClient {
23011
23011
  * @param blobName - An append blob name
23012
23012
  */
23013
23013
  getAppendBlobClient(blobName) {
23014
- return new AppendBlobClient(appendToURLPath(this.url, encodeURIComponent(blobName)), this.pipeline);
23014
+ return new AppendBlobClient(appendToURLPath(this.url, this.escapePath(blobName)), this.pipeline);
23015
23015
  }
23016
23016
  /**
23017
23017
  * Creates a {@link BlockBlobClient}
@@ -23029,7 +23029,7 @@ class ContainerClient extends StorageClient {
23029
23029
  * ```
23030
23030
  */
23031
23031
  getBlockBlobClient(blobName) {
23032
- return new BlockBlobClient(appendToURLPath(this.url, encodeURIComponent(blobName)), this.pipeline);
23032
+ return new BlockBlobClient(appendToURLPath(this.url, this.escapePath(blobName)), this.pipeline);
23033
23033
  }
23034
23034
  /**
23035
23035
  * Creates a {@link PageBlobClient}
@@ -23037,7 +23037,17 @@ class ContainerClient extends StorageClient {
23037
23037
  * @param blobName - A page blob name
23038
23038
  */
23039
23039
  getPageBlobClient(blobName) {
23040
- return new PageBlobClient(appendToURLPath(this.url, encodeURIComponent(blobName)), this.pipeline);
23040
+ return new PageBlobClient(appendToURLPath(this.url, this.escapePath(blobName)), this.pipeline);
23041
+ }
23042
+ /**
23043
+ * Escape the blobName but keep path separator ('/'). Exactly like in the dotnet SDK client.
23044
+ */
23045
+ escapePath(blobName) {
23046
+ const split = blobName.split("/");
23047
+ for (let i = 0; i < split.length; i++) {
23048
+ split[i] = encodeURIComponent(split[i]);
23049
+ }
23050
+ return split.join("/");
23041
23051
  }
23042
23052
  /**
23043
23053
  * Returns all user-defined metadata and system properties for the specified