@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.
@@ -15,7 +15,7 @@
15
15
  # limitations under the License.
16
16
 
17
17
  # Cloud Functions Runtime Environment.
18
- CF_RUNTIME="${CF_RUNTIME:=nodejs14}"
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 app describe --format="csv[no-heading](databaseType)")
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-cloud/nodejs-common",
3
- "version": "1.8.1-alpha",
3
+ "version": "1.8.2-beta",
4
4
  "description": "A NodeJs common library for solutions based on Cloud Functions",
5
5
  "author": "Google Inc.",
6
6
  "license": "Apache-2.0",
@@ -141,7 +141,7 @@ class DoubleClickBidManager {
141
141
  const { status } = await doubleclickbidmanager.queries.delete({ queryId });
142
142
  return status === 200;
143
143
  } catch (error) {
144
- console.error(error);
144
+ this.logger.error(error);
145
145
  return false;
146
146
  }
147
147
  }
@@ -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'}