@firebase/firestore 3.1.0-2021822203916 → 3.1.0

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.
@@ -6,7 +6,7 @@ import { createMockUserToken, getModularInstance } from '@firebase/util';
6
6
  import nodeFetch from 'node-fetch';
7
7
  import { randomBytes as randomBytes$1 } from 'crypto';
8
8
 
9
- const version$1 = "3.1.0-2021822203916";
9
+ const version$1 = "3.1.0";
10
10
 
11
11
  /**
12
12
  * @license
@@ -59,7 +59,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
59
59
  User.FIRST_PARTY = new User('first-party-uid');
60
60
  User.MOCK_USER = new User('mock-user');
61
61
 
62
- const version = "9.1.0-2021822203916";
62
+ const version = "9.1.0";
63
63
 
64
64
  /**
65
65
  * @license
@@ -1069,14 +1069,10 @@ function valueDescription(input) {
1069
1069
  return fail();
1070
1070
  }
1071
1071
  }
1072
- /** Hacky method to try to get the constructor name for an object. */
1072
+ /** try to get the constructor name for an object. */
1073
1073
  function tryGetCustomObjectType(input) {
1074
1074
  if (input.constructor) {
1075
- const funcNameRegex = /function\s+([^\s(]+)\s*\(/;
1076
- const results = funcNameRegex.exec(input.constructor.toString());
1077
- if (results && results.length > 1) {
1078
- return results[1];
1079
- }
1075
+ return input.constructor.name;
1080
1076
  }
1081
1077
  return null;
1082
1078
  }