@pi-r/azure 0.11.0 → 0.11.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/client/index.js +2 -2
- package/package.json +6 -6
package/client/index.js
CHANGED
|
@@ -221,7 +221,7 @@ async function copyObject(credential, bucketSource, keySource, bucket, key, opti
|
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
async function executeQuery(credential, data, sessionKey) {
|
|
224
|
-
return (await executeBatchQuery.call(this, credential, [data], sessionKey))
|
|
224
|
+
return (await executeBatchQuery.call(this, credential, [data], sessionKey)).at(0) || [];
|
|
225
225
|
}
|
|
226
226
|
async function executeBatchQuery(credential, batch, sessionKey) {
|
|
227
227
|
const length = batch.length;
|
|
@@ -298,7 +298,7 @@ async function executeBatchQuery(credential, batch, sessionKey) {
|
|
|
298
298
|
}
|
|
299
299
|
if (query) {
|
|
300
300
|
const iter = items.query(query, attachSignal(options));
|
|
301
|
-
({ resources: rows } = await (options.maxItemCount ? iter.fetchNext() : iter.fetchAll()));
|
|
301
|
+
({ resources: rows } = await (options.enableQueryControl && options.maxItemCount ? iter.fetchNext() : iter.fetchAll()));
|
|
302
302
|
}
|
|
303
303
|
else {
|
|
304
304
|
({ resources: rows } = await items.readAll(attachSignal(options)).fetchAll());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/azure",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Azure cloud functions for E-mc.",
|
|
5
5
|
"main": "client/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"homepage": "https://github.com/anpham6/pi-r#readme",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@e-mc/cloud": "^0.13.
|
|
23
|
-
"@e-mc/module": "^0.13.
|
|
24
|
-
"@e-mc/types": "^0.13.
|
|
25
|
-
"@azure/cosmos": "^4.
|
|
22
|
+
"@e-mc/cloud": "^0.13.9",
|
|
23
|
+
"@e-mc/module": "^0.13.9",
|
|
24
|
+
"@e-mc/types": "^0.13.9",
|
|
25
|
+
"@azure/cosmos": "^4.9.2",
|
|
26
26
|
"@azure/identity": "*",
|
|
27
|
-
"@azure/storage-blob": "^12.
|
|
27
|
+
"@azure/storage-blob": "^12.31.0"
|
|
28
28
|
}
|
|
29
29
|
}
|