@firebase/app
Advanced tools
Comparing version 0.10.9 to 0.10.10-20240827161511
@@ -61,3 +61,3 @@ import { Component, ComponentContainer } from '@firebase/component'; | ||
const name$p = "@firebase/app"; | ||
const version$1 = "0.10.9"; | ||
const version$1 = "0.10.10-20240827161511"; | ||
@@ -131,3 +131,3 @@ /** | ||
const name = "firebase"; | ||
const version = "10.13.0"; | ||
const version = "10.13.1-20240827161511"; | ||
@@ -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"; | ||
var version$1 = "0.10.10-20240827161511"; | ||
@@ -133,3 +133,3 @@ /** | ||
var name = "firebase"; | ||
var version = "10.13.0"; | ||
var version = "10.13.1-20240827161511"; | ||
@@ -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"; | ||
var version$1 = "0.10.10-20240827161511"; | ||
@@ -136,3 +136,3 @@ /** | ||
var name = "firebase"; | ||
var version = "10.13.0"; | ||
var version = "10.13.1-20240827161511"; | ||
@@ -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", | ||
"version": "0.10.10-20240827161511", | ||
"description": "The primary entrypoint to the Firebase JS SDK", | ||
@@ -5,0 +5,0 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", |
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
541522
7802