@esri/telemetry
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
327532
3654
1