@azure/storage-file-share 12.10.0-alpha.20220419.3 → 12.10.0-alpha.20220512.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,15 @@
1
1
  # Release History
2
2
 
3
+ ## 12.10.0 (2022-05-12)
4
+
5
+ ### Features Added
6
+
7
+ - Includes all features released in 12.10.0-beta.1.
8
+
9
+ ### Bugs Fixed
10
+
11
+ - Refined user-agent value to avoid failure when os information is not available on some platforms.
12
+
3
13
  ## 12.10.0-beta.1 (2022-04-19)
4
14
 
5
15
  ### 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.10.0-beta.1";
337
+ const SDK_VERSION = "12.10.0";
338
338
  const SERVICE_VERSION = "2021-06-08";
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
@@ -10006,7 +10006,10 @@ class TelemetryPolicyFactory {
10006
10006
  userAgentInfo.push(libInfo);
10007
10007
  }
10008
10008
  // e.g. (NODE-VERSION 4.9.1; Windows_NT 10.0.16299)
10009
- const runtimeInfo = `(NODE-VERSION ${process.version}; ${os__namespace.type()} ${os__namespace.release()})`;
10009
+ let runtimeInfo = `(NODE-VERSION ${process.version})`;
10010
+ if (os__namespace) {
10011
+ runtimeInfo = `(NODE-VERSION ${process.version}; ${os__namespace.type()} ${os__namespace.release()})`;
10012
+ }
10010
10013
  if (userAgentInfo.indexOf(runtimeInfo) === -1) {
10011
10014
  userAgentInfo.push(runtimeInfo);
10012
10015
  }
@@ -10390,7 +10393,7 @@ function convertTracingToRequestOptionsBase(options) {
10390
10393
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
10391
10394
  */
10392
10395
  const packageName = "azure-storage-file-share";
10393
- const packageVersion = "12.10.0-beta.1";
10396
+ const packageVersion = "12.10.0";
10394
10397
  class StorageClientContext extends coreHttp__namespace.ServiceClient {
10395
10398
  /**
10396
10399
  * Initializes a new instance of the StorageClientContext class.