@segment/analytics-core
Advanced tools
Comparing version 1.2.4 to 1.2.5
# @segment/analytics-core | ||
## 1.2.5 | ||
### Patch Changes | ||
- [#846](https://github.com/segmentio/analytics-next/pull/846) [`7dcafa2`](https://github.com/segmentio/analytics-next/commit/7dcafa29cbce86d8c3d3c829c3ba7c22148949fc) Thanks [@silesky](https://github.com/silesky)! - Remove browser-specific isOffline() logic from core | ||
## 1.2.4 | ||
@@ -4,0 +10,0 @@ |
@@ -11,3 +11,2 @@ "use strict"; | ||
var delivery_1 = require("./delivery"); | ||
var connection_1 = require("../connection"); | ||
var CoreEventQueue = /** @class */ (function (_super) { | ||
@@ -209,3 +208,3 @@ tslib_1.__extends(CoreEventQueue, _super); | ||
case 0: | ||
if (this.queue.length === 0 || (0, connection_1.isOffline)()) { | ||
if (this.queue.length === 0) { | ||
return [2 /*return*/, []]; | ||
@@ -212,0 +211,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getGlobal = void 0; | ||
/* eslint-disable no-restricted-globals */ | ||
// This an imperfect polyfill for globalThis | ||
@@ -5,0 +6,0 @@ var getGlobal = function () { |
@@ -8,3 +8,2 @@ import { __awaiter, __extends, __generator } from "tslib"; | ||
import { attempt, ensure } from './delivery'; | ||
import { isOffline } from '../connection'; | ||
var CoreEventQueue = /** @class */ (function (_super) { | ||
@@ -206,3 +205,3 @@ __extends(CoreEventQueue, _super); | ||
case 0: | ||
if (this.queue.length === 0 || isOffline()) { | ||
if (this.queue.length === 0) { | ||
return [2 /*return*/, []]; | ||
@@ -209,0 +208,0 @@ } |
@@ -0,1 +1,2 @@ | ||
/* eslint-disable no-restricted-globals */ | ||
// This an imperfect polyfill for globalThis | ||
@@ -2,0 +3,0 @@ export var getGlobal = function () { |
{ | ||
"name": "@segment/analytics-core", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -11,3 +11,2 @@ import { CoreAnalytics } from '../analytics' | ||
import { attempt, ensure } from './delivery' | ||
import { isOffline } from '../connection' | ||
@@ -194,3 +193,3 @@ export type EventQueueEmitterContract<Ctx extends CoreContext> = { | ||
async flush(): Promise<Ctx[]> { | ||
if (this.queue.length === 0 || isOffline()) { | ||
if (this.queue.length === 0) { | ||
return [] | ||
@@ -197,0 +196,0 @@ } |
@@ -0,1 +1,2 @@ | ||
/* eslint-disable no-restricted-globals */ | ||
// This an imperfect polyfill for globalThis | ||
@@ -2,0 +3,0 @@ export const getGlobal = () => { |
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
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
289704
214
5204