firebase-functions 4.4.0 → 4.4.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.
@@ -136,7 +136,7 @@ class DataSnapshot {
136
136
  */
137
137
  exists() {
138
138
  const val = this.val();
139
- if (!val || val === null) {
139
+ if (typeof val === "undefined" || val === null) {
140
140
  return false;
141
141
  }
142
142
  if (typeof val === "object" && Object.keys(val).length === 0) {
@@ -129,12 +129,15 @@ function entryFromArgs(severity, args) {
129
129
  if (severity === "ERROR" && !args.find((arg) => arg instanceof Error)) {
130
130
  message = new Error(message).stack || message;
131
131
  }
132
- return {
132
+ const out = {
133
133
  "logging.googleapis.com/trace": (ctx === null || ctx === void 0 ? void 0 : ctx.traceId)
134
134
  ? `projects/${process.env.GCLOUD_PROJECT}/traces/${ctx.traceId}`
135
135
  : undefined,
136
136
  ...entry,
137
137
  severity,
138
- message,
139
138
  };
139
+ if (message) {
140
+ out.message = message;
141
+ }
142
+ return out;
140
143
  }
@@ -5,7 +5,7 @@ export { RESET_VALUE } from "../common/options";
5
5
  /**
6
6
  * List of all regions supported by Cloud Functions v2
7
7
  */
8
- export type SupportedRegion = "asia-northeast1" | "europe-north1" | "europe-west1" | "europe-west4" | "us-central1" | "us-east1" | "us-west1";
8
+ export type SupportedRegion = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "europe-north1" | "europe-west1" | "europe-west4" | "us-central1" | "us-east1" | "us-east4" | "us-west1" | "asia-east2" | "asia-northeast3" | "asia-southeast1" | "asia-southeast2" | "asia-south1" | "australia-southeast1" | "europe-central2" | "europe-west2" | "europe-west3" | "europe-west6" | "northamerica-northeast1" | "southamerica-east1" | "us-west2" | "us-west3" | "us-west4";
9
9
  /**
10
10
  * List of available memory options supported by Cloud Functions.
11
11
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-functions",
3
- "version": "4.4.0",
3
+ "version": "4.4.1",
4
4
  "description": "Firebase SDK for Cloud Functions",
5
5
  "keywords": [
6
6
  "firebase",