@azure/storage-file-share 12.9.0-alpha.20220104.2 → 12.9.0-alpha.20220128.2
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 +2 -2
- package/README.md +6 -5
- package/dist/index.js +205 -173
- package/dist/index.js.map +1 -1
- package/package.json +34 -35
- package/{typings → types}/3.1/storage-file-share.d.ts +42 -0
- /package/{typings → types}/latest/storage-file-share.d.ts +0 -0
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.
|
4
|
+
"version": "12.9.0-alpha.20220128.2",
|
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": "./
|
18
|
+
"types": "./types/latest/storage-file-share.d.ts",
|
19
19
|
"typesVersions": {
|
20
20
|
"<3.6": {
|
21
21
|
"*": [
|
22
|
-
"./
|
22
|
+
"./types/3.1/storage-file-share.d.ts"
|
23
23
|
]
|
24
24
|
}
|
25
25
|
},
|
@@ -28,20 +28,20 @@
|
|
28
28
|
},
|
29
29
|
"scripts": {
|
30
30
|
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
|
31
|
-
"build:browser": "tsc -p . &&
|
32
|
-
"build:node": "tsc -p . &&
|
33
|
-
"build:nodebrowser": "
|
34
|
-
"build:samples": "cross-env ONLY_NODE=true npm run build && npm run build:prep-samples",
|
31
|
+
"build:browser": "tsc -p . && dev-tool run bundle",
|
32
|
+
"build:node": "tsc -p . && dev-tool run bundle",
|
33
|
+
"build:nodebrowser": "dev-tool run bundle",
|
35
34
|
"build:prep-samples": "dev-tool samples prep && cd dist-samples && tsc",
|
36
|
-
"build:test": "tsc -p . &&
|
37
|
-
"build:types": "downlevel-dts
|
38
|
-
"build": "npm run clean && tsc -p . &&
|
39
|
-
"
|
40
|
-
"
|
41
|
-
"clean
|
35
|
+
"build:test": "tsc -p . && dev-tool run bundle",
|
36
|
+
"build:types": "downlevel-dts types/latest types/3.1",
|
37
|
+
"build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local && npm run build:types",
|
38
|
+
"build:samples": "echo Obsolete.",
|
39
|
+
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
40
|
+
"clean": "rimraf dist dist-* types temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml",
|
41
|
+
"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
42
|
"extract-api": "tsc -p . && api-extractor run --local",
|
43
|
-
"execute:samples": "
|
44
|
-
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
43
|
+
"execute:samples": "dev-tool samples run samples-dev",
|
44
|
+
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
45
45
|
"generate:client": "autorest --typescript ./swagger/README.md",
|
46
46
|
"integration-test:browser": "karma start --single-run",
|
47
47
|
"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\"",
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",
|
54
54
|
"test": "npm run clean && npm run build:test && npm run unit-test",
|
55
55
|
"unit-test:browser": "karma start --single-run",
|
56
|
-
"unit-test:node": "mocha --require
|
56
|
+
"unit-test:node": "mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"",
|
57
57
|
"unit-test": "npm run unit-test:node && npm run unit-test:browser"
|
58
58
|
},
|
59
59
|
"files": [
|
@@ -61,8 +61,8 @@
|
|
61
61
|
"ThirdPartyNotices.txt",
|
62
62
|
"dist/",
|
63
63
|
"dist-esm/src/",
|
64
|
-
"
|
65
|
-
"
|
64
|
+
"types/latest/storage-file-share.d.ts",
|
65
|
+
"types/3.1/storage-file-share.d.ts",
|
66
66
|
"README.md",
|
67
67
|
"LICENSE"
|
68
68
|
],
|
@@ -102,14 +102,22 @@
|
|
102
102
|
},
|
103
103
|
"//sampleConfiguration": {
|
104
104
|
"skip": [
|
105
|
-
"
|
106
|
-
"
|
107
|
-
"
|
105
|
+
"advancedRequestOptions.js",
|
106
|
+
"anonymousAuth.js",
|
107
|
+
"shareServiceClient.js",
|
108
108
|
"customPipeline.js",
|
109
|
-
"
|
110
|
-
"
|
111
|
-
"
|
112
|
-
]
|
109
|
+
"listFilesAndDirectories.js",
|
110
|
+
"listShares.js",
|
111
|
+
"sharedKeyAuth.js"
|
112
|
+
],
|
113
|
+
"productName": "Azure Storage File Share",
|
114
|
+
"productSlugs": [
|
115
|
+
"azure",
|
116
|
+
"azure-storage"
|
117
|
+
],
|
118
|
+
"requiredResources": {
|
119
|
+
"Azure Storage Account": "https://docs.microsoft.com/azure/storage/common/storage-account-overview"
|
120
|
+
}
|
113
121
|
},
|
114
122
|
"dependencies": {
|
115
123
|
"@azure/abort-controller": "^1.0.0",
|
@@ -128,17 +136,13 @@
|
|
128
136
|
"@azure-tools/test-recorder": "^1.0.0",
|
129
137
|
"@azure/test-utils-perf": ">=1.0.0-alpha <1.0.0-alphb",
|
130
138
|
"@microsoft/api-extractor": "^7.18.11",
|
131
|
-
"@rollup/plugin-commonjs": "11.0.2",
|
132
|
-
"@rollup/plugin-multi-entry": "^3.0.0",
|
133
|
-
"@rollup/plugin-node-resolve": "^8.0.0",
|
134
|
-
"@rollup/plugin-replace": "^2.2.0",
|
135
139
|
"@types/chai": "^4.1.6",
|
136
140
|
"@types/mocha": "^7.0.2",
|
137
141
|
"@types/node": "^12.0.0",
|
138
142
|
"chai": "^4.2.0",
|
139
143
|
"cross-env": "^7.0.2",
|
140
144
|
"dotenv": "^8.2.0",
|
141
|
-
"downlevel-dts": "
|
145
|
+
"downlevel-dts": "^0.8.0",
|
142
146
|
"es6-promise": "^4.2.5",
|
143
147
|
"eslint": "^7.15.0",
|
144
148
|
"esm": "^3.2.18",
|
@@ -162,11 +166,6 @@
|
|
162
166
|
"prettier": "^2.5.1",
|
163
167
|
"puppeteer": "^10.2.0",
|
164
168
|
"rimraf": "^3.0.0",
|
165
|
-
"rollup": "^1.16.3",
|
166
|
-
"rollup-plugin-shim": "^1.0.0",
|
167
|
-
"rollup-plugin-sourcemaps": "^0.4.2",
|
168
|
-
"rollup-plugin-terser": "^5.1.1",
|
169
|
-
"rollup-plugin-visualizer": "^4.0.4",
|
170
169
|
"source-map-support": "^0.5.9",
|
171
170
|
"ts-node": "^10.0.0",
|
172
171
|
"typescript": "~4.2.0",
|
@@ -2583,6 +2583,11 @@ export declare class SASQueryParameters {
|
|
2583
2583
|
* Inner value of getter ipRange.
|
2584
2584
|
*/
|
2585
2585
|
private readonly ipRangeInner?;
|
2586
|
+
/*
|
2587
|
+
* Optional. IP range allowed for this SAS.
|
2588
|
+
*
|
2589
|
+
* @readonly
|
2590
|
+
*/
|
2586
2591
|
readonly ipRange: SasIPRange | undefined;
|
2587
2592
|
/**
|
2588
2593
|
* Creates an instance of SASQueryParameters.
|
@@ -2780,6 +2785,9 @@ export declare class ShareClient extends StorageClient {
|
|
2780
2785
|
*/
|
2781
2786
|
private context;
|
2782
2787
|
private _name;
|
2788
|
+
/*
|
2789
|
+
* The name of the share
|
2790
|
+
*/
|
2783
2791
|
readonly name: string;
|
2784
2792
|
/**
|
2785
2793
|
* @param connectionString - Account connection string or a SAS connection string of an Azure storage account.
|
@@ -2847,6 +2855,12 @@ export declare class ShareClient extends StorageClient {
|
|
2847
2855
|
* @returns The ShareDirectoryClient object for the given directory name.
|
2848
2856
|
*/
|
2849
2857
|
getDirectoryClient(directoryName: string): ShareDirectoryClient;
|
2858
|
+
/*
|
2859
|
+
* Gets the directory client for the root directory of this share.
|
2860
|
+
* Note that the root directory always exists and cannot be deleted.
|
2861
|
+
*
|
2862
|
+
* @readonly A new ShareDirectoryClient object for the root directory.
|
2863
|
+
*/
|
2850
2864
|
readonly rootDirectoryClient: ShareDirectoryClient;
|
2851
2865
|
/**
|
2852
2866
|
* Creates a new subdirectory under this share.
|
@@ -3248,8 +3262,17 @@ export declare class ShareDirectoryClient extends StorageClient {
|
|
3248
3262
|
private _shareName;
|
3249
3263
|
private _path;
|
3250
3264
|
private _name;
|
3265
|
+
/*
|
3266
|
+
* The share name corresponding to this directory client
|
3267
|
+
*/
|
3251
3268
|
readonly shareName: string;
|
3269
|
+
/*
|
3270
|
+
* The full path of the directory
|
3271
|
+
*/
|
3252
3272
|
readonly path: string;
|
3273
|
+
/*
|
3274
|
+
* The name of the directory
|
3275
|
+
*/
|
3253
3276
|
readonly name: string;
|
3254
3277
|
/**
|
3255
3278
|
* Creates an instance of DirectoryClient.
|
@@ -3728,8 +3751,17 @@ export declare class ShareFileClient extends StorageClient {
|
|
3728
3751
|
private _shareName;
|
3729
3752
|
private _path;
|
3730
3753
|
private _name;
|
3754
|
+
/*
|
3755
|
+
* The share name corresponding to this file client
|
3756
|
+
*/
|
3731
3757
|
readonly shareName: string;
|
3758
|
+
/*
|
3759
|
+
* The full path of the file
|
3760
|
+
*/
|
3732
3761
|
readonly path: string;
|
3762
|
+
/*
|
3763
|
+
* The name of the file
|
3764
|
+
*/
|
3733
3765
|
readonly name: string;
|
3734
3766
|
/**
|
3735
3767
|
* Creates an instance of ShareFileClient.
|
@@ -4512,7 +4544,17 @@ export declare class ShareLeaseClient {
|
|
4512
4544
|
private _url;
|
4513
4545
|
private fileOrShare;
|
4514
4546
|
private isShare;
|
4547
|
+
/*
|
4548
|
+
* Gets the lease Id.
|
4549
|
+
*
|
4550
|
+
* @readonly
|
4551
|
+
*/
|
4515
4552
|
readonly leaseId: string;
|
4553
|
+
/*
|
4554
|
+
* Gets the url.
|
4555
|
+
*
|
4556
|
+
* @readonly
|
4557
|
+
*/
|
4516
4558
|
readonly url: string;
|
4517
4559
|
/**
|
4518
4560
|
* Creates an instance of ShareLeaseClient.
|
File without changes
|