@azure/storage-file-share 12.9.0-alpha.20220111.2 → 12.9.0-alpha.20220113.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.
package/CHANGELOG.md CHANGED
@@ -244,7 +244,7 @@
244
244
  - Added `DirectoryClient.listHandlesSegment()` and `FileClient.listHandlesSegment()` to returns a list of open handles on a directory or a file.
245
245
  - Added `DirectoryClient.forceCloseHandlesSegment()`, `FileClient.forceCloseHandlesSegment()`, `DirectoryClient.forceCloseHandle()` and `FileClient.forceCloseHandle()` to close handles.
246
246
  - Pass through `options.abortSignal` to the optional `abortSignal` attribute in option bags instead of using `AbortSignal.none` as the default value when `options.abortSignal` is not specified.
247
- - Basic HTTP proxy authentication support is added. Proxy settings can be passed in the options while creating a new client. Example - [typescript/src/proxyAuth.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-file-share/samples/typescript/src/proxyAuth.ts)
247
+ - Basic HTTP proxy authentication support is added. Proxy settings can be passed in the options while creating a new client. Example - [typescript/src/proxyAuth.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-file-share/samples/v12/typescript/src/proxyAuth.ts)
248
248
  - Connection strings for explicit storage endpoints are supported. - [Configure Azure Storage connection strings](https://docs.microsoft.com/azure/storage/common/storage-configure-connection-string#create-a-connection-string-for-an-explicit-storage-endpoint)
249
249
 
250
250
  ## 12.0.0-preview.2 (2019-08-01)
@@ -285,7 +285,7 @@
285
285
  - Creation/Deletion of child resources are duplicated to parent client type.
286
286
  - HTTP proxy support is added (Node.js only).
287
287
 
288
- - Please refer to the `proxyAuth.ts` sample in the `samples/typescript` folder.
288
+ - Please refer to the `proxyAuth.ts` sample in the `samples/v12/typescript` folder.
289
289
 
290
290
  - Request and response headers are now logged at INFO level, with sensitive data redacted.
291
291
  - `downloadToFile()` is added to `FileClient`.
package/README.md CHANGED
@@ -16,6 +16,7 @@ Use the client libraries in this package to:
16
16
  > for Azure Storage Files DataLake and provide a consistent set of APIs for working with files on Azure.
17
17
 
18
18
  Key links:
19
+
19
20
  - [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-file-share)
20
21
  - [Package (npm)](https://www.npmjs.com/package/@azure/storage-file-share/)
21
22
  - [API Reference Documentation](https://docs.microsoft.com/javascript/api/@azure/storage-file-share)
@@ -34,7 +35,7 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
34
35
 
35
36
  ### Prerequisites
36
37
 
37
- - An [Azure subscription](https://azure.microsoft.com/free/)
38
+ - An [Azure subscription](https://azure.microsoft.com/free/)
38
39
  - A [Storage Account](https://docs.microsoft.com/azure/storage/common/storage-account-create)
39
40
 
40
41
  ### Install the package
@@ -388,7 +389,7 @@ async function main() {
388
389
  main();
389
390
  ```
390
391
 
391
- For a complete sample on iterating please see [samples/typescript/src/iterators-files-and-directories.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-file-share/samples/typescript/src/iterators-files-and-directories.ts).
392
+ For a complete sample on iterating please see [samples/v12/typescript/src/listFilesAndDirectories.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-file-share/samples/v12/typescript/src/listFilesAndDirectories.ts).
392
393
 
393
394
  ### Download a file and convert it to a string (Node.js)
394
395
 
@@ -481,7 +482,7 @@ async function blobToString(blob) {
481
482
  main();
482
483
  ```
483
484
 
484
- A complete example of basic scenarios is at [samples/typescript/src/basic.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-file-share/samples/typescript/src/basic.ts).
485
+ A complete example of simple `ShareServiceClient` scenarios is at [samples/v12/typescript/src/shareSerivceClient.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-file-share/samples/v12/typescript/src/shareServiceClient.ts).
485
486
 
486
487
  ## Troubleshooting
487
488
 
@@ -497,8 +498,8 @@ setLogLevel("info");
497
498
 
498
499
  More code samples
499
500
 
500
- - [File Share Storage Samples (JavaScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-file-share/samples/javascript)
501
- - [File Share Storage Samples (TypeScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-file-share/samples/typescript)
501
+ - [File Share Storage Samples (JavaScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-file-share/samples/v12/javascript)
502
+ - [File Share Storage Samples (TypeScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-file-share/samples/v12/typescript)
502
503
  - [File Share Storage Test Cases](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-file-share/test)
503
504
 
504
505
  ## Contributing
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.9.0-alpha.20220111.2",
4
+ "version": "12.9.0-alpha.20220113.3",
5
5
  "description": "Microsoft Azure Storage SDK for JavaScript - File",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist-esm/src/index.js",
@@ -15,11 +15,11 @@
15
15
  "os": false,
16
16
  "process": false
17
17
  },
18
- "types": "./typings/latest/storage-file-share.d.ts",
18
+ "types": "./types/latest/storage-file-share.d.ts",
19
19
  "typesVersions": {
20
20
  "<3.6": {
21
21
  "*": [
22
- "./typings/3.1/storage-file-share.d.ts"
22
+ "./types/3.1/storage-file-share.d.ts"
23
23
  ]
24
24
  }
25
25
  },
@@ -31,17 +31,16 @@
31
31
  "build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1",
32
32
  "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1",
33
33
  "build:nodebrowser": "rollup -c 2>&1",
34
- "build:samples": "npm run build && npm run build:prep-samples",
35
- "build:prep-samples": "dev-tool samples prep && cd dist-samples && tsc",
34
+ "build:samples": "echo Obsolete.",
36
35
  "build:test": "tsc -p . && rollup -c 2>&1",
37
- "build:types": "downlevel-dts typings/latest typings/3.1",
36
+ "build:types": "downlevel-dts types/latest types/3.1",
38
37
  "build": "npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local && npm run build:types",
39
- "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
40
- "clean": "rimraf dist dist-* typings temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml",
41
- "clean:samples": "rimraf samples/javascript/node_modules samples/typescript/node_modules samples/typescript/dist samples/typescript/package-lock.json samples/javascript/package-lock.json",
38
+ "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
39
+ "clean": "rimraf dist dist-* types temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml",
40
+ "clean:samples": "rimraf samples/v12/javascript/node_modules samples/v12/typescript/node_modules samples/v12/typescript/dist samples/v12/typescript/package-lock.json samples/v12/javascript/package-lock.json",
42
41
  "extract-api": "tsc -p . && api-extractor run --local",
43
- "execute:samples": "npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/src/",
44
- "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
42
+ "execute:samples": "dev-tool samples run samples-dev",
43
+ "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
45
44
  "generate:client": "autorest --typescript ./swagger/README.md",
46
45
  "integration-test:browser": "karma start --single-run",
47
46
  "integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --full-trace -t 300000 \"dist-esm/test/*.spec.js\" \"dist-esm/test/node/*.spec.js\"",
@@ -61,8 +60,8 @@
61
60
  "ThirdPartyNotices.txt",
62
61
  "dist/",
63
62
  "dist-esm/src/",
64
- "typings/latest/storage-file-share.d.ts",
65
- "typings/3.1/storage-file-share.d.ts",
63
+ "types/latest/storage-file-share.d.ts",
64
+ "types/3.1/storage-file-share.d.ts",
66
65
  "README.md",
67
66
  "LICENSE"
68
67
  ],
@@ -102,14 +101,22 @@
102
101
  },
103
102
  "//sampleConfiguration": {
104
103
  "skip": [
105
- "advanced.js",
106
- "anonymousCred.js",
107
- "basic.js",
104
+ "advancedRequestOptions.js",
105
+ "anonymousAuth.js",
106
+ "shareServiceClient.js",
108
107
  "customPipeline.js",
109
- "iterators-files-and-directories.js",
110
- "iterators-shares.js",
111
- "sharedKeyCred.js"
112
- ]
108
+ "listFilesAndDirectories.js",
109
+ "listShares.js",
110
+ "sharedKeyAuth.js"
111
+ ],
112
+ "productName": "Azure Storage File Share",
113
+ "productSlugs": [
114
+ "azure",
115
+ "azure-storage"
116
+ ],
117
+ "requiredResources": {
118
+ "Azure Storage Account": "https://docs.microsoft.com/azure/storage/common/storage-account-overview"
119
+ }
113
120
  },
114
121
  "dependencies": {
115
122
  "@azure/abort-controller": "^1.0.0",
File without changes