Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@esri/telemetry

Package Overview
Dependencies
Maintainers
42
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esri/telemetry - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1

8

dist/esm/index.js

@@ -89,3 +89,3 @@ import sha256 from 'crypto-js/sha256.js';

}
const enabledTrackers = this.trackers.filter(({ disabled }) => !disabled);
const enabledTrackers = this.trackers.filter(({ disabled, hasError }) => !disabled && !hasError);
if (!enabledTrackers.length) {

@@ -110,3 +110,3 @@ this.logger.warn('Page view was not logged because no enabled telemetry-plugins are registered.');

}
const enabledTrackers = this.trackers.filter(({ disabled }) => !disabled);
const enabledTrackers = this.trackers.filter(({ disabled, hasError }) => !disabled && !hasError);
if (!enabledTrackers.length) {

@@ -225,3 +225,3 @@ this.logger.warn('Event was not logged because no enabled telemetry-plugins are registered.');

const tracker = this.trackers.find(({ name }) => name === trackerName);
if (tracker) {
if (tracker && !tracker.hasError) {
tracker.disabled = true;

@@ -234,3 +234,3 @@ (_a = tracker.disable) === null || _a === void 0 ? void 0 : _a.call(tracker);

const tracker = this.trackers.find(({ name }) => name === trackerName);
if (tracker) {
if (tracker && !tracker.hasError) {
tracker.disabled = false;

@@ -237,0 +237,0 @@ (_a = tracker.enable) === null || _a === void 0 ? void 0 : _a.call(tracker);

@@ -93,3 +93,3 @@ "use strict";

}
const enabledTrackers = this.trackers.filter(({ disabled }) => !disabled);
const enabledTrackers = this.trackers.filter(({ disabled, hasError }) => !disabled && !hasError);
if (!enabledTrackers.length) {

@@ -114,3 +114,3 @@ this.logger.warn('Page view was not logged because no enabled telemetry-plugins are registered.');

}
const enabledTrackers = this.trackers.filter(({ disabled }) => !disabled);
const enabledTrackers = this.trackers.filter(({ disabled, hasError }) => !disabled && !hasError);
if (!enabledTrackers.length) {

@@ -229,3 +229,3 @@ this.logger.warn('Event was not logged because no enabled telemetry-plugins are registered.');

const tracker = this.trackers.find(({ name }) => name === trackerName);
if (tracker) {
if (tracker && !tracker.hasError) {
tracker.disabled = true;

@@ -238,3 +238,3 @@ (_a = tracker.disable) === null || _a === void 0 ? void 0 : _a.call(tracker);

const tracker = this.trackers.find(({ name }) => name === trackerName);
if (tracker) {
if (tracker && !tracker.hasError) {
tracker.disabled = false;

@@ -241,0 +241,0 @@ (_a = tracker.enable) === null || _a === void 0 ? void 0 : _a.call(tracker);

@@ -38,2 +38,3 @@ export declare type GenericObject = {

disabled?: boolean;
hasError?: boolean;
getScriptTags?(): string;

@@ -40,0 +41,0 @@ init(): Promise<void>;

@@ -1270,3 +1270,3 @@ (function (global, factory) {

}
const enabledTrackers = this.trackers.filter(({ disabled }) => !disabled);
const enabledTrackers = this.trackers.filter(({ disabled, hasError }) => !disabled && !hasError);
if (!enabledTrackers.length) {

@@ -1291,3 +1291,3 @@ this.logger.warn('Page view was not logged because no enabled telemetry-plugins are registered.');

}
const enabledTrackers = this.trackers.filter(({ disabled }) => !disabled);
const enabledTrackers = this.trackers.filter(({ disabled, hasError }) => !disabled && !hasError);
if (!enabledTrackers.length) {

@@ -1406,3 +1406,3 @@ this.logger.warn('Event was not logged because no enabled telemetry-plugins are registered.');

const tracker = this.trackers.find(({ name }) => name === trackerName);
if (tracker) {
if (tracker && !tracker.hasError) {
tracker.disabled = true;

@@ -1415,3 +1415,3 @@ (_a = tracker.disable) === null || _a === void 0 ? void 0 : _a.call(tracker);

const tracker = this.trackers.find(({ name }) => name === trackerName);
if (tracker) {
if (tracker && !tracker.hasError) {
tracker.disabled = false;

@@ -1418,0 +1418,0 @@ (_a = tracker.enable) === null || _a === void 0 ? void 0 : _a.call(tracker);

@@ -1270,3 +1270,3 @@ (function (global, factory) {

}
const enabledTrackers = this.trackers.filter(({ disabled }) => !disabled);
const enabledTrackers = this.trackers.filter(({ disabled, hasError }) => !disabled && !hasError);
if (!enabledTrackers.length) {

@@ -1291,3 +1291,3 @@ this.logger.warn('Page view was not logged because no enabled telemetry-plugins are registered.');

}
const enabledTrackers = this.trackers.filter(({ disabled }) => !disabled);
const enabledTrackers = this.trackers.filter(({ disabled, hasError }) => !disabled && !hasError);
if (!enabledTrackers.length) {

@@ -1406,3 +1406,3 @@ this.logger.warn('Event was not logged because no enabled telemetry-plugins are registered.');

const tracker = this.trackers.find(({ name }) => name === trackerName);
if (tracker) {
if (tracker && !tracker.hasError) {
tracker.disabled = true;

@@ -1415,3 +1415,3 @@ (_a = tracker.disable) === null || _a === void 0 ? void 0 : _a.call(tracker);

const tracker = this.trackers.find(({ name }) => name === trackerName);
if (tracker) {
if (tracker && !tracker.hasError) {
tracker.disabled = false;

@@ -1418,0 +1418,0 @@ (_a = tracker.enable) === null || _a === void 0 ? void 0 : _a.call(tracker);

{
"name": "@esri/telemetry",
"version": "6.1.0",
"version": "6.1.1",
"description": "A JavaScript Implementation of the ArcGIS Telemetry Specification",

@@ -55,3 +55,3 @@ "main": "dist/node/index.js",

},
"gitHead": "d3d214ef1337a38c7dc7c04ec9042e2676b2813f"
"gitHead": "7dbc15a8be2f291bb0ef55ba24aaa444a8922542"
}

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