@firebase/database 1.0.6 → 1.0.7-canary.b4c5ef3c3

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.
@@ -607,7 +607,7 @@ var isWindowsStoreApp = function () {
607
607
  return typeof Windows === 'object' && typeof Windows.UI === 'object';
608
608
  };
609
609
  /**
610
- * Converts a server error code to a Javascript Error
610
+ * Converts a server error code to a JavaScript Error
611
611
  */
612
612
  function errorForServerCode(code, query) {
613
613
  var reason = 'Unknown Error';
@@ -636,7 +636,7 @@ var INTEGER_REGEXP_ = new RegExp('^-?(0*)\\d{1,10}$');
636
636
  */
637
637
  var INTEGER_32_MIN = -2147483648;
638
638
  /**
639
- * For use in kyes, the maximum possible 32-bit integer.
639
+ * For use in keys, the maximum possible 32-bit integer.
640
640
  */
641
641
  var INTEGER_32_MAX = 2147483647;
642
642
  /**
@@ -1334,7 +1334,7 @@ var AppCheckTokenProvider = /** @class */ (function () {
1334
1334
  // Support delayed initialization of FirebaseAppCheck. This allows our
1335
1335
  // customers to initialize the RTDB SDK before initializing Firebase
1336
1336
  // AppCheck and ensures that all requests are authenticated if a token
1337
- // becomes available before the timoeout below expires.
1337
+ // becomes available before the timeout below expires.
1338
1338
  setTimeout(function () {
1339
1339
  if (_this.appCheck) {
1340
1340
  _this.getToken(forceRefresh).then(resolve, reject);
@@ -1396,7 +1396,7 @@ var FirebaseAuthTokenProvider = /** @class */ (function () {
1396
1396
  // Support delayed initialization of FirebaseAuth. This allows our
1397
1397
  // customers to initialize the RTDB SDK before initializing Firebase
1398
1398
  // Auth and ensures that all requests are authenticated if a token
1399
- // becomes available before the timoeout below expires.
1399
+ // becomes available before the timeout below expires.
1400
1400
  setTimeout(function () {
1401
1401
  if (_this.auth_) {
1402
1402
  _this.getToken(forceRefresh).then(resolve, reject);
@@ -1890,7 +1890,7 @@ var BrowserPollConnection = /** @class */ (function () {
1890
1890
  *********************************************************************************************/
1891
1891
  var FirebaseIFrameScriptHolder = /** @class */ (function () {
1892
1892
  /**
1893
- * @param commandCB - The callback to be called when control commands are recevied from the server.
1893
+ * @param commandCB - The callback to be called when control commands are received from the server.
1894
1894
  * @param onMessageCB - The callback to be triggered when responses arrive from the server.
1895
1895
  * @param onDisconnect - The callback to be triggered when this tag holder is closed
1896
1896
  * @param urlFn - A function that provides the URL of the endpoint to send data to.
@@ -10650,7 +10650,7 @@ function treeHasChildren(tree) {
10650
10650
  return tree.node.childCount > 0;
10651
10651
  }
10652
10652
  /**
10653
- * @returns Whethe rthe tree is empty (no value or children).
10653
+ * @returns Whether the tree is empty (no value or children).
10654
10654
  */
10655
10655
  function treeIsEmpty(tree) {
10656
10656
  return treeGetValue(tree) === undefined && !treeHasChildren(tree);
@@ -13061,7 +13061,7 @@ function push(parent, value) {
13061
13061
  // then() and catch() methods and is used as the return value of push(). The
13062
13062
  // second remains a regular Reference and is used as the fulfilled value of
13063
13063
  // the first ThennableReference.
13064
- var thennablePushRef = child(parent, name);
13064
+ var thenablePushRef = child(parent, name);
13065
13065
  var pushRef = child(parent, name);
13066
13066
  var promise;
13067
13067
  if (value != null) {
@@ -13070,9 +13070,9 @@ function push(parent, value) {
13070
13070
  else {
13071
13071
  promise = Promise.resolve(pushRef);
13072
13072
  }
13073
- thennablePushRef.then = promise.then.bind(promise);
13074
- thennablePushRef.catch = promise.then.bind(promise, undefined);
13075
- return thennablePushRef;
13073
+ thenablePushRef.then = promise.then.bind(promise);
13074
+ thenablePushRef.catch = promise.then.bind(promise, undefined);
13075
+ return thenablePushRef;
13076
13076
  }
13077
13077
  /**
13078
13078
  * Removes the data at this Database location.