@firebase/firestore 4.7.17-canary.d590889d6 → 4.7.17-firebase-studio-sdk-integration.11d58925e
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 +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +2 -2
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +2 -2
- package/dist/index.node.mjs +2 -2
- package/dist/index.rn.js +2 -2
- package/dist/lite/index.browser.esm2017.js +2 -2
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.cjs.js +2 -2
- package/dist/lite/index.cjs.js.map +1 -1
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.rn.esm2017.js +18 -18
- package/package.json +9 -9
|
@@ -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.17-
|
|
13
|
+
const version$1 = "4.7.17-firebase-studio-sdk-integration.11d58925e";
|
|
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.9.
|
|
66
|
+
const version = "11.9.1-firebase-studio-sdk-integration.11d58925e";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* @license
|
package/dist/lite/index.node.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { FirebaseError, getDefaultEmulatorHostnameAndPort, isCloudWorkstation, p
|
|
|
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.17-
|
|
9
|
+
const version$1 = "4.7.17-firebase-studio-sdk-integration.11d58925e";
|
|
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.9.
|
|
62
|
+
const version = "11.9.1-firebase-studio-sdk-integration.11d58925e";
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
@@ -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.17-
|
|
11
|
+
const R = "4.7.17-firebase-studio-sdk-integration.11d58925e";
|
|
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.9.
|
|
72
|
+
let I = "11.9.1-firebase-studio-sdk-integration.11d58925e";
|
|
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", 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",
|
|
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 */
|
|
@@ -460,20 +460,20 @@ class DatabaseInfo {
|
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
|
|
463
|
-
/** The default database name for a project. */ const
|
|
463
|
+
/** The default database name for a project. */ const L = "(default)";
|
|
464
464
|
|
|
465
465
|
/**
|
|
466
466
|
* Represents the database ID a Firestore client is associated with.
|
|
467
467
|
* @internal
|
|
468
468
|
*/ class DatabaseId {
|
|
469
469
|
constructor(t, e) {
|
|
470
|
-
this.projectId = t, this.database = e ||
|
|
470
|
+
this.projectId = t, this.database = e || L;
|
|
471
471
|
}
|
|
472
472
|
static empty() {
|
|
473
473
|
return new DatabaseId("", "");
|
|
474
474
|
}
|
|
475
475
|
get isDefaultDatabase() {
|
|
476
|
-
return this.database ===
|
|
476
|
+
return this.database === L;
|
|
477
477
|
}
|
|
478
478
|
isEqual(t) {
|
|
479
479
|
return t instanceof DatabaseId && t.projectId === this.projectId && t.database === this.database;
|
|
@@ -1134,7 +1134,7 @@ class __PRIVATE_RestConnection {
|
|
|
1134
1134
|
constructor(t) {
|
|
1135
1135
|
this.databaseInfo = t, this.databaseId = t.databaseId;
|
|
1136
1136
|
const e = t.ssl ? "https" : "http", r = encodeURIComponent(this.databaseId.projectId), n = encodeURIComponent(this.databaseId.database);
|
|
1137
|
-
this.P = e + "://" + t.host, this.R = `projects/${r}/databases/${n}`, this.I = this.databaseId.database ===
|
|
1137
|
+
this.P = e + "://" + t.host, this.R = `projects/${r}/databases/${n}`, this.I = this.databaseId.database === L ? `project_id=${r}` : `project_id=${r}&database_id=${n}`;
|
|
1138
1138
|
}
|
|
1139
1139
|
V(t, e, r, n, i) {
|
|
1140
1140
|
const s = __PRIVATE_generateUniqueDebugId(), o = this.p(t, e.toUriEncodedString());
|
|
@@ -3445,7 +3445,7 @@ function toNumber(t, e) {
|
|
|
3445
3445
|
* arithmetic is used and precision loss can occur for values greater than 2^53.
|
|
3446
3446
|
*/ class __PRIVATE_NumericIncrementTransformOperation extends TransformOperation {
|
|
3447
3447
|
constructor(t, e) {
|
|
3448
|
-
super(), this.serializer = t, this.
|
|
3448
|
+
super(), this.serializer = t, this.k = e;
|
|
3449
3449
|
}
|
|
3450
3450
|
}
|
|
3451
3451
|
|
|
@@ -3774,7 +3774,7 @@ function toMutation(t, e) {
|
|
|
3774
3774
|
updateMask: __PRIVATE_toDocumentMask(e.fieldMask)
|
|
3775
3775
|
}; else {
|
|
3776
3776
|
if (!(e instanceof __PRIVATE_VerifyMutation)) return fail(16599, {
|
|
3777
|
-
|
|
3777
|
+
L: e.type
|
|
3778
3778
|
});
|
|
3779
3779
|
r = {
|
|
3780
3780
|
verify: __PRIVATE_toName(t, e.key)
|
|
@@ -3800,7 +3800,7 @@ function toMutation(t, e) {
|
|
|
3800
3800
|
};
|
|
3801
3801
|
if (r instanceof __PRIVATE_NumericIncrementTransformOperation) return {
|
|
3802
3802
|
fieldPath: e.field.canonicalString(),
|
|
3803
|
-
increment: r.
|
|
3803
|
+
increment: r.k
|
|
3804
3804
|
};
|
|
3805
3805
|
throw fail(20930, {
|
|
3806
3806
|
transform: e.transform
|
|
@@ -4460,7 +4460,7 @@ class Firestore {
|
|
|
4460
4460
|
}
|
|
4461
4461
|
|
|
4462
4462
|
function initializeFirestore(t, e, r) {
|
|
4463
|
-
r || (r =
|
|
4463
|
+
r || (r = L);
|
|
4464
4464
|
const n = _getProvider(t, "firestore/lite");
|
|
4465
4465
|
if (n.isInitialized(r)) throw new FirestoreError(N, "Firestore can only be initialized once per app.");
|
|
4466
4466
|
return n.initialize({
|
|
@@ -7073,7 +7073,7 @@ class __PRIVATE_TransactionRunner {
|
|
|
7073
7073
|
case O:
|
|
7074
7074
|
case q:
|
|
7075
7075
|
case B:
|
|
7076
|
-
case
|
|
7076
|
+
case k:
|
|
7077
7077
|
return !0;
|
|
7078
7078
|
|
|
7079
7079
|
default:
|
|
@@ -7258,7 +7258,7 @@ class __PRIVATE_AsyncQueueImpl {
|
|
|
7258
7258
|
enqueueAndForgetEvenWhileRestricted(t) {
|
|
7259
7259
|
this.Qt(),
|
|
7260
7260
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
7261
|
-
this.
|
|
7261
|
+
this.kt(t);
|
|
7262
7262
|
}
|
|
7263
7263
|
enterRestrictedMode(t) {
|
|
7264
7264
|
if (!this.bt) {
|
|
@@ -7275,16 +7275,16 @@ class __PRIVATE_AsyncQueueImpl {
|
|
|
7275
7275
|
// allows us to return a "hanging Promise" only to the callee and still
|
|
7276
7276
|
// advance the queue even when the operation is not run.
|
|
7277
7277
|
const e = new __PRIVATE_Deferred;
|
|
7278
|
-
return this.
|
|
7278
|
+
return this.kt((() => this.bt && this.Ot ? Promise.resolve() : (t().then(e.resolve, e.reject),
|
|
7279
7279
|
e.promise))).then((() => e.promise));
|
|
7280
7280
|
}
|
|
7281
7281
|
enqueueRetryable(t) {
|
|
7282
|
-
this.enqueueAndForget((() => (this.Dt.push(t), this.
|
|
7282
|
+
this.enqueueAndForget((() => (this.Dt.push(t), this.Lt())));
|
|
7283
7283
|
}
|
|
7284
7284
|
/**
|
|
7285
7285
|
* Runs the next operation from the retryable queue. If the operation fails,
|
|
7286
7286
|
* reschedules with backoff.
|
|
7287
|
-
*/ async
|
|
7287
|
+
*/ async Lt() {
|
|
7288
7288
|
if (0 !== this.Dt.length) {
|
|
7289
7289
|
try {
|
|
7290
7290
|
await this.Dt[0](), this.Dt.shift(), this.Vt.reset();
|
|
@@ -7326,10 +7326,10 @@ class __PRIVATE_AsyncQueueImpl {
|
|
|
7326
7326
|
// Since `backoffAndRun()` cancels an existing backoff and schedules a
|
|
7327
7327
|
// new backoff on every call, there is only ever a single additional
|
|
7328
7328
|
// operation in the queue.
|
|
7329
|
-
this.Vt.Z((() => this.
|
|
7329
|
+
this.Vt.Z((() => this.Lt()));
|
|
7330
7330
|
}
|
|
7331
7331
|
}
|
|
7332
|
-
|
|
7332
|
+
kt(t) {
|
|
7333
7333
|
const e = this.$t.then((() => (this.Nt = !0, t().catch((t => {
|
|
7334
7334
|
this.St = t, this.Nt = !1;
|
|
7335
7335
|
// Re-throw the error so that this.tail becomes a rejected Promise and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/firestore",
|
|
3
|
-
"version": "4.7.17-
|
|
3
|
+
"version": "4.7.17-firebase-studio-sdk-integration.11d58925e",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=18.0.0"
|
|
6
6
|
},
|
|
@@ -100,21 +100,21 @@
|
|
|
100
100
|
"lite/package.json"
|
|
101
101
|
],
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@firebase/component": "0.6.17-
|
|
104
|
-
"@firebase/logger": "0.4.4-
|
|
105
|
-
"@firebase/util": "1.12.0-
|
|
106
|
-
"@firebase/webchannel-wrapper": "1.0.3-
|
|
103
|
+
"@firebase/component": "0.6.17-firebase-studio-sdk-integration.11d58925e",
|
|
104
|
+
"@firebase/logger": "0.4.4-firebase-studio-sdk-integration.11d58925e",
|
|
105
|
+
"@firebase/util": "1.12.0-firebase-studio-sdk-integration.11d58925e",
|
|
106
|
+
"@firebase/webchannel-wrapper": "1.0.3-firebase-studio-sdk-integration.11d58925e",
|
|
107
107
|
"@grpc/grpc-js": "~1.9.0",
|
|
108
108
|
"@grpc/proto-loader": "^0.7.8",
|
|
109
109
|
"tslib": "^2.1.0"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
|
-
"@firebase/app": "0.13.1-
|
|
112
|
+
"@firebase/app": "0.13.1-firebase-studio-sdk-integration.11d58925e"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@firebase/app": "0.13.1-
|
|
116
|
-
"@firebase/app-compat": "0.4.1-
|
|
117
|
-
"@firebase/auth": "1.10.
|
|
115
|
+
"@firebase/app": "0.13.1-firebase-studio-sdk-integration.11d58925e",
|
|
116
|
+
"@firebase/app-compat": "0.4.1-firebase-studio-sdk-integration.11d58925e",
|
|
117
|
+
"@firebase/auth": "1.10.7-firebase-studio-sdk-integration.11d58925e",
|
|
118
118
|
"@rollup/plugin-alias": "5.1.1",
|
|
119
119
|
"@rollup/plugin-json": "6.1.0",
|
|
120
120
|
"@types/eslint": "7.29.0",
|