@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 +6 -0
- package/dist/index.esm2017.js +22 -1
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +22 -0
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +22 -0
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +22 -1
- 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,12 +1917,16 @@ 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;
|
|
1920
1926
|
this.objectStoreNames = this._db.objectStoreNames;
|
|
1921
1927
|
}
|
|
1922
1928
|
DBWrapper.prototype.transaction = function (storeNames, mode) {
|
|
1929
|
+
if (mode === void 0) { mode = 'readonly'; }
|
|
1923
1930
|
return new TransactionWrapper(this._db.transaction.call(this._db, storeNames, mode));
|
|
1924
1931
|
};
|
|
1925
1932
|
DBWrapper.prototype.createObjectStore = function (storeName, options) {
|
|
@@ -1930,6 +1937,9 @@ var DBWrapper = /** @class */ (function () {
|
|
|
1930
1937
|
};
|
|
1931
1938
|
return DBWrapper;
|
|
1932
1939
|
}());
|
|
1940
|
+
/**
|
|
1941
|
+
* @internal
|
|
1942
|
+
*/
|
|
1933
1943
|
var TransactionWrapper = /** @class */ (function () {
|
|
1934
1944
|
function TransactionWrapper(_transaction) {
|
|
1935
1945
|
var _this = this;
|
|
@@ -1951,6 +1961,9 @@ var TransactionWrapper = /** @class */ (function () {
|
|
|
1951
1961
|
};
|
|
1952
1962
|
return TransactionWrapper;
|
|
1953
1963
|
}());
|
|
1964
|
+
/**
|
|
1965
|
+
* @internal
|
|
1966
|
+
*/
|
|
1954
1967
|
var ObjectStoreWrapper = /** @class */ (function () {
|
|
1955
1968
|
function ObjectStoreWrapper(_store) {
|
|
1956
1969
|
this._store = _store;
|
|
@@ -1979,6 +1992,9 @@ var ObjectStoreWrapper = /** @class */ (function () {
|
|
|
1979
1992
|
};
|
|
1980
1993
|
return ObjectStoreWrapper;
|
|
1981
1994
|
}());
|
|
1995
|
+
/**
|
|
1996
|
+
* @internal
|
|
1997
|
+
*/
|
|
1982
1998
|
var IndexWrapper = /** @class */ (function () {
|
|
1983
1999
|
function IndexWrapper(_index) {
|
|
1984
2000
|
this._index = _index;
|
|
@@ -1989,6 +2005,9 @@ var IndexWrapper = /** @class */ (function () {
|
|
|
1989
2005
|
};
|
|
1990
2006
|
return IndexWrapper;
|
|
1991
2007
|
}());
|
|
2008
|
+
/**
|
|
2009
|
+
* @internal
|
|
2010
|
+
*/
|
|
1992
2011
|
function openDB(dbName, dbVersion, upgradeCallback) {
|
|
1993
2012
|
return new Promise(function (resolve, reject) {
|
|
1994
2013
|
try {
|
|
@@ -2009,6 +2028,9 @@ function openDB(dbName, dbVersion, upgradeCallback) {
|
|
|
2009
2028
|
}
|
|
2010
2029
|
});
|
|
2011
2030
|
}
|
|
2031
|
+
/**
|
|
2032
|
+
* @internal
|
|
2033
|
+
*/
|
|
2012
2034
|
function deleteDB(dbName) {
|
|
2013
2035
|
return __awaiter(this, void 0, void 0, function () {
|
|
2014
2036
|
return __generator(this, function (_a) {
|