firebase-functions 3.21.1 → 3.21.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.
@@ -110,7 +110,11 @@ function userRecordConstructor(wireData) {
110
110
  };
111
111
  json.metadata = record.metadata.toJSON();
112
112
  json.customClaims = JSON.parse(JSON.stringify(record.customClaims));
113
- json.providerData = record.providerData.map((entry) => entry.toJSON());
113
+ json.providerData = record.providerData.map((entry) => {
114
+ const newEntry = { ...entry };
115
+ newEntry.toJSON = () => entry;
116
+ return newEntry;
117
+ });
114
118
  return json;
115
119
  };
116
120
  return record;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-functions",
3
- "version": "3.21.1",
3
+ "version": "3.21.2",
4
4
  "description": "Firebase SDK for Cloud Functions",
5
5
  "keywords": [
6
6
  "firebase",