@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.esm5.js
CHANGED
|
@@ -5,7 +5,7 @@ import { stringify, jsonEval, contains, assert, isNodeSdk, stringToByteArray, Sh
|
|
|
5
5
|
import { Logger, LogLevel } from '@firebase/logger';
|
|
6
6
|
|
|
7
7
|
var name = "@firebase/database";
|
|
8
|
-
var version = "1.0.
|
|
8
|
+
var version = "1.0.3-20240130223218";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @license
|
|
@@ -13428,6 +13428,7 @@ var QueryEndAtConstraint = /** @class */ (function (_super) {
|
|
|
13428
13428
|
var _this = _super.call(this) || this;
|
|
13429
13429
|
_this._value = _value;
|
|
13430
13430
|
_this._key = _key;
|
|
13431
|
+
_this.type = 'endAt';
|
|
13431
13432
|
return _this;
|
|
13432
13433
|
}
|
|
13433
13434
|
QueryEndAtConstraint.prototype._apply = function (query) {
|
|
@@ -13476,6 +13477,7 @@ var QueryEndBeforeConstraint = /** @class */ (function (_super) {
|
|
|
13476
13477
|
var _this = _super.call(this) || this;
|
|
13477
13478
|
_this._value = _value;
|
|
13478
13479
|
_this._key = _key;
|
|
13480
|
+
_this.type = 'endBefore';
|
|
13479
13481
|
return _this;
|
|
13480
13482
|
}
|
|
13481
13483
|
QueryEndBeforeConstraint.prototype._apply = function (query) {
|
|
@@ -13520,6 +13522,7 @@ var QueryStartAtConstraint = /** @class */ (function (_super) {
|
|
|
13520
13522
|
var _this = _super.call(this) || this;
|
|
13521
13523
|
_this._value = _value;
|
|
13522
13524
|
_this._key = _key;
|
|
13525
|
+
_this.type = 'startAt';
|
|
13523
13526
|
return _this;
|
|
13524
13527
|
}
|
|
13525
13528
|
QueryStartAtConstraint.prototype._apply = function (query) {
|
|
@@ -13568,6 +13571,7 @@ var QueryStartAfterConstraint = /** @class */ (function (_super) {
|
|
|
13568
13571
|
var _this = _super.call(this) || this;
|
|
13569
13572
|
_this._value = _value;
|
|
13570
13573
|
_this._key = _key;
|
|
13574
|
+
_this.type = 'startAfter';
|
|
13571
13575
|
return _this;
|
|
13572
13576
|
}
|
|
13573
13577
|
QueryStartAfterConstraint.prototype._apply = function (query) {
|
|
@@ -13610,6 +13614,7 @@ var QueryLimitToFirstConstraint = /** @class */ (function (_super) {
|
|
|
13610
13614
|
function QueryLimitToFirstConstraint(_limit) {
|
|
13611
13615
|
var _this = _super.call(this) || this;
|
|
13612
13616
|
_this._limit = _limit;
|
|
13617
|
+
_this.type = 'limitToFirst';
|
|
13613
13618
|
return _this;
|
|
13614
13619
|
}
|
|
13615
13620
|
QueryLimitToFirstConstraint.prototype._apply = function (query) {
|
|
@@ -13650,6 +13655,7 @@ var QueryLimitToLastConstraint = /** @class */ (function (_super) {
|
|
|
13650
13655
|
function QueryLimitToLastConstraint(_limit) {
|
|
13651
13656
|
var _this = _super.call(this) || this;
|
|
13652
13657
|
_this._limit = _limit;
|
|
13658
|
+
_this.type = 'limitToLast';
|
|
13653
13659
|
return _this;
|
|
13654
13660
|
}
|
|
13655
13661
|
QueryLimitToLastConstraint.prototype._apply = function (query) {
|
|
@@ -13690,6 +13696,7 @@ var QueryOrderByChildConstraint = /** @class */ (function (_super) {
|
|
|
13690
13696
|
function QueryOrderByChildConstraint(_path) {
|
|
13691
13697
|
var _this = _super.call(this) || this;
|
|
13692
13698
|
_this._path = _path;
|
|
13699
|
+
_this.type = 'orderByChild';
|
|
13693
13700
|
return _this;
|
|
13694
13701
|
}
|
|
13695
13702
|
QueryOrderByChildConstraint.prototype._apply = function (query) {
|
|
@@ -13739,7 +13746,9 @@ function orderByChild(path) {
|
|
|
13739
13746
|
var QueryOrderByKeyConstraint = /** @class */ (function (_super) {
|
|
13740
13747
|
__extends(QueryOrderByKeyConstraint, _super);
|
|
13741
13748
|
function QueryOrderByKeyConstraint() {
|
|
13742
|
-
|
|
13749
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
13750
|
+
_this.type = 'orderByKey';
|
|
13751
|
+
return _this;
|
|
13743
13752
|
}
|
|
13744
13753
|
QueryOrderByKeyConstraint.prototype._apply = function (query) {
|
|
13745
13754
|
validateNoPreviousOrderByCall(query, 'orderByKey');
|
|
@@ -13764,7 +13773,9 @@ function orderByKey() {
|
|
|
13764
13773
|
var QueryOrderByPriorityConstraint = /** @class */ (function (_super) {
|
|
13765
13774
|
__extends(QueryOrderByPriorityConstraint, _super);
|
|
13766
13775
|
function QueryOrderByPriorityConstraint() {
|
|
13767
|
-
|
|
13776
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
13777
|
+
_this.type = 'orderByPriority';
|
|
13778
|
+
return _this;
|
|
13768
13779
|
}
|
|
13769
13780
|
QueryOrderByPriorityConstraint.prototype._apply = function (query) {
|
|
13770
13781
|
validateNoPreviousOrderByCall(query, 'orderByPriority');
|
|
@@ -13789,7 +13800,9 @@ function orderByPriority() {
|
|
|
13789
13800
|
var QueryOrderByValueConstraint = /** @class */ (function (_super) {
|
|
13790
13801
|
__extends(QueryOrderByValueConstraint, _super);
|
|
13791
13802
|
function QueryOrderByValueConstraint() {
|
|
13792
|
-
|
|
13803
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
13804
|
+
_this.type = 'orderByValue';
|
|
13805
|
+
return _this;
|
|
13793
13806
|
}
|
|
13794
13807
|
QueryOrderByValueConstraint.prototype._apply = function (query) {
|
|
13795
13808
|
validateNoPreviousOrderByCall(query, 'orderByValue');
|
|
@@ -13818,6 +13831,7 @@ var QueryEqualToValueConstraint = /** @class */ (function (_super) {
|
|
|
13818
13831
|
var _this = _super.call(this) || this;
|
|
13819
13832
|
_this._value = _value;
|
|
13820
13833
|
_this._key = _key;
|
|
13834
|
+
_this.type = 'equalTo';
|
|
13821
13835
|
return _this;
|
|
13822
13836
|
}
|
|
13823
13837
|
QueryEqualToValueConstraint.prototype._apply = function (query) {
|