@azure/storage-file-share 12.25.0-alpha.20240820.1 → 12.25.0-alpha.20240821.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/README.md +5 -4
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -213,7 +213,7 @@ const serviceClient = new ShareServiceClient(
213
213
  );
214
214
 
215
215
  async function main() {
216
- let shareIter = serviceClient.listShares();
216
+ const shareIter = serviceClient.listShares();
217
217
  let i = 1;
218
218
  for await (const share of shareIter) {
219
219
  console.log(`Share${i}: ${share.name}`);
@@ -239,7 +239,7 @@ const serviceClient = new ShareServiceClient(
239
239
  );
240
240
 
241
241
  async function main() {
242
- let shareIter = serviceClient.listShares();
242
+ const shareIter = serviceClient.listShares();
243
243
  let i = 1;
244
244
  let shareItem = await shareIter.next();
245
245
  while (!shareItem.done) {
@@ -338,7 +338,7 @@ const directoryName = "<directory name>";
338
338
  async function main() {
339
339
  const directoryClient = serviceClient.getShareClient(shareName).getDirectoryClient(directoryName);
340
340
 
341
- let dirIter = directoryClient.listFilesAndDirectories();
341
+ const dirIter = directoryClient.listFilesAndDirectories();
342
342
  let i = 1;
343
343
  for await (const item of dirIter) {
344
344
  if (item.kind === "directory") {
@@ -373,7 +373,7 @@ const directoryName = "<directory name>";
373
373
  async function main() {
374
374
  const directoryClient = serviceClient.getShareClient(shareName).getDirectoryClient(directoryName);
375
375
 
376
- let dirIter = directoryClient.listFilesAndDirectories();
376
+ const dirIter = directoryClient.listFilesAndDirectories();
377
377
  let i = 1;
378
378
  let item = await dirIter.next();
379
379
  while (!item.done) {
@@ -382,6 +382,7 @@ async function main() {
382
382
  } else {
383
383
  console.log(`${i} - file\t: ${item.value.name}`);
384
384
  }
385
+ i++;
385
386
  item = await dirIter.next();
386
387
  }
387
388
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@azure/storage-file-share",
3
3
  "sdk-type": "client",
4
- "version": "12.25.0-alpha.20240820.1",
4
+ "version": "12.25.0-alpha.20240821.2",
5
5
  "description": "Microsoft Azure Storage SDK for JavaScript - File",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist-esm/storage-file-share/src/index.js",
@@ -43,8 +43,8 @@
43
43
  "integration-test:browser": "dev-tool run test:browser",
44
44
  "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/storage-file-share/test/**/*.spec.js'",
45
45
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
46
- "lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix",
47
- "lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js",
46
+ "lint:fix": "eslint package.json api-extractor.json README.md src test --fix",
47
+ "lint": "eslint package.json api-extractor.json README.md src test",
48
48
  "pack": "npm pack 2>&1",
49
49
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
50
50
  "test:node": "npm run clean && npm run build:test && npm run unit-test:node",