@google-cloud/nodejs-common 1.8.1-alpha → 1.8.2-beta
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/bin/install_functions.sh
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
# limitations under the License.
|
|
16
16
|
|
|
17
17
|
# Cloud Functions Runtime Environment.
|
|
18
|
-
CF_RUNTIME="${CF_RUNTIME:=
|
|
18
|
+
CF_RUNTIME="${CF_RUNTIME:=nodejs18}"
|
|
19
19
|
CF_MEMORY="${CF_MEMORY:=2048MB}"
|
|
20
20
|
|
|
21
21
|
# Counter for steps.
|
|
@@ -1933,7 +1933,7 @@ check_firestore_existence() {
|
|
|
1933
1933
|
local firestore mode appRegion
|
|
1934
1934
|
mode="${1}"
|
|
1935
1935
|
appRegion="${2}"
|
|
1936
|
-
firestore=$(gcloud
|
|
1936
|
+
firestore=$(gcloud firestore databases list --format="csv[no-heading](databases.type)")
|
|
1937
1937
|
if [[ -z "${firestore}" ]]; then
|
|
1938
1938
|
printf '%s\n' "Firestore is not ready. Creating a new Firestore database\
|
|
1939
1939
|
is an irreversible operation, so read carefully before continue:"
|
package/package.json
CHANGED
|
@@ -81,6 +81,7 @@ class MeasurementProtocol {
|
|
|
81
81
|
const path = (this.debugMode) ? '/debug/collect' : '/batch';
|
|
82
82
|
const requestOptions = {
|
|
83
83
|
method: 'POST',
|
|
84
|
+
responseType: 'json',
|
|
84
85
|
url: `${BASE_URL}${path}`,
|
|
85
86
|
body: payload,
|
|
86
87
|
headers: {'User-Agent': 'Tentacles/MeasurementProtocol-v1'}
|