@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.esm5.js
CHANGED
|
@@ -1903,6 +1903,9 @@ function getModularInstance(service) {
|
|
|
1903
1903
|
* See the License for the specific language governing permissions and
|
|
1904
1904
|
* limitations under the License.
|
|
1905
1905
|
*/
|
|
1906
|
+
/**
|
|
1907
|
+
* @internal
|
|
1908
|
+
*/
|
|
1906
1909
|
function promisifyRequest(request, errorMessage) {
|
|
1907
1910
|
return new Promise(function (resolve, reject) {
|
|
1908
1911
|
request.onsuccess = function (event) {
|
|
@@ -1914,6 +1917,9 @@ function promisifyRequest(request, errorMessage) {
|
|
|
1914
1917
|
};
|
|
1915
1918
|
});
|
|
1916
1919
|
}
|
|
1920
|
+
/**
|
|
1921
|
+
* @internal
|
|
1922
|
+
*/
|
|
1917
1923
|
var DBWrapper = /** @class */ (function () {
|
|
1918
1924
|
function DBWrapper(_db) {
|
|
1919
1925
|
this._db = _db;
|
|
@@ -1930,6 +1936,9 @@ var DBWrapper = /** @class */ (function () {
|
|
|
1930
1936
|
};
|
|
1931
1937
|
return DBWrapper;
|
|
1932
1938
|
}());
|
|
1939
|
+
/**
|
|
1940
|
+
* @internal
|
|
1941
|
+
*/
|
|
1933
1942
|
var TransactionWrapper = /** @class */ (function () {
|
|
1934
1943
|
function TransactionWrapper(_transaction) {
|
|
1935
1944
|
var _this = this;
|
|
@@ -1951,6 +1960,9 @@ var TransactionWrapper = /** @class */ (function () {
|
|
|
1951
1960
|
};
|
|
1952
1961
|
return TransactionWrapper;
|
|
1953
1962
|
}());
|
|
1963
|
+
/**
|
|
1964
|
+
* @internal
|
|
1965
|
+
*/
|
|
1954
1966
|
var ObjectStoreWrapper = /** @class */ (function () {
|
|
1955
1967
|
function ObjectStoreWrapper(_store) {
|
|
1956
1968
|
this._store = _store;
|
|
@@ -1979,6 +1991,9 @@ var ObjectStoreWrapper = /** @class */ (function () {
|
|
|
1979
1991
|
};
|
|
1980
1992
|
return ObjectStoreWrapper;
|
|
1981
1993
|
}());
|
|
1994
|
+
/**
|
|
1995
|
+
* @internal
|
|
1996
|
+
*/
|
|
1982
1997
|
var IndexWrapper = /** @class */ (function () {
|
|
1983
1998
|
function IndexWrapper(_index) {
|
|
1984
1999
|
this._index = _index;
|
|
@@ -1989,6 +2004,9 @@ var IndexWrapper = /** @class */ (function () {
|
|
|
1989
2004
|
};
|
|
1990
2005
|
return IndexWrapper;
|
|
1991
2006
|
}());
|
|
2007
|
+
/**
|
|
2008
|
+
* @internal
|
|
2009
|
+
*/
|
|
1992
2010
|
function openDB(dbName, dbVersion, upgradeCallback) {
|
|
1993
2011
|
return new Promise(function (resolve, reject) {
|
|
1994
2012
|
try {
|
|
@@ -2009,6 +2027,9 @@ function openDB(dbName, dbVersion, upgradeCallback) {
|
|
|
2009
2027
|
}
|
|
2010
2028
|
});
|
|
2011
2029
|
}
|
|
2030
|
+
/**
|
|
2031
|
+
* @internal
|
|
2032
|
+
*/
|
|
2012
2033
|
function deleteDB(dbName) {
|
|
2013
2034
|
return __awaiter(this, void 0, void 0, function () {
|
|
2014
2035
|
return __generator(this, function (_a) {
|