@firebase/database 1.0.2 → 1.0.3-20240130223218
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 +21 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +21 -1
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +18 -4
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +18 -4
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +17 -3
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +21 -1
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/test/queryconstraint.test.d.ts +17 -0
- package/dist/test/queryconstraint.test.d.ts +17 -0
- package/package.json +4 -4
package/dist/index.esm2017.js
CHANGED
|
@@ -4,7 +4,7 @@ import { stringify, jsonEval, contains, assert, isNodeSdk, stringToByteArray, Sh
|
|
|
4
4
|
import { Logger, LogLevel } from '@firebase/logger';
|
|
5
5
|
|
|
6
6
|
const name = "@firebase/database";
|
|
7
|
-
const version = "1.0.
|
|
7
|
+
const version = "1.0.3-20240130223218";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -13002,6 +13002,7 @@ class QueryEndAtConstraint extends QueryConstraint {
|
|
|
13002
13002
|
super();
|
|
13003
13003
|
this._value = _value;
|
|
13004
13004
|
this._key = _key;
|
|
13005
|
+
this.type = 'endAt';
|
|
13005
13006
|
}
|
|
13006
13007
|
_apply(query) {
|
|
13007
13008
|
validateFirebaseDataArg('endAt', this._value, query._path, true);
|
|
@@ -13047,6 +13048,7 @@ class QueryEndBeforeConstraint extends QueryConstraint {
|
|
|
13047
13048
|
super();
|
|
13048
13049
|
this._value = _value;
|
|
13049
13050
|
this._key = _key;
|
|
13051
|
+
this.type = 'endBefore';
|
|
13050
13052
|
}
|
|
13051
13053
|
_apply(query) {
|
|
13052
13054
|
validateFirebaseDataArg('endBefore', this._value, query._path, false);
|
|
@@ -13088,6 +13090,7 @@ class QueryStartAtConstraint extends QueryConstraint {
|
|
|
13088
13090
|
super();
|
|
13089
13091
|
this._value = _value;
|
|
13090
13092
|
this._key = _key;
|
|
13093
|
+
this.type = 'startAt';
|
|
13091
13094
|
}
|
|
13092
13095
|
_apply(query) {
|
|
13093
13096
|
validateFirebaseDataArg('startAt', this._value, query._path, true);
|
|
@@ -13132,6 +13135,7 @@ class QueryStartAfterConstraint extends QueryConstraint {
|
|
|
13132
13135
|
super();
|
|
13133
13136
|
this._value = _value;
|
|
13134
13137
|
this._key = _key;
|
|
13138
|
+
this.type = 'startAfter';
|
|
13135
13139
|
}
|
|
13136
13140
|
_apply(query) {
|
|
13137
13141
|
validateFirebaseDataArg('startAfter', this._value, query._path, false);
|
|
@@ -13171,6 +13175,7 @@ class QueryLimitToFirstConstraint extends QueryConstraint {
|
|
|
13171
13175
|
constructor(_limit) {
|
|
13172
13176
|
super();
|
|
13173
13177
|
this._limit = _limit;
|
|
13178
|
+
this.type = 'limitToFirst';
|
|
13174
13179
|
}
|
|
13175
13180
|
_apply(query) {
|
|
13176
13181
|
if (query._queryParams.hasLimit()) {
|
|
@@ -13208,6 +13213,7 @@ class QueryLimitToLastConstraint extends QueryConstraint {
|
|
|
13208
13213
|
constructor(_limit) {
|
|
13209
13214
|
super();
|
|
13210
13215
|
this._limit = _limit;
|
|
13216
|
+
this.type = 'limitToLast';
|
|
13211
13217
|
}
|
|
13212
13218
|
_apply(query) {
|
|
13213
13219
|
if (query._queryParams.hasLimit()) {
|
|
@@ -13245,6 +13251,7 @@ class QueryOrderByChildConstraint extends QueryConstraint {
|
|
|
13245
13251
|
constructor(_path) {
|
|
13246
13252
|
super();
|
|
13247
13253
|
this._path = _path;
|
|
13254
|
+
this.type = 'orderByChild';
|
|
13248
13255
|
}
|
|
13249
13256
|
_apply(query) {
|
|
13250
13257
|
validateNoPreviousOrderByCall(query, 'orderByChild');
|
|
@@ -13290,6 +13297,10 @@ function orderByChild(path) {
|
|
|
13290
13297
|
return new QueryOrderByChildConstraint(path);
|
|
13291
13298
|
}
|
|
13292
13299
|
class QueryOrderByKeyConstraint extends QueryConstraint {
|
|
13300
|
+
constructor() {
|
|
13301
|
+
super(...arguments);
|
|
13302
|
+
this.type = 'orderByKey';
|
|
13303
|
+
}
|
|
13293
13304
|
_apply(query) {
|
|
13294
13305
|
validateNoPreviousOrderByCall(query, 'orderByKey');
|
|
13295
13306
|
const newParams = queryParamsOrderBy(query._queryParams, KEY_INDEX);
|
|
@@ -13310,6 +13321,10 @@ function orderByKey() {
|
|
|
13310
13321
|
return new QueryOrderByKeyConstraint();
|
|
13311
13322
|
}
|
|
13312
13323
|
class QueryOrderByPriorityConstraint extends QueryConstraint {
|
|
13324
|
+
constructor() {
|
|
13325
|
+
super(...arguments);
|
|
13326
|
+
this.type = 'orderByPriority';
|
|
13327
|
+
}
|
|
13313
13328
|
_apply(query) {
|
|
13314
13329
|
validateNoPreviousOrderByCall(query, 'orderByPriority');
|
|
13315
13330
|
const newParams = queryParamsOrderBy(query._queryParams, PRIORITY_INDEX);
|
|
@@ -13330,6 +13345,10 @@ function orderByPriority() {
|
|
|
13330
13345
|
return new QueryOrderByPriorityConstraint();
|
|
13331
13346
|
}
|
|
13332
13347
|
class QueryOrderByValueConstraint extends QueryConstraint {
|
|
13348
|
+
constructor() {
|
|
13349
|
+
super(...arguments);
|
|
13350
|
+
this.type = 'orderByValue';
|
|
13351
|
+
}
|
|
13333
13352
|
_apply(query) {
|
|
13334
13353
|
validateNoPreviousOrderByCall(query, 'orderByValue');
|
|
13335
13354
|
const newParams = queryParamsOrderBy(query._queryParams, VALUE_INDEX);
|
|
@@ -13355,6 +13374,7 @@ class QueryEqualToValueConstraint extends QueryConstraint {
|
|
|
13355
13374
|
super();
|
|
13356
13375
|
this._value = _value;
|
|
13357
13376
|
this._key = _key;
|
|
13377
|
+
this.type = 'equalTo';
|
|
13358
13378
|
}
|
|
13359
13379
|
_apply(query) {
|
|
13360
13380
|
validateFirebaseDataArg('equalTo', this._value, query._path, false);
|