@azure/storage-blob 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
@@ -414,7 +414,7 @@
414
414
  - Connection string method is supported only in Node.js (not browsers).
415
415
  - Creation/Deletion of child resources are duplicated to parent client type.
416
416
  - HTTP proxy support is added (Node.js only).
417
- - Please refer to the `proxyAuth.ts` sample in the `samples/typescript` folder.
417
+ - Please refer to the `proxyAuth.ts` sample in the `samples/v12/typescript` folder.
418
418
  - Request and response headers are now logged at INFO level, with sensitive data redacted.
419
419
  - `downloadToFile()` is added to `BlobClient`.
420
420
  - Exported `HttpRequestBody` type to allow implementation of a customized HTTP client.
package/README.md CHANGED
@@ -13,9 +13,10 @@ Use the client libraries in this package to:
13
13
  - Create/Read/List/Update/Delete Append Blobs
14
14
 
15
15
  Key links
16
- - [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob)
17
- - [Package (npm)](https://www.npmjs.com/package/@azure/storage-blob/)
18
- - [API Reference Documentation](https://docs.microsoft.com/javascript/api/@azure/storage-blob)
16
+
17
+ - [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob)
18
+ - [Package (npm)](https://www.npmjs.com/package/@azure/storage-blob/)
19
+ - [API Reference Documentation](https://docs.microsoft.com/javascript/api/@azure/storage-blob)
19
20
  - [Product documentation](https://docs.microsoft.com/azure/storage/blobs/storage-blobs-overview)
20
21
  - [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob/samples)
21
22
  - [Azure Storage Blob REST APIs](https://docs.microsoft.com/rest/api/storageservices/blob-service-rest-api)
@@ -31,7 +32,7 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
31
32
 
32
33
  ### Prerequisites
33
34
 
34
- - An [Azure subscription](https://azure.microsoft.com/free/)
35
+ - An [Azure subscription](https://azure.microsoft.com/free/)
35
36
  - A [Storage Account](https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-portal)
36
37
 
37
38
  ### Install the package
@@ -192,7 +193,7 @@ const blobServiceClient = new BlobServiceClient(
192
193
  );
193
194
  ```
194
195
 
195
- See the [Azure AD Auth sample](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/samples/javascript/azureAdAuth.js) for a complete example using this method.
196
+ See the [Azure AD Auth sample](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/samples/v12/javascript/azureAdAuth.js) for a complete example using this method.
196
197
 
197
198
  [Note - Above steps are only for Node.js]
198
199
 
@@ -352,7 +353,7 @@ async function main() {
352
353
  main();
353
354
  ```
354
355
 
355
- For a complete sample on iterating containers please see [samples/src/iterators-containers.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/samples/typescript/src/iterators-containers.ts).
356
+ For a complete sample on iterating containers please see [samples/v12/typescript/src/listContainers.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/samples/v12/typescript/src/listContainers.ts).
356
357
 
357
358
  ### Create a blob by uploading data
358
359
 
@@ -414,7 +415,7 @@ async function main() {
414
415
  main();
415
416
  ```
416
417
 
417
- For a complete sample on iterating blobs please see [samples/src/iterators-blobs.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/samples/typescript/src/iterators-blobs.ts).
418
+ For a complete sample on iterating blobs please see [samples/v12/typescript/src/listBlobsFlat.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/samples/v12/typescript/src/listBlobsFlat.ts).
418
419
 
419
420
  ### Download a blob and convert it to a string (Node.js)
420
421
 
@@ -503,7 +504,7 @@ async function main() {
503
504
  main();
504
505
  ```
505
506
 
506
- A complete example of basic scenarios is at [samples/src/basic.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/samples/typescript/src/basic.ts).
507
+ A complete example of simple scenarios is at [samples/v12/typescript/src/sharedKeyAuth.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/samples/v12/typescript/src/sharedKeyAuth.ts).
507
508
 
508
509
  ## Troubleshooting
509
510
 
@@ -519,8 +520,8 @@ setLogLevel("info");
519
520
 
520
521
  More code samples:
521
522
 
522
- - [Blob Storage Samples (JavaScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob/samples/javascript)
523
- - [Blob Storage Samples (TypeScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob/samples/typescript)
523
+ - [Blob Storage Samples (JavaScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob/samples/v12/javascript)
524
+ - [Blob Storage Samples (TypeScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob/samples/v12/typescript)
524
525
  - [Blob Storage Test Cases](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob/test/)
525
526
 
526
527
  ## Contributing
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@azure/storage-blob",
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 - Blob",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist-esm/storage-blob/src/index.js",
@@ -20,11 +20,11 @@
20
20
  "os": false,
21
21
  "process": false
22
22
  },
23
- "types": "./typings/latest/storage-blob.d.ts",
23
+ "types": "./types/latest/storage-blob.d.ts",
24
24
  "typesVersions": {
25
25
  "<3.6": {
26
26
  "*": [
27
- "./typings/3.1/storage-blob.d.ts"
27
+ "./types/3.1/storage-blob.d.ts"
28
28
  ]
29
29
  }
30
30
  },
@@ -35,17 +35,16 @@
35
35
  "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
36
36
  "build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1",
37
37
  "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1",
38
- "build:samples": "npm run build && npm run build:prep-samples",
39
- "build:prep-samples": "dev-tool samples prep && cd dist-samples && tsc",
38
+ "build:samples": "echo Obsolete;",
40
39
  "build:test": "tsc -p . && rollup -c 2>&1",
41
- "build:types": "downlevel-dts typings/latest typings/3.1",
40
+ "build:types": "downlevel-dts types/latest types/3.1",
42
41
  "build": "npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local && npm run build:types",
43
- "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
44
- "clean": "rimraf dist dist-* typings temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml",
45
- "clean:samples": "rimraf samples/javascript/node_modules samples/typescript/node_modules samples/typescript/dist samples/typescript/package-lock.json samples/javascript/package-lock.json",
42
+ "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
43
+ "clean": "rimraf dist dist-* types temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml",
44
+ "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",
46
45
  "extract-api": "tsc -p . && api-extractor run --local",
47
- "execute:samples": "npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/src/",
48
- "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
46
+ "execute:samples": "dev-tool samples run samples-dev",
47
+ "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
49
48
  "integration-test:browser": "karma start --single-run",
50
49
  "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/storage-blob/test/*.spec.js\" \"dist-esm/storage-blob/test/node/*.spec.js\"",
51
50
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
@@ -67,8 +66,8 @@
67
66
  "dist-esm/storage-blob/src/",
68
67
  "dist-esm/storage-internal-avro/src/",
69
68
  "dist-esm/storage-common/src/",
70
- "typings/latest/storage-blob.d.ts",
71
- "typings/3.1/storage-blob.d.ts",
69
+ "types/latest/storage-blob.d.ts",
70
+ "types/3.1/storage-blob.d.ts",
72
71
  "README.md",
73
72
  "LICENSE"
74
73
  ],
@@ -108,19 +107,25 @@
108
107
  },
109
108
  "//sampleConfiguration": {
110
109
  "skip": [
111
- "advanced.js",
112
- "anonymousCred.js",
110
+ "advancedRequestOptions.js",
111
+ "anonymousAuth.js",
113
112
  "azureAdAuth.js",
114
- "basic.js",
115
113
  "customPipeline.js",
116
114
  "customizedClientHeaders.js",
117
- "iterators-blobs-hierarchy.js",
118
- "iterators-blobs.js",
119
- "iterators-containers.js",
120
- "iterators-without-await.js",
121
- "readingSnapshot.js",
122
- "sharedKeyCred.js"
123
- ]
115
+ "listBlobsByHierarchy.js",
116
+ "listBlobs.js",
117
+ "listContainers.js",
118
+ "snapshots.js",
119
+ "sharedKeyAuth.js"
120
+ ],
121
+ "productName": "Azure Storage Blob",
122
+ "productSlugs": [
123
+ "azure",
124
+ "azure-storage"
125
+ ],
126
+ "requiredResources": {
127
+ "Azure Storage Account": "https://docs.microsoft.com/azure/storage/common/storage-account-overview"
128
+ }
124
129
  },
125
130
  "dependencies": {
126
131
  "@azure/abort-controller": "^1.0.0",
File without changes
File without changes