@firebase/app
Advanced tools
Comparing version 0.9.1 to 0.9.11
@@ -61,3 +61,3 @@ import { Component, ComponentContainer } from '@firebase/component'; | ||
const name$o = "@firebase/app"; | ||
const version$1 = "0.9.1"; | ||
const version$1 = "0.9.11"; | ||
@@ -129,3 +129,3 @@ /** | ||
const name = "firebase"; | ||
const version = "9.16.0"; | ||
const version = "9.22.1"; | ||
@@ -306,3 +306,3 @@ /** | ||
["no-app" /* AppError.NO_APP */]: "No Firebase App '{$appName}' has been created - " + | ||
'call Firebase App.initializeApp()', | ||
'call initializeApp() first', | ||
["bad-app-name" /* AppError.BAD_APP_NAME */]: "Illegal App name: '{$appName}", | ||
@@ -478,3 +478,3 @@ ["duplicate-app" /* AppError.DUPLICATE_APP */]: "Firebase App named '{$appName}' already exists with different options or config", | ||
const app = _apps.get(name); | ||
if (!app && name === DEFAULT_ENTRY_NAME) { | ||
if (!app && name === DEFAULT_ENTRY_NAME && getDefaultAppConfig()) { | ||
return initializeApp(); | ||
@@ -628,6 +628,7 @@ } | ||
const db = await getDbPromise(); | ||
return db | ||
const result = await db | ||
.transaction(STORE_NAME) | ||
.objectStore(STORE_NAME) | ||
.get(computeKey(app)); | ||
return result; | ||
} | ||
@@ -652,3 +653,3 @@ catch (e) { | ||
await objectStore.put(heartbeatObject, computeKey(app)); | ||
return tx.done; | ||
await tx.done; | ||
} | ||
@@ -655,0 +656,0 @@ catch (e) { |
@@ -63,3 +63,3 @@ import { Component, ComponentContainer } from '@firebase/component'; | ||
var name$o = "@firebase/app"; | ||
var version$1 = "0.9.1"; | ||
var version$1 = "0.9.11"; | ||
@@ -131,3 +131,3 @@ /** | ||
var name = "firebase"; | ||
var version = "9.16.0"; | ||
var version = "9.22.1"; | ||
@@ -322,3 +322,3 @@ /** | ||
_a["no-app" /* AppError.NO_APP */] = "No Firebase App '{$appName}' has been created - " + | ||
'call Firebase App.initializeApp()', | ||
'call initializeApp() first', | ||
_a["bad-app-name" /* AppError.BAD_APP_NAME */] = "Illegal App name: '{$appName}", | ||
@@ -533,3 +533,3 @@ _a["duplicate-app" /* AppError.DUPLICATE_APP */] = "Firebase App named '{$appName}' already exists with different options or config", | ||
var app = _apps.get(name); | ||
if (!app && name === DEFAULT_ENTRY_NAME) { | ||
if (!app && name === DEFAULT_ENTRY_NAME && getDefaultAppConfig()) { | ||
return initializeApp(); | ||
@@ -693,11 +693,11 @@ } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var db, e_1, idbGetError; | ||
var db, result, e_1, idbGetError; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
_a.trys.push([0, 2, , 3]); | ||
_a.trys.push([0, 3, , 4]); | ||
return [4 /*yield*/, getDbPromise()]; | ||
case 1: | ||
db = _a.sent(); | ||
return [2 /*return*/, db | ||
return [4 /*yield*/, db | ||
.transaction(STORE_NAME) | ||
@@ -707,2 +707,5 @@ .objectStore(STORE_NAME) | ||
case 2: | ||
result = _a.sent(); | ||
return [2 /*return*/, result]; | ||
case 3: | ||
e_1 = _a.sent(); | ||
@@ -718,4 +721,4 @@ if (e_1 instanceof FirebaseError) { | ||
} | ||
return [3 /*break*/, 3]; | ||
case 3: return [2 /*return*/]; | ||
return [3 /*break*/, 4]; | ||
case 4: return [2 /*return*/]; | ||
} | ||
@@ -731,3 +734,3 @@ }); | ||
case 0: | ||
_a.trys.push([0, 3, , 4]); | ||
_a.trys.push([0, 4, , 5]); | ||
return [4 /*yield*/, getDbPromise()]; | ||
@@ -741,4 +744,7 @@ case 1: | ||
_a.sent(); | ||
return [2 /*return*/, tx.done]; | ||
return [4 /*yield*/, tx.done]; | ||
case 3: | ||
_a.sent(); | ||
return [3 /*break*/, 5]; | ||
case 4: | ||
e_2 = _a.sent(); | ||
@@ -754,4 +760,4 @@ if (e_2 instanceof FirebaseError) { | ||
} | ||
return [3 /*break*/, 4]; | ||
case 4: return [2 /*return*/]; | ||
return [3 /*break*/, 5]; | ||
case 5: return [2 /*return*/]; | ||
} | ||
@@ -758,0 +764,0 @@ }); |
@@ -66,3 +66,3 @@ 'use strict'; | ||
var name$o = "@firebase/app"; | ||
var version$1 = "0.9.1"; | ||
var version$1 = "0.9.11"; | ||
@@ -134,3 +134,3 @@ /** | ||
var name = "firebase"; | ||
var version = "9.16.0"; | ||
var version = "9.22.1"; | ||
@@ -325,3 +325,3 @@ /** | ||
_a["no-app" /* AppError.NO_APP */] = "No Firebase App '{$appName}' has been created - " + | ||
'call Firebase App.initializeApp()', | ||
'call initializeApp() first', | ||
_a["bad-app-name" /* AppError.BAD_APP_NAME */] = "Illegal App name: '{$appName}", | ||
@@ -536,3 +536,3 @@ _a["duplicate-app" /* AppError.DUPLICATE_APP */] = "Firebase App named '{$appName}' already exists with different options or config", | ||
var app = _apps.get(name); | ||
if (!app && name === DEFAULT_ENTRY_NAME) { | ||
if (!app && name === DEFAULT_ENTRY_NAME && util.getDefaultAppConfig()) { | ||
return initializeApp(); | ||
@@ -696,11 +696,11 @@ } | ||
return tslib.__awaiter(this, void 0, void 0, function () { | ||
var db, e_1, idbGetError; | ||
var db, result, e_1, idbGetError; | ||
return tslib.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
_a.trys.push([0, 2, , 3]); | ||
_a.trys.push([0, 3, , 4]); | ||
return [4 /*yield*/, getDbPromise()]; | ||
case 1: | ||
db = _a.sent(); | ||
return [2 /*return*/, db | ||
return [4 /*yield*/, db | ||
.transaction(STORE_NAME) | ||
@@ -710,2 +710,5 @@ .objectStore(STORE_NAME) | ||
case 2: | ||
result = _a.sent(); | ||
return [2 /*return*/, result]; | ||
case 3: | ||
e_1 = _a.sent(); | ||
@@ -721,4 +724,4 @@ if (e_1 instanceof util.FirebaseError) { | ||
} | ||
return [3 /*break*/, 3]; | ||
case 3: return [2 /*return*/]; | ||
return [3 /*break*/, 4]; | ||
case 4: return [2 /*return*/]; | ||
} | ||
@@ -734,3 +737,3 @@ }); | ||
case 0: | ||
_a.trys.push([0, 3, , 4]); | ||
_a.trys.push([0, 4, , 5]); | ||
return [4 /*yield*/, getDbPromise()]; | ||
@@ -744,4 +747,7 @@ case 1: | ||
_a.sent(); | ||
return [2 /*return*/, tx.done]; | ||
return [4 /*yield*/, tx.done]; | ||
case 3: | ||
_a.sent(); | ||
return [3 /*break*/, 5]; | ||
case 4: | ||
e_2 = _a.sent(); | ||
@@ -757,4 +763,4 @@ if (e_2 instanceof util.FirebaseError) { | ||
} | ||
return [3 /*break*/, 4]; | ||
case 4: return [2 /*return*/]; | ||
return [3 /*break*/, 5]; | ||
case 5: return [2 /*return*/]; | ||
} | ||
@@ -761,0 +767,0 @@ }); |
{ | ||
"name": "@firebase/app", | ||
"version": "0.9.1", | ||
"version": "0.9.11", | ||
"description": "The primary entrypoint to the Firebase JS SDK", | ||
@@ -41,6 +41,6 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"dependencies": { | ||
"@firebase/util": "1.9.0", | ||
"@firebase/util": "1.9.3", | ||
"@firebase/logger": "0.4.0", | ||
"@firebase/component": "0.6.1", | ||
"idb": "7.0.1", | ||
"@firebase/component": "0.6.4", | ||
"idb": "7.1.1", | ||
"tslib": "^2.1.0" | ||
@@ -47,0 +47,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5536
398294
53
+ Added@firebase/component@0.6.4(transitive)
+ Added@firebase/util@1.9.3(transitive)
+ Addedidb@7.1.1(transitive)
- Removed@firebase/component@0.6.1(transitive)
- Removed@firebase/util@1.9.0(transitive)
- Removedidb@7.0.1(transitive)
Updated@firebase/component@0.6.4
Updated@firebase/util@1.9.3
Updatedidb@7.1.1