Socket
Socket
Sign inDemoInstall

@segment/analytics-core

Package Overview
Dependencies
Maintainers
269
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@segment/analytics-core - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

6

CHANGELOG.md
# @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 @@

3

dist/cjs/queue/event-queue.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc