@azure/storage-file-share 12.8.1-alpha.20210910.5 → 12.9.0-beta.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/CHANGELOG.md +2 -6
- package/dist/index.js +39 -19
- package/dist/index.js.map +1 -1
- package/dist-esm/src/AccountSASSignatureValues.js +34 -14
- package/dist-esm/src/AccountSASSignatureValues.js.map +1 -1
- package/dist-esm/src/generated/src/models/parameters.js +1 -1
- package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/src/storageClientContext.js +2 -2
- package/dist-esm/src/generated/src/storageClientContext.js.map +1 -1
- package/dist-esm/src/utils/constants.js +2 -2
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/package.json +8 -8
- package/typings/3.1/storage-file-share.d.ts +14 -11
- package/typings/latest/storage-file-share.d.ts +26 -11
package/CHANGELOG.md
CHANGED
@@ -1,14 +1,10 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
-
## 12.
|
3
|
+
## 12.9.0-beta.1 (2021-11-09)
|
4
4
|
|
5
5
|
### Features Added
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
### Bugs Fixed
|
10
|
-
|
11
|
-
### Other Changes
|
7
|
+
- Added support for service version 2020-12-06.
|
12
8
|
|
13
9
|
## 12.8.0 (2021-09-10)
|
14
10
|
|
package/dist/index.js
CHANGED
@@ -311,8 +311,8 @@ function ipRangeToString(ipRange) {
|
|
311
311
|
|
312
312
|
// Copyright (c) Microsoft Corporation.
|
313
313
|
// Licensed under the MIT license.
|
314
|
-
const SDK_VERSION = "12.
|
315
|
-
const SERVICE_VERSION = "2020-
|
314
|
+
const SDK_VERSION = "12.9.0-beta.1";
|
315
|
+
const SERVICE_VERSION = "2020-12-06";
|
316
316
|
const FILE_MAX_SIZE_BYTES = 4 * 1024 * 1024 * 1024 * 1024; // 4TB
|
317
317
|
const FILE_RANGE_MAX_SIZE_BYTES = 4 * 1024 * 1024; // 4MB
|
318
318
|
const DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS = 5;
|
@@ -991,20 +991,40 @@ function generateAccountSASQueryParameters(accountSASSignatureValues, sharedKeyC
|
|
991
991
|
const parsedPermissions = AccountSASPermissions.parse(accountSASSignatureValues.permissions.toString()).toString();
|
992
992
|
const parsedServices = AccountSASServices.parse(accountSASSignatureValues.services).toString();
|
993
993
|
const parsedResourceTypes = AccountSASResourceTypes.parse(accountSASSignatureValues.resourceTypes).toString();
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
994
|
+
let stringToSign;
|
995
|
+
if (version >= "2020-12-06") {
|
996
|
+
stringToSign = [
|
997
|
+
sharedKeyCredential.accountName,
|
998
|
+
parsedPermissions,
|
999
|
+
parsedServices,
|
1000
|
+
parsedResourceTypes,
|
1001
|
+
accountSASSignatureValues.startsOn
|
1002
|
+
? truncatedISO8061Date(accountSASSignatureValues.startsOn, false)
|
1003
|
+
: "",
|
1004
|
+
truncatedISO8061Date(accountSASSignatureValues.expiresOn, false),
|
1005
|
+
accountSASSignatureValues.ipRange ? ipRangeToString(accountSASSignatureValues.ipRange) : "",
|
1006
|
+
accountSASSignatureValues.protocol ? accountSASSignatureValues.protocol : "",
|
1007
|
+
version,
|
1008
|
+
"",
|
1009
|
+
"" // Account SAS requires an additional newline character
|
1010
|
+
].join("\n");
|
1011
|
+
}
|
1012
|
+
else {
|
1013
|
+
stringToSign = [
|
1014
|
+
sharedKeyCredential.accountName,
|
1015
|
+
parsedPermissions,
|
1016
|
+
parsedServices,
|
1017
|
+
parsedResourceTypes,
|
1018
|
+
accountSASSignatureValues.startsOn
|
1019
|
+
? truncatedISO8061Date(accountSASSignatureValues.startsOn, false)
|
1020
|
+
: "",
|
1021
|
+
truncatedISO8061Date(accountSASSignatureValues.expiresOn, false),
|
1022
|
+
accountSASSignatureValues.ipRange ? ipRangeToString(accountSASSignatureValues.ipRange) : "",
|
1023
|
+
accountSASSignatureValues.protocol ? accountSASSignatureValues.protocol : "",
|
1024
|
+
version,
|
1025
|
+
"" // Account SAS requires an additional newline character
|
1026
|
+
].join("\n");
|
1027
|
+
}
|
1008
1028
|
const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);
|
1009
1029
|
return new SASQueryParameters(version, signature, parsedPermissions, parsedServices, parsedResourceTypes, accountSASSignatureValues.protocol, accountSASSignatureValues.startsOn, accountSASSignatureValues.expiresOn, accountSASSignatureValues.ipRange);
|
1010
1030
|
}
|
@@ -6315,7 +6335,7 @@ const timeoutInSeconds = {
|
|
6315
6335
|
const version = {
|
6316
6336
|
parameterPath: "version",
|
6317
6337
|
mapper: {
|
6318
|
-
defaultValue: "2020-
|
6338
|
+
defaultValue: "2020-12-06",
|
6319
6339
|
isConstant: true,
|
6320
6340
|
serializedName: "x-ms-version",
|
6321
6341
|
type: {
|
@@ -9863,7 +9883,7 @@ function convertTracingToRequestOptionsBase(options) {
|
|
9863
9883
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9864
9884
|
*/
|
9865
9885
|
const packageName = "azure-storage-file-share";
|
9866
|
-
const packageVersion = "12.
|
9886
|
+
const packageVersion = "12.9.0-beta.1";
|
9867
9887
|
class StorageClientContext extends coreHttp.ServiceClient {
|
9868
9888
|
/**
|
9869
9889
|
* Initializes a new instance of the StorageClientContext class.
|
@@ -9889,7 +9909,7 @@ class StorageClientContext extends coreHttp.ServiceClient {
|
|
9889
9909
|
// Parameter assignments
|
9890
9910
|
this.url = url;
|
9891
9911
|
// Assigning values to Constant parameters
|
9892
|
-
this.version = options.version || "2020-
|
9912
|
+
this.version = options.version || "2020-12-06";
|
9893
9913
|
this.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || "update";
|
9894
9914
|
}
|
9895
9915
|
}
|