@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 CHANGED
@@ -8,7 +8,7 @@ var util = require('@firebase/util');
8
8
  var logger$1 = require('@firebase/logger');
9
9
 
10
10
  const name = "@firebase/database";
11
- const version = "1.0.2";
11
+ const version = "1.0.3-20240130223218";
12
12
 
13
13
  /**
14
14
  * @license
@@ -13006,6 +13006,7 @@ class QueryEndAtConstraint extends QueryConstraint {
13006
13006
  super();
13007
13007
  this._value = _value;
13008
13008
  this._key = _key;
13009
+ this.type = 'endAt';
13009
13010
  }
13010
13011
  _apply(query) {
13011
13012
  validateFirebaseDataArg('endAt', this._value, query._path, true);
@@ -13051,6 +13052,7 @@ class QueryEndBeforeConstraint extends QueryConstraint {
13051
13052
  super();
13052
13053
  this._value = _value;
13053
13054
  this._key = _key;
13055
+ this.type = 'endBefore';
13054
13056
  }
13055
13057
  _apply(query) {
13056
13058
  validateFirebaseDataArg('endBefore', this._value, query._path, false);
@@ -13092,6 +13094,7 @@ class QueryStartAtConstraint extends QueryConstraint {
13092
13094
  super();
13093
13095
  this._value = _value;
13094
13096
  this._key = _key;
13097
+ this.type = 'startAt';
13095
13098
  }
13096
13099
  _apply(query) {
13097
13100
  validateFirebaseDataArg('startAt', this._value, query._path, true);
@@ -13136,6 +13139,7 @@ class QueryStartAfterConstraint extends QueryConstraint {
13136
13139
  super();
13137
13140
  this._value = _value;
13138
13141
  this._key = _key;
13142
+ this.type = 'startAfter';
13139
13143
  }
13140
13144
  _apply(query) {
13141
13145
  validateFirebaseDataArg('startAfter', this._value, query._path, false);
@@ -13175,6 +13179,7 @@ class QueryLimitToFirstConstraint extends QueryConstraint {
13175
13179
  constructor(_limit) {
13176
13180
  super();
13177
13181
  this._limit = _limit;
13182
+ this.type = 'limitToFirst';
13178
13183
  }
13179
13184
  _apply(query) {
13180
13185
  if (query._queryParams.hasLimit()) {
@@ -13212,6 +13217,7 @@ class QueryLimitToLastConstraint extends QueryConstraint {
13212
13217
  constructor(_limit) {
13213
13218
  super();
13214
13219
  this._limit = _limit;
13220
+ this.type = 'limitToLast';
13215
13221
  }
13216
13222
  _apply(query) {
13217
13223
  if (query._queryParams.hasLimit()) {
@@ -13249,6 +13255,7 @@ class QueryOrderByChildConstraint extends QueryConstraint {
13249
13255
  constructor(_path) {
13250
13256
  super();
13251
13257
  this._path = _path;
13258
+ this.type = 'orderByChild';
13252
13259
  }
13253
13260
  _apply(query) {
13254
13261
  validateNoPreviousOrderByCall(query, 'orderByChild');
@@ -13294,6 +13301,10 @@ function orderByChild(path) {
13294
13301
  return new QueryOrderByChildConstraint(path);
13295
13302
  }
13296
13303
  class QueryOrderByKeyConstraint extends QueryConstraint {
13304
+ constructor() {
13305
+ super(...arguments);
13306
+ this.type = 'orderByKey';
13307
+ }
13297
13308
  _apply(query) {
13298
13309
  validateNoPreviousOrderByCall(query, 'orderByKey');
13299
13310
  const newParams = queryParamsOrderBy(query._queryParams, KEY_INDEX);
@@ -13314,6 +13325,10 @@ function orderByKey() {
13314
13325
  return new QueryOrderByKeyConstraint();
13315
13326
  }
13316
13327
  class QueryOrderByPriorityConstraint extends QueryConstraint {
13328
+ constructor() {
13329
+ super(...arguments);
13330
+ this.type = 'orderByPriority';
13331
+ }
13317
13332
  _apply(query) {
13318
13333
  validateNoPreviousOrderByCall(query, 'orderByPriority');
13319
13334
  const newParams = queryParamsOrderBy(query._queryParams, PRIORITY_INDEX);
@@ -13334,6 +13349,10 @@ function orderByPriority() {
13334
13349
  return new QueryOrderByPriorityConstraint();
13335
13350
  }
13336
13351
  class QueryOrderByValueConstraint extends QueryConstraint {
13352
+ constructor() {
13353
+ super(...arguments);
13354
+ this.type = 'orderByValue';
13355
+ }
13337
13356
  _apply(query) {
13338
13357
  validateNoPreviousOrderByCall(query, 'orderByValue');
13339
13358
  const newParams = queryParamsOrderBy(query._queryParams, VALUE_INDEX);
@@ -13359,6 +13378,7 @@ class QueryEqualToValueConstraint extends QueryConstraint {
13359
13378
  super();
13360
13379
  this._value = _value;
13361
13380
  this._key = _key;
13381
+ this.type = 'equalTo';
13362
13382
  }
13363
13383
  _apply(query) {
13364
13384
  validateFirebaseDataArg('equalTo', this._value, query._path, false);