@azure/storage-file-share 12.13.0-alpha.20230126.2 → 12.13.0

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.
@@ -6,7 +6,7 @@ import { SpanStatusCode } from "@azure/core-tracing";
6
6
  import { Share, Directory, File } from "./generated/src/operations";
7
7
  import { newPipeline, Pipeline } from "./Pipeline";
8
8
  import { DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS, DEFAULT_HIGH_LEVEL_CONCURRENCY, FILE_MAX_SIZE_BYTES, FILE_RANGE_MAX_SIZE_BYTES, URLConstants, FileAttributesPreserve, FileAttributesNone, } from "./utils/constants";
9
- import { appendToURLPath, setURLParameter, truncatedISO8061Date, extractConnectionStringParts, getShareNameAndPathFromUrl, appendToURLQuery, httpAuthorizationToString, setURLPath, setURLQueries, EscapePath, } from "./utils/utils.common";
9
+ import { appendToURLPath, setURLParameter, truncatedISO8061Date, extractConnectionStringParts, getShareNameAndPathFromUrl, appendToURLQuery, httpAuthorizationToString, setURLPath, setURLQueries, EscapePath, ConvertInternalResponseOfListFiles, ConvertInternalResponseOfListHandles, } from "./utils/utils.common";
10
10
  import { Credential } from "./credentials/Credential";
11
11
  import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential";
12
12
  import { AnonymousCredential } from "./credentials/AnonymousCredential";
@@ -1354,7 +1354,9 @@ export class ShareDirectoryClient extends StorageClient {
1354
1354
  options.prefix = undefined;
1355
1355
  }
1356
1356
  try {
1357
- return await this.context.listFilesAndDirectoriesSegment(Object.assign(Object.assign({ marker }, options), convertTracingToRequestOptionsBase(updatedOptions)));
1357
+ const response = await this.context.listFilesAndDirectoriesSegment(Object.assign(Object.assign({ marker }, options), convertTracingToRequestOptionsBase(updatedOptions)));
1358
+ const wrappedResponse = Object.assign(Object.assign({}, ConvertInternalResponseOfListFiles(response)), { _response: Object.assign(Object.assign({}, response._response), { parsedBody: ConvertInternalResponseOfListFiles(response._response.parsedBody) }) });
1359
+ return wrappedResponse;
1358
1360
  }
1359
1361
  catch (e) {
1360
1362
  span.setStatus({
@@ -1538,7 +1540,8 @@ export class ShareDirectoryClient extends StorageClient {
1538
1540
  if (response.handleList === "") {
1539
1541
  response.handleList = undefined;
1540
1542
  }
1541
- return response;
1543
+ const wrappedResponse = Object.assign(Object.assign({}, ConvertInternalResponseOfListHandles(response)), { _response: Object.assign(Object.assign({}, response._response), { parsedBody: ConvertInternalResponseOfListHandles(response._response.parsedBody) }) });
1544
+ return wrappedResponse;
1542
1545
  }
1543
1546
  catch (e) {
1544
1547
  span.setStatus({
@@ -2834,7 +2837,8 @@ export class ShareFileClient extends StorageClient {
2834
2837
  if (response.handleList === "") {
2835
2838
  response.handleList = undefined;
2836
2839
  }
2837
- return response;
2840
+ const wrappedResponse = Object.assign(Object.assign({}, ConvertInternalResponseOfListHandles(response)), { _response: Object.assign(Object.assign({}, response._response), { parsedBody: ConvertInternalResponseOfListHandles(response._response.parsedBody) }) });
2841
+ return wrappedResponse;
2838
2842
  }
2839
2843
  catch (e) {
2840
2844
  span.setStatus({