@firebase/firestore 4.7.11-firebase-studio-sdk-integration.bffdabd70 → 4.7.11-firebase-studio-sdk-integration.fe1264c00
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 +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +4 -4
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +6 -5
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +6 -5
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +4 -4
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/index.browser.esm2017.js +5 -5
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.cjs.js +5 -5
- package/dist/lite/index.cjs.js.map +1 -1
- package/dist/lite/index.node.cjs.js +6 -5
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +7 -6
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +18 -18
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/package.json +9 -9
|
@@ -8,7 +8,7 @@ import { FirebaseError as _, isCloudWorkstation as c, base64 as l, DecodeBase64S
|
|
|
8
8
|
|
|
9
9
|
import { Integer as P } from "@firebase/webchannel-wrapper/bloom-blob";
|
|
10
10
|
|
|
11
|
-
const R = "4.7.11-firebase-studio-sdk-integration.
|
|
11
|
+
const R = "4.7.11-firebase-studio-sdk-integration.fe1264c00";
|
|
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 I = "11.6.1-firebase-studio-sdk-integration.
|
|
72
|
+
let I = "11.6.1-firebase-studio-sdk-integration.fe1264c00";
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* @license
|
|
@@ -223,7 +223,7 @@ e) {
|
|
|
223
223
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
224
224
|
* See the License for the specific language governing permissions and
|
|
225
225
|
* limitations under the License.
|
|
226
|
-
*/ const p = "ok", y = "cancelled", g = "unknown", w = "invalid-argument", F = "deadline-exceeded", v = "not-found",
|
|
226
|
+
*/ const p = "ok", y = "cancelled", g = "unknown", w = "invalid-argument", F = "deadline-exceeded", v = "not-found", D = "already-exists", b = "permission-denied", C = "unauthenticated", S = "resource-exhausted", N = "failed-precondition", O = "aborted", q = "out-of-range", B = "unimplemented", $ = "internal", Q = "unavailable", k = "data-loss";
|
|
227
227
|
|
|
228
228
|
/** An error returned by a Firestore operation. */ class FirestoreError extends _ {
|
|
229
229
|
/** @hideconstructor */
|
|
@@ -1247,7 +1247,7 @@ function __PRIVATE_mapCodeFromHttpStatus(t) {
|
|
|
1247
1247
|
|
|
1248
1248
|
case 403:
|
|
1249
1249
|
// Forbidden
|
|
1250
|
-
return
|
|
1250
|
+
return b;
|
|
1251
1251
|
|
|
1252
1252
|
case 404:
|
|
1253
1253
|
// Not Found
|
|
@@ -4424,7 +4424,7 @@ class Firestore {
|
|
|
4424
4424
|
return this._emulatorOptions;
|
|
4425
4425
|
}
|
|
4426
4426
|
_freezeSettings() {
|
|
4427
|
-
return this._settingsFrozen = !0,
|
|
4427
|
+
return this._settingsFrozen = !0, c(this._settings.host) && d("Firestore", this._settings.isUsingEmulator),
|
|
4428
4428
|
this._settings;
|
|
4429
4429
|
}
|
|
4430
4430
|
_delete() {
|
|
@@ -4507,7 +4507,7 @@ function getFirestore(t, r) {
|
|
|
4507
4507
|
});
|
|
4508
4508
|
// No-op if the new configuration matches the current configuration. This supports SSR
|
|
4509
4509
|
// enviornments which might call `connectFirestoreEmulator` multiple times as a standard practice.
|
|
4510
|
-
if (!E(_, a) && (t._setSettings(_), s && (m(`https://${u}`), d("
|
|
4510
|
+
if (!E(_, a) && (t._setSettings(_), s && (m(`https://${u}`), d("Firestore", !0)),
|
|
4511
4511
|
n.mockUserToken)) {
|
|
4512
4512
|
let e, r;
|
|
4513
4513
|
if ("string" == typeof n.mockUserToken) e = n.mockUserToken, r = User.MOCK_USER; else {
|
|
@@ -7066,8 +7066,8 @@ class __PRIVATE_TransactionRunner {
|
|
|
7066
7066
|
|
|
7067
7067
|
case w:
|
|
7068
7068
|
case v:
|
|
7069
|
-
case b:
|
|
7070
7069
|
case D:
|
|
7070
|
+
case b:
|
|
7071
7071
|
case N:
|
|
7072
7072
|
// Aborted might be retried in some scenarios, but that is dependent on
|
|
7073
7073
|
// the context and should handled individually by the calling code.
|
|
@@ -7218,10 +7218,10 @@ class __PRIVATE_AsyncQueueImpl {
|
|
|
7218
7218
|
constructor(t = Promise.resolve()) {
|
|
7219
7219
|
// A list of retryable operations. Retryable operations are run in order and
|
|
7220
7220
|
// retried with backoff.
|
|
7221
|
-
this.
|
|
7221
|
+
this.Dt = [],
|
|
7222
7222
|
// Is this AsyncQueue being shut down? Once it is set to true, it will not
|
|
7223
7223
|
// be changed again.
|
|
7224
|
-
this.
|
|
7224
|
+
this.bt = !1,
|
|
7225
7225
|
// Operations scheduled to be queued in the future. Operations are
|
|
7226
7226
|
// automatically removed after they are run or canceled.
|
|
7227
7227
|
this.Ct = [],
|
|
@@ -7248,7 +7248,7 @@ class __PRIVATE_AsyncQueueImpl {
|
|
|
7248
7248
|
e && "function" == typeof e.addEventListener && e.addEventListener("visibilitychange", this.Bt);
|
|
7249
7249
|
}
|
|
7250
7250
|
get isShuttingDown() {
|
|
7251
|
-
return this.
|
|
7251
|
+
return this.bt;
|
|
7252
7252
|
}
|
|
7253
7253
|
/**
|
|
7254
7254
|
* Adds a new operation to the queue without waiting for it to complete (i.e.
|
|
@@ -7263,33 +7263,33 @@ class __PRIVATE_AsyncQueueImpl {
|
|
|
7263
7263
|
this.kt(t);
|
|
7264
7264
|
}
|
|
7265
7265
|
enterRestrictedMode(t) {
|
|
7266
|
-
if (!this.
|
|
7267
|
-
this.
|
|
7266
|
+
if (!this.bt) {
|
|
7267
|
+
this.bt = !0, this.Ot = t || !1;
|
|
7268
7268
|
const e = getDocument();
|
|
7269
7269
|
e && "function" == typeof e.removeEventListener && e.removeEventListener("visibilitychange", this.Bt);
|
|
7270
7270
|
}
|
|
7271
7271
|
}
|
|
7272
7272
|
enqueue(t) {
|
|
7273
|
-
if (this.Qt(), this.
|
|
7273
|
+
if (this.Qt(), this.bt)
|
|
7274
7274
|
// Return a Promise which never resolves.
|
|
7275
7275
|
return new Promise((() => {}));
|
|
7276
7276
|
// Create a deferred Promise that we can return to the callee. This
|
|
7277
7277
|
// allows us to return a "hanging Promise" only to the callee and still
|
|
7278
7278
|
// advance the queue even when the operation is not run.
|
|
7279
7279
|
const e = new __PRIVATE_Deferred;
|
|
7280
|
-
return this.kt((() => this.
|
|
7280
|
+
return this.kt((() => this.bt && this.Ot ? Promise.resolve() : (t().then(e.resolve, e.reject),
|
|
7281
7281
|
e.promise))).then((() => e.promise));
|
|
7282
7282
|
}
|
|
7283
7283
|
enqueueRetryable(t) {
|
|
7284
|
-
this.enqueueAndForget((() => (this.
|
|
7284
|
+
this.enqueueAndForget((() => (this.Dt.push(t), this.Lt())));
|
|
7285
7285
|
}
|
|
7286
7286
|
/**
|
|
7287
7287
|
* Runs the next operation from the retryable queue. If the operation fails,
|
|
7288
7288
|
* reschedules with backoff.
|
|
7289
7289
|
*/ async Lt() {
|
|
7290
|
-
if (0 !== this.
|
|
7290
|
+
if (0 !== this.Dt.length) {
|
|
7291
7291
|
try {
|
|
7292
|
-
await this.
|
|
7292
|
+
await this.Dt[0](), this.Dt.shift(), this.Vt.reset();
|
|
7293
7293
|
} catch (t) {
|
|
7294
7294
|
if (!
|
|
7295
7295
|
/**
|
|
@@ -7317,7 +7317,7 @@ class __PRIVATE_AsyncQueueImpl {
|
|
|
7317
7317
|
// Failure will be handled by AsyncQueue
|
|
7318
7318
|
__PRIVATE_logDebug(ft, "Operation failed with retryable error: " + t);
|
|
7319
7319
|
}
|
|
7320
|
-
this.
|
|
7320
|
+
this.Dt.length > 0 &&
|
|
7321
7321
|
// If there are additional operations, we re-schedule `retryNextOp()`.
|
|
7322
7322
|
// This is necessary to run retryable operations that failed during
|
|
7323
7323
|
// their initial attempt since we don't know whether they are already
|