@firebase/app
Advanced tools
Comparing version 0.10.9-20240814182916 to 0.10.9-canary.05c34c91e
@@ -61,3 +61,3 @@ import { Component, ComponentContainer } from '@firebase/component'; | ||
const name$p = "@firebase/app"; | ||
const version$1 = "0.10.9-20240814182916"; | ||
const version$1 = "0.10.9-canary.05c34c91e"; | ||
@@ -131,3 +131,3 @@ /** | ||
const name = "firebase"; | ||
const version = "10.13.0-20240814182916"; | ||
const version = "10.13.0-canary.05c34c91e"; | ||
@@ -910,3 +910,3 @@ /** | ||
async triggerHeartbeat() { | ||
var _a, _b, _c; | ||
var _a, _b; | ||
try { | ||
@@ -920,7 +920,6 @@ const platformLogger = this.container | ||
const date = getUTCDateString(); | ||
console.log('heartbeats', (_a = this._heartbeatsCache) === null || _a === void 0 ? void 0 : _a.heartbeats); | ||
if (((_b = this._heartbeatsCache) === null || _b === void 0 ? void 0 : _b.heartbeats) == null) { | ||
if (((_a = this._heartbeatsCache) === null || _a === void 0 ? void 0 : _a.heartbeats) == null) { | ||
this._heartbeatsCache = await this._heartbeatsCachePromise; | ||
// If we failed to construct a heartbeats cache, then return immediately. | ||
if (((_c = this._heartbeatsCache) === null || _c === void 0 ? void 0 : _c.heartbeats) == null) { | ||
if (((_b = this._heartbeatsCache) === null || _b === void 0 ? void 0 : _b.heartbeats) == null) { | ||
return; | ||
@@ -927,0 +926,0 @@ } |
@@ -63,3 +63,3 @@ import { Component, ComponentContainer } from '@firebase/component'; | ||
var name$p = "@firebase/app"; | ||
var version$1 = "0.10.9-20240814182916"; | ||
var version$1 = "0.10.9-canary.05c34c91e"; | ||
@@ -133,3 +133,3 @@ /** | ||
var name = "firebase"; | ||
var version = "10.13.0-20240814182916"; | ||
var version = "10.13.0-canary.05c34c91e"; | ||
@@ -1043,9 +1043,9 @@ /** | ||
HeartbeatServiceImpl.prototype.triggerHeartbeat = function () { | ||
var _a, _b, _c; | ||
var _a, _b; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var platformLogger, agent, date_1, _d, e_1; | ||
return __generator(this, function (_e) { | ||
switch (_e.label) { | ||
var platformLogger, agent, date_1, _c, e_1; | ||
return __generator(this, function (_d) { | ||
switch (_d.label) { | ||
case 0: | ||
_e.trys.push([0, 3, , 4]); | ||
_d.trys.push([0, 3, , 4]); | ||
platformLogger = this.container | ||
@@ -1056,13 +1056,12 @@ .getProvider('platform-logger') | ||
date_1 = getUTCDateString(); | ||
console.log('heartbeats', (_a = this._heartbeatsCache) === null || _a === void 0 ? void 0 : _a.heartbeats); | ||
if (!(((_b = this._heartbeatsCache) === null || _b === void 0 ? void 0 : _b.heartbeats) == null)) return [3 /*break*/, 2]; | ||
_d = this; | ||
if (!(((_a = this._heartbeatsCache) === null || _a === void 0 ? void 0 : _a.heartbeats) == null)) return [3 /*break*/, 2]; | ||
_c = this; | ||
return [4 /*yield*/, this._heartbeatsCachePromise]; | ||
case 1: | ||
_d._heartbeatsCache = _e.sent(); | ||
_c._heartbeatsCache = _d.sent(); | ||
// If we failed to construct a heartbeats cache, then return immediately. | ||
if (((_c = this._heartbeatsCache) === null || _c === void 0 ? void 0 : _c.heartbeats) == null) { | ||
if (((_b = this._heartbeatsCache) === null || _b === void 0 ? void 0 : _b.heartbeats) == null) { | ||
return [2 /*return*/]; | ||
} | ||
_e.label = 2; | ||
_d.label = 2; | ||
case 2: | ||
@@ -1088,3 +1087,3 @@ // Do not store a heartbeat if one is already stored for this day | ||
case 3: | ||
e_1 = _e.sent(); | ||
e_1 = _d.sent(); | ||
logger.warn(e_1); | ||
@@ -1091,0 +1090,0 @@ return [3 /*break*/, 4]; |
@@ -66,3 +66,3 @@ 'use strict'; | ||
var name$p = "@firebase/app"; | ||
var version$1 = "0.10.9-20240814182916"; | ||
var version$1 = "0.10.9-canary.05c34c91e"; | ||
@@ -136,3 +136,3 @@ /** | ||
var name = "firebase"; | ||
var version = "10.13.0-20240814182916"; | ||
var version = "10.13.0-canary.05c34c91e"; | ||
@@ -1046,9 +1046,9 @@ /** | ||
HeartbeatServiceImpl.prototype.triggerHeartbeat = function () { | ||
var _a, _b, _c; | ||
var _a, _b; | ||
return tslib.__awaiter(this, void 0, void 0, function () { | ||
var platformLogger, agent, date_1, _d, e_1; | ||
return tslib.__generator(this, function (_e) { | ||
switch (_e.label) { | ||
var platformLogger, agent, date_1, _c, e_1; | ||
return tslib.__generator(this, function (_d) { | ||
switch (_d.label) { | ||
case 0: | ||
_e.trys.push([0, 3, , 4]); | ||
_d.trys.push([0, 3, , 4]); | ||
platformLogger = this.container | ||
@@ -1059,13 +1059,12 @@ .getProvider('platform-logger') | ||
date_1 = getUTCDateString(); | ||
console.log('heartbeats', (_a = this._heartbeatsCache) === null || _a === void 0 ? void 0 : _a.heartbeats); | ||
if (!(((_b = this._heartbeatsCache) === null || _b === void 0 ? void 0 : _b.heartbeats) == null)) return [3 /*break*/, 2]; | ||
_d = this; | ||
if (!(((_a = this._heartbeatsCache) === null || _a === void 0 ? void 0 : _a.heartbeats) == null)) return [3 /*break*/, 2]; | ||
_c = this; | ||
return [4 /*yield*/, this._heartbeatsCachePromise]; | ||
case 1: | ||
_d._heartbeatsCache = _e.sent(); | ||
_c._heartbeatsCache = _d.sent(); | ||
// If we failed to construct a heartbeats cache, then return immediately. | ||
if (((_c = this._heartbeatsCache) === null || _c === void 0 ? void 0 : _c.heartbeats) == null) { | ||
if (((_b = this._heartbeatsCache) === null || _b === void 0 ? void 0 : _b.heartbeats) == null) { | ||
return [2 /*return*/]; | ||
} | ||
_e.label = 2; | ||
_d.label = 2; | ||
case 2: | ||
@@ -1091,3 +1090,3 @@ // Do not store a heartbeat if one is already stored for this day | ||
case 3: | ||
e_1 = _e.sent(); | ||
e_1 = _d.sent(); | ||
logger.warn(e_1); | ||
@@ -1094,0 +1093,0 @@ return [3 /*break*/, 4]; |
{ | ||
"name": "@firebase/app", | ||
"version": "0.10.9-20240814182916", | ||
"version": "0.10.9-canary.05c34c91e", | ||
"description": "The primary entrypoint to the Firebase JS SDK", | ||
@@ -42,5 +42,5 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"dependencies": { | ||
"@firebase/util": "1.9.7", | ||
"@firebase/logger": "0.4.2", | ||
"@firebase/component": "0.6.8", | ||
"@firebase/util": "1.9.7-canary.05c34c91e", | ||
"@firebase/logger": "0.4.2-canary.05c34c91e", | ||
"@firebase/component": "0.6.8-canary.05c34c91e", | ||
"idb": "7.1.1", | ||
@@ -47,0 +47,0 @@ "tslib": "^2.1.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
541583
7802
+ Added@firebase/component@0.6.8-canary.05c34c91e(transitive)
+ Added@firebase/logger@0.4.2-canary.05c34c91e(transitive)
+ Added@firebase/util@1.9.7-canary.05c34c91e(transitive)
- Removed@firebase/component@0.6.8(transitive)
- Removed@firebase/logger@0.4.2(transitive)
- Removed@firebase/util@1.9.7(transitive)