@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.
@@ -1907,6 +1907,9 @@ function getModularInstance(service) {
1907
1907
  * See the License for the specific language governing permissions and
1908
1908
  * limitations under the License.
1909
1909
  */
1910
+ /**
1911
+ * @internal
1912
+ */
1910
1913
  function promisifyRequest(request, errorMessage) {
1911
1914
  return new Promise(function (resolve, reject) {
1912
1915
  request.onsuccess = function (event) {
@@ -1918,12 +1921,16 @@ function promisifyRequest(request, errorMessage) {
1918
1921
  };
1919
1922
  });
1920
1923
  }
1924
+ /**
1925
+ * @internal
1926
+ */
1921
1927
  var DBWrapper = /** @class */ (function () {
1922
1928
  function DBWrapper(_db) {
1923
1929
  this._db = _db;
1924
1930
  this.objectStoreNames = this._db.objectStoreNames;
1925
1931
  }
1926
1932
  DBWrapper.prototype.transaction = function (storeNames, mode) {
1933
+ if (mode === void 0) { mode = 'readonly'; }
1927
1934
  return new TransactionWrapper(this._db.transaction.call(this._db, storeNames, mode));
1928
1935
  };
1929
1936
  DBWrapper.prototype.createObjectStore = function (storeName, options) {
@@ -1934,6 +1941,9 @@ var DBWrapper = /** @class */ (function () {
1934
1941
  };
1935
1942
  return DBWrapper;
1936
1943
  }());
1944
+ /**
1945
+ * @internal
1946
+ */
1937
1947
  var TransactionWrapper = /** @class */ (function () {
1938
1948
  function TransactionWrapper(_transaction) {
1939
1949
  var _this = this;
@@ -1955,6 +1965,9 @@ var TransactionWrapper = /** @class */ (function () {
1955
1965
  };
1956
1966
  return TransactionWrapper;
1957
1967
  }());
1968
+ /**
1969
+ * @internal
1970
+ */
1958
1971
  var ObjectStoreWrapper = /** @class */ (function () {
1959
1972
  function ObjectStoreWrapper(_store) {
1960
1973
  this._store = _store;
@@ -1983,6 +1996,9 @@ var ObjectStoreWrapper = /** @class */ (function () {
1983
1996
  };
1984
1997
  return ObjectStoreWrapper;
1985
1998
  }());
1999
+ /**
2000
+ * @internal
2001
+ */
1986
2002
  var IndexWrapper = /** @class */ (function () {
1987
2003
  function IndexWrapper(_index) {
1988
2004
  this._index = _index;
@@ -1993,6 +2009,9 @@ var IndexWrapper = /** @class */ (function () {
1993
2009
  };
1994
2010
  return IndexWrapper;
1995
2011
  }());
2012
+ /**
2013
+ * @internal
2014
+ */
1996
2015
  function openDB(dbName, dbVersion, upgradeCallback) {
1997
2016
  return new Promise(function (resolve, reject) {
1998
2017
  try {
@@ -2013,6 +2032,9 @@ function openDB(dbName, dbVersion, upgradeCallback) {
2013
2032
  }
2014
2033
  });
2015
2034
  }
2035
+ /**
2036
+ * @internal
2037
+ */
2016
2038
  function deleteDB(dbName) {
2017
2039
  return tslib.__awaiter(this, void 0, void 0, function () {
2018
2040
  return tslib.__generator(this, function (_a) {