@firebase/firestore 4.7.10-canary.ab8eb26ce → 4.7.10-canary.dcc62c031

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/dist/index.cjs.js CHANGED
@@ -9,7 +9,7 @@ var util = require('@firebase/util');
9
9
  var bloomBlob = require('@firebase/webchannel-wrapper/bloom-blob');
10
10
  var webchannelBlob = require('@firebase/webchannel-wrapper/webchannel-blob');
11
11
 
12
- const S = "@firebase/firestore", b = "4.7.10-canary.ab8eb26ce";
12
+ const S = "@firebase/firestore", b = "4.7.10-canary.dcc62c031";
13
13
 
14
14
  /**
15
15
  * @license
@@ -71,7 +71,7 @@ User.MOCK_USER = new User("mock-user");
71
71
  * See the License for the specific language governing permissions and
72
72
  * limitations under the License.
73
73
  */
74
- let D = "11.5.0-canary.ab8eb26ce";
74
+ let D = "11.5.0-canary.dcc62c031";
75
75
 
76
76
  /**
77
77
  * @license
@@ -5,7 +5,7 @@ import { FirebaseError, deepEqual, createMockUserToken, getModularInstance, getD
5
5
  import { Integer, Md5 } from '@firebase/webchannel-wrapper/bloom-blob';
6
6
  import { XhrIo, EventType, ErrorCode, createWebChannelTransport, getStatEventTarget, WebChannel, Event, Stat } from '@firebase/webchannel-wrapper/webchannel-blob';
7
7
 
8
- const S = "@firebase/firestore", b = "4.7.10-canary.ab8eb26ce";
8
+ const S = "@firebase/firestore", b = "4.7.10-canary.dcc62c031";
9
9
 
10
10
  /**
11
11
  * @license
@@ -67,7 +67,7 @@ User.MOCK_USER = new User("mock-user");
67
67
  * See the License for the specific language governing permissions and
68
68
  * limitations under the License.
69
69
  */
70
- let D = "11.5.0-canary.ab8eb26ce";
70
+ let D = "11.5.0-canary.dcc62c031";
71
71
 
72
72
  /**
73
73
  * @license
@@ -34,7 +34,7 @@ var grpc__namespace = /*#__PURE__*/_interopNamespace(grpc);
34
34
  var protoLoader__namespace = /*#__PURE__*/_interopNamespace(protoLoader);
35
35
 
36
36
  const name = "@firebase/firestore";
37
- const version$1 = "4.7.10-canary.ab8eb26ce";
37
+ const version$1 = "4.7.10-canary.dcc62c031";
38
38
 
39
39
  /**
40
40
  * @license
@@ -87,7 +87,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
87
87
  User.FIRST_PARTY = new User('first-party-uid');
88
88
  User.MOCK_USER = new User('mock-user');
89
89
 
90
- const version = "11.5.0-canary.ab8eb26ce";
90
+ const version = "11.5.0-canary.dcc62c031";
91
91
 
92
92
  /**
93
93
  * @license
@@ -9,7 +9,7 @@ import * as grpc from '@grpc/grpc-js';
9
9
  import * as protoLoader from '@grpc/proto-loader';
10
10
 
11
11
  const name = "@firebase/firestore";
12
- const version$1 = "4.7.10-canary.ab8eb26ce";
12
+ const version$1 = "4.7.10-canary.dcc62c031";
13
13
 
14
14
  /**
15
15
  * @license
@@ -62,7 +62,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
62
62
  User.FIRST_PARTY = new User('first-party-uid');
63
63
  User.MOCK_USER = new User('mock-user');
64
64
 
65
- const version = "11.5.0-canary.ab8eb26ce";
65
+ const version = "11.5.0-canary.dcc62c031";
66
66
 
67
67
  /**
68
68
  * @license
package/dist/index.rn.js CHANGED
@@ -10,7 +10,7 @@ import { Integer as R, Md5 as V } from "@firebase/webchannel-wrapper/bloom-blob"
10
10
 
11
11
  import { XhrIo as m, EventType as f, ErrorCode as g, createWebChannelTransport as p, getStatEventTarget as y, WebChannel as w, Event as S, Stat as b } from "@firebase/webchannel-wrapper/webchannel-blob";
12
12
 
13
- const D = "@firebase/firestore", v = "4.7.10-canary.ab8eb26ce";
13
+ const D = "@firebase/firestore", v = "4.7.10-canary.dcc62c031";
14
14
 
15
15
  /**
16
16
  * @license
@@ -72,7 +72,7 @@ User.MOCK_USER = new User("mock-user");
72
72
  * See the License for the specific language governing permissions and
73
73
  * limitations under the License.
74
74
  */
75
- let C = "11.5.0-canary.ab8eb26ce";
75
+ let C = "11.5.0-canary.dcc62c031";
76
76
 
77
77
  /**
78
78
  * @license
@@ -4,7 +4,7 @@ import { Logger, LogLevel } from '@firebase/logger';
4
4
  import { FirebaseError, getDefaultEmulatorHostnameAndPort, deepEqual, createMockUserToken, getModularInstance } from '@firebase/util';
5
5
  import { Integer } from '@firebase/webchannel-wrapper/bloom-blob';
6
6
 
7
- const E = "4.7.10-canary.ab8eb26ce";
7
+ const E = "4.7.10-canary.dcc62c031";
8
8
 
9
9
  /**
10
10
  * @license
@@ -65,7 +65,7 @@ User.MOCK_USER = new User("mock-user");
65
65
  * See the License for the specific language governing permissions and
66
66
  * limitations under the License.
67
67
  */
68
- let m = "11.5.0-canary.ab8eb26ce";
68
+ let m = "11.5.0-canary.dcc62c031";
69
69
 
70
70
  /**
71
71
  * @license
@@ -4,7 +4,7 @@ import { Logger, LogLevel } from '@firebase/logger';
4
4
  import { FirebaseError, getDefaultEmulatorHostnameAndPort, deepEqual, createMockUserToken, getModularInstance } from '@firebase/util';
5
5
  import { Integer } from '@firebase/webchannel-wrapper/bloom-blob';
6
6
 
7
- const E = "4.7.10-canary.ab8eb26ce";
7
+ const E = "4.7.10-canary.dcc62c031";
8
8
 
9
9
  /**
10
10
  * @license
@@ -65,7 +65,7 @@ User.MOCK_USER = new User("mock-user");
65
65
  * See the License for the specific language governing permissions and
66
66
  * limitations under the License.
67
67
  */
68
- let m = "11.5.0-canary.ab8eb26ce";
68
+ let m = "11.5.0-canary.dcc62c031";
69
69
 
70
70
  /**
71
71
  * @license
@@ -10,7 +10,7 @@ var util = require('@firebase/util');
10
10
  var bloomBlob = require('@firebase/webchannel-wrapper/bloom-blob');
11
11
  var crypto = require('crypto');
12
12
 
13
- const version$1 = "4.7.10-canary.ab8eb26ce";
13
+ const version$1 = "4.7.10-canary.dcc62c031";
14
14
 
15
15
  /**
16
16
  * @license
@@ -63,7 +63,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
63
63
  User.FIRST_PARTY = new User('first-party-uid');
64
64
  User.MOCK_USER = new User('mock-user');
65
65
 
66
- const version = "11.5.0-canary.ab8eb26ce";
66
+ const version = "11.5.0-canary.dcc62c031";
67
67
 
68
68
  /**
69
69
  * @license
@@ -6,7 +6,7 @@ import { FirebaseError, getDefaultEmulatorHostnameAndPort, deepEqual, createMock
6
6
  import { Integer } from '@firebase/webchannel-wrapper/bloom-blob';
7
7
  import { randomBytes as randomBytes$1 } from 'crypto';
8
8
 
9
- const version$1 = "4.7.10-canary.ab8eb26ce";
9
+ const version$1 = "4.7.10-canary.dcc62c031";
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 = "11.5.0-canary.ab8eb26ce";
62
+ const version = "11.5.0-canary.dcc62c031";
63
63
 
64
64
  /**
65
65
  * @license
@@ -8,7 +8,7 @@ import { FirebaseError as _, base64 as c, DecodeBase64StringError as l, getDefau
8
8
 
9
9
  import { Integer as m } from "@firebase/webchannel-wrapper/bloom-blob";
10
10
 
11
- const A = "4.7.10-canary.ab8eb26ce";
11
+ const A = "4.7.10-canary.dcc62c031";
12
12
 
13
13
  /**
14
14
  * @license
@@ -69,7 +69,7 @@ User.MOCK_USER = new User("mock-user");
69
69
  * See the License for the specific language governing permissions and
70
70
  * limitations under the License.
71
71
  */
72
- let T = "11.5.0-canary.ab8eb26ce";
72
+ let T = "11.5.0-canary.dcc62c031";
73
73
 
74
74
  /**
75
75
  * @license
@@ -225,7 +225,7 @@ e) {
225
225
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
226
226
  * See the License for the specific language governing permissions and
227
227
  * limitations under the License.
228
- */ const R = "ok", V = "cancelled", I = "unknown", p = "invalid-argument", y = "deadline-exceeded", w = "not-found", g = "already-exists", F = "permission-denied", v = "unauthenticated", b = "resource-exhausted", D = "failed-precondition", C = "aborted", S = "out-of-range", N = "unimplemented", O = "internal", q = "unavailable", B = "data-loss";
228
+ */ const R = "ok", V = "cancelled", I = "unknown", p = "invalid-argument", y = "deadline-exceeded", w = "not-found", g = "already-exists", F = "permission-denied", v = "unauthenticated", D = "resource-exhausted", b = "failed-precondition", C = "aborted", S = "out-of-range", N = "unimplemented", O = "internal", q = "unavailable", B = "data-loss";
229
229
 
230
230
  /** An error returned by a Firestore operation. */ class FirestoreError extends _ {
231
231
  /** @hideconstructor */
@@ -1227,7 +1227,7 @@ function __PRIVATE_mapCodeFromHttpStatus(t) {
1227
1227
 
1228
1228
  case 400:
1229
1229
  // Bad Request
1230
- return D;
1230
+ return b;
1231
1231
 
1232
1232
  // Other possibilities based on the forward mapping
1233
1233
  // return Code.INVALID_ARGUMENT;
@@ -1256,7 +1256,7 @@ function __PRIVATE_mapCodeFromHttpStatus(t) {
1256
1256
 
1257
1257
  case 429:
1258
1258
  // Too Many Requests
1259
- return b;
1259
+ return D;
1260
1260
 
1261
1261
  case 499:
1262
1262
  // Client Closed Request
@@ -1282,7 +1282,7 @@ function __PRIVATE_mapCodeFromHttpStatus(t) {
1282
1282
  return y;
1283
1283
 
1284
1284
  default:
1285
- return t >= 200 && t < 300 ? R : t >= 400 && t < 500 ? D : t >= 500 && t < 600 ? O : I;
1285
+ return t >= 200 && t < 300 ? R : t >= 400 && t < 500 ? b : t >= 500 && t < 600 ? O : I;
1286
1286
  }
1287
1287
  }
1288
1288
 
@@ -4061,7 +4061,7 @@ class __PRIVATE_ExponentialBackoff {
4061
4061
  this.serializer = n, this.Z = !1;
4062
4062
  }
4063
4063
  X() {
4064
- if (this.Z) throw new FirestoreError(D, "The client has already been terminated.");
4064
+ if (this.Z) throw new FirestoreError(b, "The client has already been terminated.");
4065
4065
  }
4066
4066
  /** Invokes the provided RPC with auth and AppCheck tokens. */ V(t, e, r, n) {
4067
4067
  return this.X(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((([i, s]) => this.connection.V(t, __PRIVATE_toResourcePath(e, r), n, i, s))).catch((t => {
@@ -4198,7 +4198,7 @@ async function __PRIVATE_invokeRunAggregationQueryRpc(t, e, r) {
4198
4198
  * instance is terminated.
4199
4199
  */
4200
4200
  function __PRIVATE_getDatastore(t) {
4201
- if (t._terminated) throw new FirestoreError(D, "The client has already been terminated.");
4201
+ if (t._terminated) throw new FirestoreError(b, "The client has already been terminated.");
4202
4202
  if (!it.has(t)) {
4203
4203
  __PRIVATE_logDebug(nt, "Initializing Datastore");
4204
4204
  const e = function __PRIVATE_newConnection(t) {
@@ -4350,7 +4350,7 @@ class Firestore {
4350
4350
  * The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
4351
4351
  * instance.
4352
4352
  */ get app() {
4353
- if (!this._app) throw new FirestoreError(D, "Firestore was not initialized using the Firebase SDK. 'app' is not available");
4353
+ if (!this._app) throw new FirestoreError(b, "Firestore was not initialized using the Firebase SDK. 'app' is not available");
4354
4354
  return this._app;
4355
4355
  }
4356
4356
  get _initialized() {
@@ -4360,7 +4360,7 @@ class Firestore {
4360
4360
  return "notTerminated" !== this._terminateTask;
4361
4361
  }
4362
4362
  _setSettings(t) {
4363
- if (this._settingsFrozen) throw new FirestoreError(D, "Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");
4363
+ if (this._settingsFrozen) throw new FirestoreError(b, "Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");
4364
4364
  this._settings = new FirestoreSettingsImpl(t), this._emulatorOptions = t.emulatorOptions || {},
4365
4365
  void 0 !== t.credentials && (this._authCredentials = function __PRIVATE_makeAuthCredentialsProvider(t) {
4366
4366
  if (!t) return new __PRIVATE_EmptyAuthCredentialsProvider;
@@ -4421,7 +4421,7 @@ class Firestore {
4421
4421
  function initializeFirestore(t, e, r) {
4422
4422
  r || (r = $);
4423
4423
  const n = _getProvider(t, "firestore/lite");
4424
- if (n.isInitialized(r)) throw new FirestoreError(D, "Firestore can only be initialized once per app.");
4424
+ if (n.isInitialized(r)) throw new FirestoreError(b, "Firestore can only be initialized once per app.");
4425
4425
  return n.initialize({
4426
4426
  options: e,
4427
4427
  instanceIdentifier: r
@@ -6760,7 +6760,7 @@ function sum(t) {
6760
6760
  return this._verifyNotCommitted(), this._committed = !0, this._mutations.length > 0 ? this._commitHandler(this._mutations) : Promise.resolve();
6761
6761
  }
6762
6762
  _verifyNotCommitted() {
6763
- if (this._committed) throw new FirestoreError(D, "A write batch can no longer be used after commit() has been called.");
6763
+ if (this._committed) throw new FirestoreError(b, "A write batch can no longer be used after commit() has been called.");
6764
6764
  }
6765
6765
  }
6766
6766
 
@@ -7004,7 +7004,7 @@ class __PRIVATE_TransactionRunner {
7004
7004
  case V:
7005
7005
  case I:
7006
7006
  case y:
7007
- case b:
7007
+ case D:
7008
7008
  case O:
7009
7009
  case q:
7010
7010
  // Unauthenticated means something went wrong with our token and we need
@@ -7016,7 +7016,7 @@ class __PRIVATE_TransactionRunner {
7016
7016
  case w:
7017
7017
  case g:
7018
7018
  case F:
7019
- case D:
7019
+ case b:
7020
7020
  // Aborted might be retried in some scenarios, but that is dependent on
7021
7021
  // the context and should handled individually by the calling code.
7022
7022
  // See https://cloud.google.com/apis/design/errors.
@@ -7175,9 +7175,9 @@ class __PRIVATE_AsyncQueueImpl {
7175
7175
  this.vt = null,
7176
7176
  // Flag set while there's an outstanding AsyncQueue operation, used for
7177
7177
  // assertion sanity-checks.
7178
- this.bt = !1,
7179
- // Enabled during shutdown on Safari to prevent future access to IndexedDB.
7180
7178
  this.Dt = !1,
7179
+ // Enabled during shutdown on Safari to prevent future access to IndexedDB.
7180
+ this.bt = !1,
7181
7181
  // List of TimerIds to fast-forward delays for.
7182
7182
  this.Ct = [],
7183
7183
  // Backoff timer used to schedule retries for retryable operations
@@ -7210,7 +7210,7 @@ class __PRIVATE_AsyncQueueImpl {
7210
7210
  }
7211
7211
  enterRestrictedMode(t) {
7212
7212
  if (!this.gt) {
7213
- this.gt = !0, this.Dt = t || !1;
7213
+ this.gt = !0, this.bt = t || !1;
7214
7214
  const e = getDocument();
7215
7215
  e && "function" == typeof e.removeEventListener && e.removeEventListener("visibilitychange", this.St);
7216
7216
  }
@@ -7223,7 +7223,7 @@ class __PRIVATE_AsyncQueueImpl {
7223
7223
  // allows us to return a "hanging Promise" only to the callee and still
7224
7224
  // advance the queue even when the operation is not run.
7225
7225
  const e = new __PRIVATE_Deferred;
7226
- return this.qt((() => this.gt && this.Dt ? Promise.resolve() : (t().then(e.resolve, e.reject),
7226
+ return this.qt((() => this.gt && this.bt ? Promise.resolve() : (t().then(e.resolve, e.reject),
7227
7227
  e.promise))).then((() => e.promise));
7228
7228
  }
7229
7229
  enqueueRetryable(t) {
@@ -7278,8 +7278,8 @@ class __PRIVATE_AsyncQueueImpl {
7278
7278
  }
7279
7279
  }
7280
7280
  qt(t) {
7281
- const e = this.Nt.then((() => (this.bt = !0, t().catch((t => {
7282
- this.vt = t, this.bt = !1;
7281
+ const e = this.Nt.then((() => (this.Dt = !0, t().catch((t => {
7282
+ this.vt = t, this.Dt = !1;
7283
7283
  const e =
7284
7284
  /**
7285
7285
  * Chrome includes Error.message in Error.stack. Other browsers do not.
@@ -7320,7 +7320,7 @@ class __PRIVATE_AsyncQueueImpl {
7320
7320
  // all further attempts to chain (via .then) will just short-circuit
7321
7321
  // and return the rejected Promise.
7322
7322
  throw __PRIVATE_logError("INTERNAL UNHANDLED ERROR: ", e), t;
7323
- })).then((t => (this.bt = !1, t))))));
7323
+ })).then((t => (this.Dt = !1, t))))));
7324
7324
  return this.Nt = e, e;
7325
7325
  }
7326
7326
  enqueueAfterDelay(t, e, r) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/firestore",
3
- "version": "4.7.10-canary.ab8eb26ce",
3
+ "version": "4.7.10-canary.dcc62c031",
4
4
  "engines": {
5
5
  "node": ">=18.0.0"
6
6
  },
@@ -94,21 +94,21 @@
94
94
  "lite/package.json"
95
95
  ],
96
96
  "dependencies": {
97
- "@firebase/component": "0.6.13-canary.ab8eb26ce",
98
- "@firebase/logger": "0.4.4-canary.ab8eb26ce",
99
- "@firebase/util": "1.11.0-canary.ab8eb26ce",
100
- "@firebase/webchannel-wrapper": "1.0.3-canary.ab8eb26ce",
97
+ "@firebase/component": "0.6.13-canary.dcc62c031",
98
+ "@firebase/logger": "0.4.4-canary.dcc62c031",
99
+ "@firebase/util": "1.11.0-canary.dcc62c031",
100
+ "@firebase/webchannel-wrapper": "1.0.3-canary.dcc62c031",
101
101
  "@grpc/grpc-js": "~1.9.0",
102
102
  "@grpc/proto-loader": "^0.7.8",
103
103
  "tslib": "^2.1.0"
104
104
  },
105
105
  "peerDependencies": {
106
- "@firebase/app": "0.11.3-canary.ab8eb26ce"
106
+ "@firebase/app": "0.11.3-canary.dcc62c031"
107
107
  },
108
108
  "devDependencies": {
109
- "@firebase/app": "0.11.3-canary.ab8eb26ce",
110
- "@firebase/app-compat": "0.2.52-canary.ab8eb26ce",
111
- "@firebase/auth": "1.9.1-canary.ab8eb26ce",
109
+ "@firebase/app": "0.11.3-canary.dcc62c031",
110
+ "@firebase/app-compat": "0.2.52-canary.dcc62c031",
111
+ "@firebase/auth": "1.9.1-canary.dcc62c031",
112
112
  "@rollup/plugin-alias": "5.1.1",
113
113
  "@rollup/plugin-json": "6.1.0",
114
114
  "@types/eslint": "7.29.0",