@firebase/util 1.5.0 → 1.5.1-canary.05dc9d6a0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @firebase/util
2
2
 
3
+ ## 1.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3198d58dc`](https://github.com/firebase/firebase-js-sdk/commit/3198d58dcedbf7583914dbcc76984f6f7df8d2ef) [#6088](https://github.com/firebase/firebase-js-sdk/pull/6088) - Remove unneeded types from public typings file.
8
+
3
9
  ## 1.5.0
4
10
 
5
11
  ### Minor Changes
@@ -1911,6 +1911,9 @@ function getModularInstance(service) {
1911
1911
  * See the License for the specific language governing permissions and
1912
1912
  * limitations under the License.
1913
1913
  */
1914
+ /**
1915
+ * @internal
1916
+ */
1914
1917
  function promisifyRequest(request, errorMessage) {
1915
1918
  return new Promise((resolve, reject) => {
1916
1919
  request.onsuccess = event => {
@@ -1922,12 +1925,15 @@ function promisifyRequest(request, errorMessage) {
1922
1925
  };
1923
1926
  });
1924
1927
  }
1928
+ /**
1929
+ * @internal
1930
+ */
1925
1931
  class DBWrapper {
1926
1932
  constructor(_db) {
1927
1933
  this._db = _db;
1928
1934
  this.objectStoreNames = this._db.objectStoreNames;
1929
1935
  }
1930
- transaction(storeNames, mode) {
1936
+ transaction(storeNames, mode = 'readonly') {
1931
1937
  return new TransactionWrapper(this._db.transaction.call(this._db, storeNames, mode));
1932
1938
  }
1933
1939
  createObjectStore(storeName, options) {
@@ -1937,6 +1943,9 @@ class DBWrapper {
1937
1943
  this._db.close();
1938
1944
  }
1939
1945
  }
1946
+ /**
1947
+ * @internal
1948
+ */
1940
1949
  class TransactionWrapper {
1941
1950
  constructor(_transaction) {
1942
1951
  this._transaction = _transaction;
@@ -1956,6 +1965,9 @@ class TransactionWrapper {
1956
1965
  return new ObjectStoreWrapper(this._transaction.objectStore(storeName));
1957
1966
  }
1958
1967
  }
1968
+ /**
1969
+ * @internal
1970
+ */
1959
1971
  class ObjectStoreWrapper {
1960
1972
  constructor(_store) {
1961
1973
  this._store = _store;
@@ -1983,6 +1995,9 @@ class ObjectStoreWrapper {
1983
1995
  return promisifyRequest(request, 'Error clearing IndexedDB object store');
1984
1996
  }
1985
1997
  }
1998
+ /**
1999
+ * @internal
2000
+ */
1986
2001
  class IndexWrapper {
1987
2002
  constructor(_index) {
1988
2003
  this._index = _index;
@@ -1992,6 +2007,9 @@ class IndexWrapper {
1992
2007
  return promisifyRequest(request, 'Error reading from IndexedDB');
1993
2008
  }
1994
2009
  }
2010
+ /**
2011
+ * @internal
2012
+ */
1995
2013
  function openDB(dbName, dbVersion, upgradeCallback) {
1996
2014
  return new Promise((resolve, reject) => {
1997
2015
  try {
@@ -2012,6 +2030,9 @@ function openDB(dbName, dbVersion, upgradeCallback) {
2012
2030
  }
2013
2031
  });
2014
2032
  }
2033
+ /**
2034
+ * @internal
2035
+ */
2015
2036
  async function deleteDB(dbName) {
2016
2037
  return new Promise((resolve, reject) => {
2017
2038
  try {