@azure/storage-file-share 12.9.0-beta.3 → 12.9.0-beta.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Release History
2
2
 
3
+ ## 12.9.0-beta.4 (2022-03-04)
4
+
5
+ ### Bugs Fixed
6
+
7
+ - Fixed bug where ShareFileClient.startCopyFromURL() was not sending the ignoreReadonly parameter correctly.
8
+ - Set correct content length in requests for uploading operations to avoid unexpected failure if customized content length is incorrect.
9
+
3
10
  ## 12.9.0-beta.3 (2022-02-11)
4
11
 
5
12
  ### Features Added
package/dist/index.js CHANGED
@@ -334,7 +334,7 @@ function ipRangeToString(ipRange) {
334
334
 
335
335
  // Copyright (c) Microsoft Corporation.
336
336
  // Licensed under the MIT license.
337
- const SDK_VERSION = "12.9.0-beta.3";
337
+ const SDK_VERSION = "12.9.0-beta.4";
338
338
  const SERVICE_VERSION = "2021-04-10";
339
339
  const FILE_MAX_SIZE_BYTES = 4 * 1024 * 1024 * 1024 * 1024; // 4TB
340
340
  const FILE_RANGE_MAX_SIZE_BYTES = 4 * 1024 * 1024; // 4MB
@@ -7607,8 +7607,8 @@ const filePermissionCopyMode = {
7607
7607
  const ignoreReadOnly1 = {
7608
7608
  parameterPath: ["options", "copyFileSmbInfo", "ignoreReadOnly"],
7609
7609
  mapper: {
7610
- serializedName: "x-ms-file-copy-ignore-read-only",
7611
- xmlName: "x-ms-file-copy-ignore-read-only",
7610
+ serializedName: "x-ms-file-copy-ignore-readonly",
7611
+ xmlName: "x-ms-file-copy-ignore-readonly",
7612
7612
  type: {
7613
7613
  name: "Boolean"
7614
7614
  }
@@ -10168,7 +10168,9 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
10168
10168
  */
10169
10169
  signRequest(request) {
10170
10170
  request.headers.set(HeaderConstants.X_MS_DATE, new Date().toUTCString());
10171
- if (request.body && typeof request.body === "string" && request.body.length > 0) {
10171
+ if (request.body &&
10172
+ (typeof request.body === "string" || request.body !== undefined) &&
10173
+ request.body.length > 0) {
10172
10174
  request.headers.set(HeaderConstants.CONTENT_LENGTH, Buffer.byteLength(request.body));
10173
10175
  }
10174
10176
  const stringToSign = [
@@ -10349,7 +10351,7 @@ function convertTracingToRequestOptionsBase(options) {
10349
10351
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
10350
10352
  */
10351
10353
  const packageName = "azure-storage-file-share";
10352
- const packageVersion = "12.9.0-beta.3";
10354
+ const packageVersion = "12.9.0-beta.4";
10353
10355
  class StorageClientContext extends coreHttp__namespace.ServiceClient {
10354
10356
  /**
10355
10357
  * Initializes a new instance of the StorageClientContext class.