@esri/telemetry
Advanced tools
Comparing version 7.0.6 to 7.0.7
@@ -301,2 +301,12 @@ import sha256 from 'crypto-js/sha256.js'; | ||
} | ||
disable() { | ||
this.disabled = true; | ||
this.trackers.forEach((tracker) => { | ||
var _a; | ||
if (!tracker.hasError) { | ||
tracker.disabled = true; | ||
(_a = tracker.disable) === null || _a === void 0 ? void 0 : _a.call(tracker); | ||
} | ||
}); | ||
} | ||
/** | ||
@@ -303,0 +313,0 @@ * Disable a tracker. This does not deterministically unload |
@@ -305,2 +305,12 @@ "use strict"; | ||
} | ||
disable() { | ||
this.disabled = true; | ||
this.trackers.forEach((tracker) => { | ||
var _a; | ||
if (!tracker.hasError) { | ||
tracker.disabled = true; | ||
(_a = tracker.disable) === null || _a === void 0 ? void 0 : _a.call(tracker); | ||
} | ||
}); | ||
} | ||
/** | ||
@@ -307,0 +317,0 @@ * Disable a tracker. This does not deterministically unload |
@@ -44,2 +44,3 @@ import { Attributes, EventData, IPrivacySettings, TelemetryOptions, User, Workflow } from './types'; | ||
preProcess(event?: EventData, options?: TelemetryOptions): Record<string, any>; | ||
disable(): void; | ||
/** | ||
@@ -82,3 +83,4 @@ * Disable a tracker. This does not deterministically unload | ||
interface TelemetryCore<TelemetryOptions> extends TelemetryLogMethods, TelemetryWorkflowMethods, TelemetryTrackerMethods, TelemetryScriptMethods { | ||
disable(): void; | ||
preProcess?(event: EventData, options: TelemetryOptions): EventData; | ||
} |
@@ -1510,2 +1510,12 @@ (function (global, factory) { | ||
} | ||
disable() { | ||
this.disabled = true; | ||
this.trackers.forEach((tracker) => { | ||
var _a; | ||
if (!tracker.hasError) { | ||
tracker.disabled = true; | ||
(_a = tracker.disable) === null || _a === void 0 ? void 0 : _a.call(tracker); | ||
} | ||
}); | ||
} | ||
/** | ||
@@ -1512,0 +1522,0 @@ * Disable a tracker. This does not deterministically unload |
@@ -1510,2 +1510,12 @@ (function (global, factory) { | ||
} | ||
disable() { | ||
this.disabled = true; | ||
this.trackers.forEach((tracker) => { | ||
var _a; | ||
if (!tracker.hasError) { | ||
tracker.disabled = true; | ||
(_a = tracker.disable) === null || _a === void 0 ? void 0 : _a.call(tracker); | ||
} | ||
}); | ||
} | ||
/** | ||
@@ -1512,0 +1522,0 @@ * Disable a tracker. This does not deterministically unload |
{ | ||
"name": "@esri/telemetry", | ||
"version": "7.0.6", | ||
"version": "7.0.7", | ||
"description": "A JavaScript Implementation of the ArcGIS Telemetry Specification", | ||
@@ -46,3 +46,3 @@ "main": "dist/node/index.js", | ||
}, | ||
"gitHead": "c7ad962a268cf3849f7f604c3a5e3a226ef0f3b2" | ||
"gitHead": "f95021bd5cae9a070b23b729738818473def6830" | ||
} |
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
398094
4375