@firebase/util 1.5.0 → 1.5.1-2022222232915
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 +6 -0
- package/dist/index.esm2017.js +21 -0
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +21 -0
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +21 -0
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +21 -0
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/indexeddb.d.ts +18 -0
- package/dist/src/indexeddb.d.ts +18 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/dist/util-public.d.ts +852 -0
- package/dist/util.d.ts +911 -0
- package/package.json +6 -4
package/dist/index.node.cjs.js
CHANGED
|
@@ -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,6 +1921,9 @@ 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;
|
|
@@ -1934,6 +1940,9 @@ var DBWrapper = /** @class */ (function () {
|
|
|
1934
1940
|
};
|
|
1935
1941
|
return DBWrapper;
|
|
1936
1942
|
}());
|
|
1943
|
+
/**
|
|
1944
|
+
* @internal
|
|
1945
|
+
*/
|
|
1937
1946
|
var TransactionWrapper = /** @class */ (function () {
|
|
1938
1947
|
function TransactionWrapper(_transaction) {
|
|
1939
1948
|
var _this = this;
|
|
@@ -1955,6 +1964,9 @@ var TransactionWrapper = /** @class */ (function () {
|
|
|
1955
1964
|
};
|
|
1956
1965
|
return TransactionWrapper;
|
|
1957
1966
|
}());
|
|
1967
|
+
/**
|
|
1968
|
+
* @internal
|
|
1969
|
+
*/
|
|
1958
1970
|
var ObjectStoreWrapper = /** @class */ (function () {
|
|
1959
1971
|
function ObjectStoreWrapper(_store) {
|
|
1960
1972
|
this._store = _store;
|
|
@@ -1983,6 +1995,9 @@ var ObjectStoreWrapper = /** @class */ (function () {
|
|
|
1983
1995
|
};
|
|
1984
1996
|
return ObjectStoreWrapper;
|
|
1985
1997
|
}());
|
|
1998
|
+
/**
|
|
1999
|
+
* @internal
|
|
2000
|
+
*/
|
|
1986
2001
|
var IndexWrapper = /** @class */ (function () {
|
|
1987
2002
|
function IndexWrapper(_index) {
|
|
1988
2003
|
this._index = _index;
|
|
@@ -1993,6 +2008,9 @@ var IndexWrapper = /** @class */ (function () {
|
|
|
1993
2008
|
};
|
|
1994
2009
|
return IndexWrapper;
|
|
1995
2010
|
}());
|
|
2011
|
+
/**
|
|
2012
|
+
* @internal
|
|
2013
|
+
*/
|
|
1996
2014
|
function openDB(dbName, dbVersion, upgradeCallback) {
|
|
1997
2015
|
return new Promise(function (resolve, reject) {
|
|
1998
2016
|
try {
|
|
@@ -2013,6 +2031,9 @@ function openDB(dbName, dbVersion, upgradeCallback) {
|
|
|
2013
2031
|
}
|
|
2014
2032
|
});
|
|
2015
2033
|
}
|
|
2034
|
+
/**
|
|
2035
|
+
* @internal
|
|
2036
|
+
*/
|
|
2016
2037
|
function deleteDB(dbName) {
|
|
2017
2038
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
2018
2039
|
return tslib.__generator(this, function (_a) {
|