@pi-r/gcp 0.11.0 → 0.11.1
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 +5 -5
package/client/index.js
CHANGED
|
@@ -438,7 +438,7 @@ async function copyObject(credential, bucketSource, keySource, bucket, key, opti
|
|
|
438
438
|
});
|
|
439
439
|
}
|
|
440
440
|
async function executeQuery(credential, data, sessionKey) {
|
|
441
|
-
return (await executeBatchQuery.call(this, credential, [data], sessionKey))
|
|
441
|
+
return (await executeBatchQuery.call(this, credential, [data], sessionKey)).at(0) || [];
|
|
442
442
|
}
|
|
443
443
|
async function executeBatchQuery(credential, batch, sessionKey) {
|
|
444
444
|
const length = batch.length;
|
|
@@ -902,7 +902,7 @@ async function executeBatchQuery(credential, batch, sessionKey) {
|
|
|
902
902
|
return +unit;
|
|
903
903
|
}
|
|
904
904
|
const a = unit[0];
|
|
905
|
-
const b = unit
|
|
905
|
+
const b = unit.at(-1);
|
|
906
906
|
if (a === '[' && b === ']' || a === '{' && b === '}') {
|
|
907
907
|
try {
|
|
908
908
|
return JSON.parse(unit.replace(/\\,/g, ','));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/gcp",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Google (GCP) 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.13.
|
|
23
|
-
"@e-mc/module": "^0.13.
|
|
24
|
-
"@e-mc/types": "^0.13.
|
|
22
|
+
"@e-mc/cloud": "^0.13.5",
|
|
23
|
+
"@e-mc/module": "^0.13.5",
|
|
24
|
+
"@e-mc/types": "^0.13.5",
|
|
25
25
|
"@google-cloud/firestore": "^7.11.6",
|
|
26
|
-
"@google-cloud/storage": "^7.
|
|
26
|
+
"@google-cloud/storage": "^7.18.0"
|
|
27
27
|
}
|
|
28
28
|
}
|