@azure/storage-file-share 12.20.0-alpha.20230607.3 → 12.20.0-alpha.20230619.3

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.
@@ -4,7 +4,7 @@ import { __asyncGenerator, __asyncValues, __await } from "tslib";
4
4
  import { isNode } from "@azure/core-util";
5
5
  import { newPipeline, Pipeline, } from "../../storage-blob/src/Pipeline";
6
6
  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";
7
- import { appendToURLPath, setURLParameter, truncatedISO8061Date, extractConnectionStringParts, getShareNameAndPathFromUrl, appendToURLQuery, httpAuthorizationToString, setURLPath, setURLQueries, EscapePath, assertResponse, } from "./utils/utils.common";
7
+ import { appendToURLPath, setURLParameter, truncatedISO8061Date, extractConnectionStringParts, getShareNameAndPathFromUrl, appendToURLQuery, httpAuthorizationToString, setURLPath, setURLQueries, EscapePath, ConvertInternalResponseOfListFiles, ConvertInternalResponseOfListHandles, assertResponse, } from "./utils/utils.common";
8
8
  import { Credential } from "../../storage-blob/src/credentials/Credential";
9
9
  import { StorageSharedKeyCredential } from "../../storage-blob/src/credentials/StorageSharedKeyCredential";
10
10
  import { AnonymousCredential } from "../../storage-blob/src/credentials/AnonymousCredential";
@@ -1018,7 +1018,9 @@ export class ShareDirectoryClient extends StorageClient {
1018
1018
  options.prefix = undefined;
1019
1019
  }
1020
1020
  return tracingClient.withSpan("ShareDirectoryClient-listFilesAndDirectoriesSegment", options, async (updatedOptions) => {
1021
- return assertResponse(await this.context.listFilesAndDirectoriesSegment(Object.assign(Object.assign({}, updatedOptions), { marker })));
1021
+ const rawResponse = assertResponse(await this.context.listFilesAndDirectoriesSegment(Object.assign(Object.assign({}, updatedOptions), { marker })));
1022
+ const wrappedResponse = Object.assign(Object.assign({}, ConvertInternalResponseOfListFiles(rawResponse)), { _response: Object.assign(Object.assign({}, rawResponse._response), { parsedBody: ConvertInternalResponseOfListFiles(rawResponse._response.parsedBody) }) });
1023
+ return wrappedResponse;
1022
1024
  });
1023
1025
  }
1024
1026
  /**
@@ -1198,7 +1200,8 @@ export class ShareDirectoryClient extends StorageClient {
1198
1200
  if (response.handleList === "") {
1199
1201
  response.handleList = undefined;
1200
1202
  }
1201
- return response;
1203
+ const wrappedResponse = Object.assign(Object.assign({}, ConvertInternalResponseOfListHandles(response)), { _response: Object.assign(Object.assign({}, response._response), { parsedBody: ConvertInternalResponseOfListHandles(response._response.parsedBody) }) });
1204
+ return wrappedResponse;
1202
1205
  });
1203
1206
  }
1204
1207
  /**
@@ -2165,7 +2168,8 @@ export class ShareFileClient extends StorageClient {
2165
2168
  if (response.handleList === "") {
2166
2169
  response.handleList = undefined;
2167
2170
  }
2168
- return response;
2171
+ const wrappedResponse = Object.assign(Object.assign({}, ConvertInternalResponseOfListHandles(response)), { _response: Object.assign(Object.assign({}, response._response), { parsedBody: ConvertInternalResponseOfListHandles(response._response.parsedBody) }) });
2172
+ return wrappedResponse;
2169
2173
  });
2170
2174
  }
2171
2175
  /**