@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.
@@ -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.6";
7
+ const version = "1.0.7-canary.b4c5ef3c3";
8
8
 
9
9
  /**
10
10
  * @license
@@ -571,7 +571,7 @@ const isWindowsStoreApp = function () {
571
571
  return typeof Windows === 'object' && typeof Windows.UI === 'object';
572
572
  };
573
573
  /**
574
- * Converts a server error code to a Javascript Error
574
+ * Converts a server error code to a JavaScript Error
575
575
  */
576
576
  function errorForServerCode(code, query) {
577
577
  let reason = 'Unknown Error';
@@ -600,7 +600,7 @@ const INTEGER_REGEXP_ = new RegExp('^-?(0*)\\d{1,10}$');
600
600
  */
601
601
  const INTEGER_32_MIN = -2147483648;
602
602
  /**
603
- * For use in kyes, the maximum possible 32-bit integer.
603
+ * For use in keys, the maximum possible 32-bit integer.
604
604
  */
605
605
  const INTEGER_32_MAX = 2147483647;
606
606
  /**
@@ -725,7 +725,7 @@ class AppCheckTokenProvider {
725
725
  // Support delayed initialization of FirebaseAppCheck. This allows our
726
726
  // customers to initialize the RTDB SDK before initializing Firebase
727
727
  // AppCheck and ensures that all requests are authenticated if a token
728
- // becomes available before the timoeout below expires.
728
+ // becomes available before the timeout below expires.
729
729
  setTimeout(() => {
730
730
  if (this.appCheck) {
731
731
  this.getToken(forceRefresh).then(resolve, reject);
@@ -784,7 +784,7 @@ class FirebaseAuthTokenProvider {
784
784
  // Support delayed initialization of FirebaseAuth. This allows our
785
785
  // customers to initialize the RTDB SDK before initializing Firebase
786
786
  // Auth and ensures that all requests are authenticated if a token
787
- // becomes available before the timoeout below expires.
787
+ // becomes available before the timeout below expires.
788
788
  setTimeout(() => {
789
789
  if (this.auth_) {
790
790
  this.getToken(forceRefresh).then(resolve, reject);
@@ -1464,7 +1464,7 @@ class BrowserPollConnection {
1464
1464
  *********************************************************************************************/
1465
1465
  class FirebaseIFrameScriptHolder {
1466
1466
  /**
1467
- * @param commandCB - The callback to be called when control commands are recevied from the server.
1467
+ * @param commandCB - The callback to be called when control commands are received from the server.
1468
1468
  * @param onMessageCB - The callback to be triggered when responses arrive from the server.
1469
1469
  * @param onDisconnect - The callback to be triggered when this tag holder is closed
1470
1470
  * @param urlFn - A function that provides the URL of the endpoint to send data to.
@@ -10315,7 +10315,7 @@ function treeHasChildren(tree) {
10315
10315
  return tree.node.childCount > 0;
10316
10316
  }
10317
10317
  /**
10318
- * @returns Whethe rthe tree is empty (no value or children).
10318
+ * @returns Whether the tree is empty (no value or children).
10319
10319
  */
10320
10320
  function treeIsEmpty(tree) {
10321
10321
  return treeGetValue(tree) === undefined && !treeHasChildren(tree);
@@ -12643,7 +12643,7 @@ function push(parent, value) {
12643
12643
  // then() and catch() methods and is used as the return value of push(). The
12644
12644
  // second remains a regular Reference and is used as the fulfilled value of
12645
12645
  // the first ThennableReference.
12646
- const thennablePushRef = child(parent, name);
12646
+ const thenablePushRef = child(parent, name);
12647
12647
  const pushRef = child(parent, name);
12648
12648
  let promise;
12649
12649
  if (value != null) {
@@ -12652,9 +12652,9 @@ function push(parent, value) {
12652
12652
  else {
12653
12653
  promise = Promise.resolve(pushRef);
12654
12654
  }
12655
- thennablePushRef.then = promise.then.bind(promise);
12656
- thennablePushRef.catch = promise.then.bind(promise, undefined);
12657
- return thennablePushRef;
12655
+ thenablePushRef.then = promise.then.bind(promise);
12656
+ thenablePushRef.catch = promise.then.bind(promise, undefined);
12657
+ return thenablePushRef;
12658
12658
  }
12659
12659
  /**
12660
12660
  * Removes the data at this Database location.
@@ -13629,10 +13629,9 @@ function forceLongPolling() {
13629
13629
  BrowserPollConnection.forceAllow();
13630
13630
  }
13631
13631
  /**
13632
- * Returns the instance of the Realtime Database SDK that is associated
13633
- * with the provided {@link @firebase/app#FirebaseApp}. Initializes a new instance with
13634
- * with default settings if no instance exists or if the existing instance uses
13635
- * a custom database URL.
13632
+ * Returns the instance of the Realtime Database SDK that is associated with the provided
13633
+ * {@link @firebase/app#FirebaseApp}. Initializes a new instance with default settings if
13634
+ * no instance exists or if the existing instance uses a custom database URL.
13636
13635
  *
13637
13636
  * @param app - The {@link @firebase/app#FirebaseApp} instance that the returned Realtime
13638
13637
  * Database instance is associated with.