@azure/storage-file-share 12.20.0-alpha.20230929.2 → 12.20.0-alpha.20231023.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.
@@ -852,20 +852,15 @@ export class ShareDirectoryClient extends StorageClient {
852
852
  }
853
853
  let marker;
854
854
  try {
855
- for (var _d = true, _e = __asyncValues(this.iterateFilesAndDirectoriesSegments(marker, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
855
+ for (var _d = true, _e = __asyncValues(this.iterateFilesAndDirectoriesSegments(marker, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
856
856
  _c = _f.value;
857
857
  _d = false;
858
- try {
859
- const listFilesAndDirectoriesResponse = _c;
860
- for (const file of listFilesAndDirectoriesResponse.segment.fileItems) {
861
- yield yield __await(Object.assign({ kind: "file" }, file));
862
- }
863
- for (const directory of listFilesAndDirectoriesResponse.segment.directoryItems) {
864
- yield yield __await(Object.assign({ kind: "directory" }, directory));
865
- }
858
+ const listFilesAndDirectoriesResponse = _c;
859
+ for (const file of listFilesAndDirectoriesResponse.segment.fileItems) {
860
+ yield yield __await(Object.assign({ kind: "file" }, file));
866
861
  }
867
- finally {
868
- _d = true;
862
+ for (const directory of listFilesAndDirectoriesResponse.segment.directoryItems) {
863
+ yield yield __await(Object.assign({ kind: "directory" }, directory));
869
864
  }
870
865
  }
871
866
  }
@@ -1060,20 +1055,15 @@ export class ShareDirectoryClient extends StorageClient {
1060
1055
  var _a, e_2, _b, _c;
1061
1056
  let marker;
1062
1057
  try {
1063
- for (var _d = true, _e = __asyncValues(this.iterateHandleSegments(marker, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
1058
+ for (var _d = true, _e = __asyncValues(this.iterateHandleSegments(marker, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
1064
1059
  _c = _f.value;
1065
1060
  _d = false;
1066
- try {
1067
- const listHandlesResponse = _c;
1068
- if (listHandlesResponse.handleList) {
1069
- for (const handle of listHandlesResponse.handleList) {
1070
- yield yield __await(handle);
1071
- }
1061
+ const listHandlesResponse = _c;
1062
+ if (listHandlesResponse.handleList) {
1063
+ for (const handle of listHandlesResponse.handleList) {
1064
+ yield yield __await(handle);
1072
1065
  }
1073
1066
  }
1074
- finally {
1075
- _d = true;
1076
- }
1077
1067
  }
1078
1068
  }
1079
1069
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
@@ -2211,20 +2201,15 @@ export class ShareFileClient extends StorageClient {
2211
2201
  var _a, e_3, _b, _c;
2212
2202
  let marker;
2213
2203
  try {
2214
- for (var _d = true, _e = __asyncValues(this.iterateHandleSegments(marker, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
2204
+ for (var _d = true, _e = __asyncValues(this.iterateHandleSegments(marker, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
2215
2205
  _c = _f.value;
2216
2206
  _d = false;
2217
- try {
2218
- const listHandlesResponse = _c;
2219
- if (listHandlesResponse.handleList) {
2220
- for (const handle of listHandlesResponse.handleList) {
2221
- yield yield __await(handle);
2222
- }
2207
+ const listHandlesResponse = _c;
2208
+ if (listHandlesResponse.handleList) {
2209
+ for (const handle of listHandlesResponse.handleList) {
2210
+ yield yield __await(handle);
2223
2211
  }
2224
2212
  }
2225
- finally {
2226
- _d = true;
2227
- }
2228
2213
  }
2229
2214
  }
2230
2215
  catch (e_3_1) { e_3 = { error: e_3_1 }; }