@azure/storage-file-share 12.16.0 → 12.17.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/dist/index.js CHANGED
@@ -334,8 +334,8 @@ function ipRangeToString(ipRange) {
334
334
 
335
335
  // Copyright (c) Microsoft Corporation.
336
336
  // Licensed under the MIT license.
337
- const SDK_VERSION = "12.16.0";
338
- const SERVICE_VERSION = "2023-08-03";
337
+ const SDK_VERSION = "12.17.0-beta.1";
338
+ const SERVICE_VERSION = "2023-11-03";
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
341
341
  const DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS = 5;
@@ -6788,7 +6788,7 @@ const timeoutInSeconds = {
6788
6788
  const version = {
6789
6789
  parameterPath: "version",
6790
6790
  mapper: {
6791
- defaultValue: "2023-08-03",
6791
+ defaultValue: "2023-11-03",
6792
6792
  isConstant: true,
6793
6793
  serializedName: "x-ms-version",
6794
6794
  type: {
@@ -10394,6 +10394,7 @@ class Pipeline {
10394
10394
  * @returns A new Pipeline object.
10395
10395
  */
10396
10396
  function newPipeline(credential, pipelineOptions = {}) {
10397
+ var _a;
10397
10398
  if (credential === undefined) {
10398
10399
  credential = new AnonymousCredential();
10399
10400
  }
@@ -10421,7 +10422,7 @@ function newPipeline(credential, pipelineOptions = {}) {
10421
10422
  factories.push(coreHttp.disableResponseDecompressionPolicy());
10422
10423
  }
10423
10424
  factories.push(coreHttp.isTokenCredential(credential)
10424
- ? attachCredential(coreHttp.bearerTokenAuthenticationPolicy(credential, StorageOAuthScopes), credential)
10425
+ ? attachCredential(coreHttp.bearerTokenAuthenticationPolicy(credential, (_a = pipelineOptions.audience) !== null && _a !== void 0 ? _a : StorageOAuthScopes), credential)
10425
10426
  : credential);
10426
10427
  return new Pipeline(factories, pipelineOptions);
10427
10428
  }
@@ -10631,7 +10632,7 @@ function convertTracingToRequestOptionsBase(options) {
10631
10632
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
10632
10633
  */
10633
10634
  const packageName = "azure-storage-file-share";
10634
- const packageVersion = "12.16.0";
10635
+ const packageVersion = "12.17.0-beta.1";
10635
10636
  class StorageClientContext extends coreHttp__namespace.ServiceClient {
10636
10637
  /**
10637
10638
  * Initializes a new instance of the StorageClientContext class.
@@ -10657,7 +10658,7 @@ class StorageClientContext extends coreHttp__namespace.ServiceClient {
10657
10658
  // Parameter assignments
10658
10659
  this.url = url;
10659
10660
  // Assigning values to Constant parameters
10660
- this.version = options.version || "2023-08-03";
10661
+ this.version = options.version || "2023-11-03";
10661
10662
  this.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || "update";
10662
10663
  }
10663
10664
  }
@@ -11424,6 +11425,19 @@ function fileLastWriteTimeToString(time) {
11424
11425
  function fileChangeTimeToString(time) {
11425
11426
  return time instanceof Date ? truncatedISO8061Date(time) : time;
11426
11427
  }
11428
+ /**
11429
+ * Defines the known cloud audiences for Storage.
11430
+ */
11431
+ exports.StorageFileAudience = void 0;
11432
+ (function (StorageFileAudience) {
11433
+ /**
11434
+ * The OAuth scope to use to retrieve an AAD token for Azure Storage.
11435
+ */
11436
+ StorageFileAudience["StorageOAuthScopes"] = "https://storage.azure.com/.default";
11437
+ })(exports.StorageFileAudience || (exports.StorageFileAudience = {}));
11438
+ function getFileServiceAccountAudience(storageAccountName) {
11439
+ return `https://${storageAccountName}.file.core.windows.net/.default`;
11440
+ }
11427
11441
 
11428
11442
  // Copyright (c) Microsoft Corporation.
11429
11443
  /**
@@ -15673,6 +15687,7 @@ exports.StorageSharedKeyCredential = StorageSharedKeyCredential;
15673
15687
  exports.StorageSharedKeyCredentialPolicy = StorageSharedKeyCredentialPolicy;
15674
15688
  exports.generateAccountSASQueryParameters = generateAccountSASQueryParameters;
15675
15689
  exports.generateFileSASQueryParameters = generateFileSASQueryParameters;
15690
+ exports.getFileServiceAccountAudience = getFileServiceAccountAudience;
15676
15691
  exports.logger = logger;
15677
15692
  exports.newPipeline = newPipeline;
15678
15693
  //# sourceMappingURL=index.js.map