@firebase/database 0.13.7 → 0.13.8-20221010203322

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.
@@ -428,8 +428,8 @@ export declare function endAt(value: number | string | boolean | null, key?: str
428
428
  *
429
429
  * The ending point is exclusive. If only a value is provided, children
430
430
  * with a value less than the specified value will be included in the query.
431
- * If a key is specified, then children must have a value lesss than or equal
432
- * to the specified value and a a key name less than the specified key.
431
+ * If a key is specified, then children must have a value less than or equal
432
+ * to the specified value and a key name less than the specified key.
433
433
  *
434
434
  * @param value - The value to end before. The argument type depends on which
435
435
  * `orderBy*()` function was used in this query. Specify a value that matches
@@ -1937,8 +1937,8 @@ declare class PriorityIndex extends Index {
1937
1937
  * resulting list of items is chronologically sorted. The keys are also
1938
1938
  * designed to be unguessable (they contain 72 random bits of entropy).
1939
1939
  *
1940
- * See {@link https://firebase.google.com/docs/database/web/lists-of-data#append_to_a_list_of_data | Append to a list of data}
1941
- * </br>See {@link ttps://firebase.googleblog.com/2015/02/the-2120-ways-to-ensure-unique_68.html | The 2^120 Ways to Ensure Unique Identifiers}
1940
+ * See {@link https://firebase.google.com/docs/database/web/lists-of-data#append_to_a_list_of_data | Append to a list of data}.
1941
+ * See {@link https://firebase.googleblog.com/2015/02/the-2120-ways-to-ensure-unique_68.html | The 2^120 Ways to Ensure Unique Identifiers}.
1942
1942
  *
1943
1943
  * @param parent - The parent location.
1944
1944
  * @param value - Optional value to be written at the generated location.
@@ -1,5 +1,5 @@
1
1
  import Websocket from 'faye-websocket';
2
- import { stringify, jsonEval, contains, assert, isNodeSdk, base64, stringToByteArray, Sha1, deepCopy, base64Encode, isMobileCordova, stringLength, Deferred, safeGet, isAdmin, isValidFormat, isEmpty, isReactNative, assertionError, map, querystring, errorPrefix, getModularInstance, getDefaultEmulatorHost, createMockUserToken } from '@firebase/util';
2
+ import { stringify, jsonEval, contains, assert, isNodeSdk, base64, stringToByteArray, Sha1, deepCopy, base64Encode, isMobileCordova, stringLength, Deferred, safeGet, isAdmin, isValidFormat, isEmpty, isReactNative, assertionError, map, querystring, errorPrefix, getModularInstance, getDefaultEmulatorHostnameAndPort, createMockUserToken } from '@firebase/util';
3
3
  import { Logger, LogLevel } from '@firebase/logger';
4
4
  import { getApp, _getProvider, SDK_VERSION as SDK_VERSION$1, _registerComponent, registerVersion } from '@firebase/app';
5
5
  import { Component } from '@firebase/component';
@@ -1250,7 +1250,7 @@ WebSocketConnection.responsesRequiredToBeHealthy = 2;
1250
1250
  WebSocketConnection.healthyTimeout = 30000;
1251
1251
 
1252
1252
  const name = "@firebase/database";
1253
- const version = "0.13.7";
1253
+ const version = "0.13.8-20221010203322";
1254
1254
 
1255
1255
  /**
1256
1256
  * @license
@@ -12708,8 +12708,8 @@ function onDisconnect(ref) {
12708
12708
  * resulting list of items is chronologically sorted. The keys are also
12709
12709
  * designed to be unguessable (they contain 72 random bits of entropy).
12710
12710
  *
12711
- * See {@link https://firebase.google.com/docs/database/web/lists-of-data#append_to_a_list_of_data | Append to a list of data}
12712
- * </br>See {@link ttps://firebase.googleblog.com/2015/02/the-2120-ways-to-ensure-unique_68.html | The 2^120 Ways to Ensure Unique Identifiers}
12711
+ * See {@link https://firebase.google.com/docs/database/web/lists-of-data#append_to_a_list_of_data | Append to a list of data}.
12712
+ * See {@link https://firebase.googleblog.com/2015/02/the-2120-ways-to-ensure-unique_68.html | The 2^120 Ways to Ensure Unique Identifiers}.
12713
12713
  *
12714
12714
  * @param parent - The parent location.
12715
12715
  * @param value - Optional value to be written at the generated location.
@@ -13153,8 +13153,8 @@ class QueryEndBeforeConstraint extends QueryConstraint {
13153
13153
  *
13154
13154
  * The ending point is exclusive. If only a value is provided, children
13155
13155
  * with a value less than the specified value will be included in the query.
13156
- * If a key is specified, then children must have a value lesss than or equal
13157
- * to the specified value and a a key name less than the specified key.
13156
+ * If a key is specified, then children must have a value less than or equal
13157
+ * to the specified value and a key name less than the specified key.
13158
13158
  *
13159
13159
  * @param value - The value to end before. The argument type depends on which
13160
13160
  * `orderBy*()` function was used in this query. Specify a value that matches
@@ -13708,10 +13708,9 @@ function getDatabase(app = getApp(), url) {
13708
13708
  const db = _getProvider(app, 'database').getImmediate({
13709
13709
  identifier: url
13710
13710
  });
13711
- const databaseEmulatorHost = getDefaultEmulatorHost('database');
13712
- if (databaseEmulatorHost) {
13713
- const [host, port] = databaseEmulatorHost.split(':');
13714
- connectDatabaseEmulator(db, host, parseInt(port, 10));
13711
+ const emulator = getDefaultEmulatorHostnameAndPort('database');
13712
+ if (emulator) {
13713
+ connectDatabaseEmulator(db, ...emulator);
13715
13714
  }
13716
13715
  return db;
13717
13716
  }