@pi-r/azure 0.10.2 → 0.10.4
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/client/index.js +2 -1
- package/download/index.js +1 -1
- package/package.json +5 -5
package/client/index.js
CHANGED
|
@@ -170,6 +170,7 @@ async function deleteObjectsV3(credential, bucket, options = {}, service = 'azur
|
|
|
170
170
|
recursive = options.recursive;
|
|
171
171
|
delete options.recursive;
|
|
172
172
|
}
|
|
173
|
+
options.abortSignal = this.signal;
|
|
173
174
|
options.includeUncommitedBlobs ??= true;
|
|
174
175
|
const tasks = [];
|
|
175
176
|
let fileCount = 0;
|
|
@@ -268,7 +269,7 @@ async function executeBatchQuery(credential, batch, sessionKey) {
|
|
|
268
269
|
}
|
|
269
270
|
if (query) {
|
|
270
271
|
const iter = items.query(query, attachSignal(options));
|
|
271
|
-
({ resources: rows } = await (options.maxItemCount ? iter.fetchNext() : iter.fetchAll()));
|
|
272
|
+
({ resources: rows } = await (options.enableQueryControl && options.maxItemCount ? iter.fetchNext() : iter.fetchAll()));
|
|
272
273
|
}
|
|
273
274
|
else {
|
|
274
275
|
({ resources: rows } = await items.readAll(attachSignal(options)).fetchAll());
|
package/download/index.js
CHANGED
|
@@ -31,7 +31,7 @@ function download(credential, service = 'azure') {
|
|
|
31
31
|
const deleteObject = target.deleteObject;
|
|
32
32
|
if (deleteObject) {
|
|
33
33
|
const location = Cloud.joinPath(Bucket, Key);
|
|
34
|
-
containerClient.delete((0, types_1.isPlainObject)(deleteObject) ?
|
|
34
|
+
containerClient.delete((0, types_1.isPlainObject)(deleteObject) ? { ...deleteObject, abortSignal: this.signal } : { abortSignal: this.signal })
|
|
35
35
|
.then(() => {
|
|
36
36
|
this.formatMessage(64, service, "Delete success", location, { ...Cloud.LOG_CLOUD_DELETE });
|
|
37
37
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/azure",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": "Azure cloud functions for E-mc.",
|
|
5
5
|
"main": "client/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"homepage": "https://github.com/anpham6/pi-r#readme",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@e-mc/cloud": "^0.12.
|
|
23
|
-
"@e-mc/module": "^0.12.
|
|
24
|
-
"@e-mc/types": "^0.12.
|
|
25
|
-
"@azure/cosmos": "^4.5.
|
|
22
|
+
"@e-mc/cloud": "^0.12.16",
|
|
23
|
+
"@e-mc/module": "^0.12.16",
|
|
24
|
+
"@e-mc/types": "^0.12.16",
|
|
25
|
+
"@azure/cosmos": "^4.5.1",
|
|
26
26
|
"@azure/identity": "*",
|
|
27
27
|
"@azure/storage-blob": "^12.28.0"
|
|
28
28
|
}
|