@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @firebase/util
|
|
2
2
|
|
|
3
|
+
## 1.5.1-2022222232915
|
|
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
|
package/dist/index.esm2017.js
CHANGED
|
@@ -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,6 +1925,9 @@ 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;
|
|
@@ -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 {
|