@esri/telemetry
Advanced tools
Comparing version 6.0.0 to 6.1.0
@@ -221,11 +221,15 @@ import sha256 from 'crypto-js/sha256.js'; | ||
disableTracker(trackerName) { | ||
var _a; | ||
const tracker = this.trackers.find(({ name }) => name === trackerName); | ||
if (tracker) { | ||
tracker.disabled = true; | ||
(_a = tracker.disable) === null || _a === void 0 ? void 0 : _a.call(tracker); | ||
} | ||
} | ||
enableTracker(trackerName) { | ||
var _a; | ||
const tracker = this.trackers.find(({ name }) => name === trackerName); | ||
if (tracker) { | ||
tracker.disabled = false; | ||
(_a = tracker.enable) === null || _a === void 0 ? void 0 : _a.call(tracker); | ||
} | ||
@@ -232,0 +236,0 @@ } |
@@ -225,11 +225,15 @@ "use strict"; | ||
disableTracker(trackerName) { | ||
var _a; | ||
const tracker = this.trackers.find(({ name }) => name === trackerName); | ||
if (tracker) { | ||
tracker.disabled = true; | ||
(_a = tracker.disable) === null || _a === void 0 ? void 0 : _a.call(tracker); | ||
} | ||
} | ||
enableTracker(trackerName) { | ||
var _a; | ||
const tracker = this.trackers.find(({ name }) => name === trackerName); | ||
if (tracker) { | ||
tracker.disabled = false; | ||
(_a = tracker.enable) === null || _a === void 0 ? void 0 : _a.call(tracker); | ||
} | ||
@@ -236,0 +240,0 @@ } |
@@ -42,2 +42,4 @@ export declare type GenericObject = { | ||
logPageView?(page: string, attributes: any): Promise<unknown>; | ||
enable?(): void; | ||
disable?(): void; | ||
} | ||
@@ -44,0 +46,0 @@ export interface User { |
@@ -1402,11 +1402,15 @@ (function (global, factory) { | ||
disableTracker(trackerName) { | ||
var _a; | ||
const tracker = this.trackers.find(({ name }) => name === trackerName); | ||
if (tracker) { | ||
tracker.disabled = true; | ||
(_a = tracker.disable) === null || _a === void 0 ? void 0 : _a.call(tracker); | ||
} | ||
} | ||
enableTracker(trackerName) { | ||
var _a; | ||
const tracker = this.trackers.find(({ name }) => name === trackerName); | ||
if (tracker) { | ||
tracker.disabled = false; | ||
(_a = tracker.enable) === null || _a === void 0 ? void 0 : _a.call(tracker); | ||
} | ||
@@ -1413,0 +1417,0 @@ } |
@@ -1402,11 +1402,15 @@ (function (global, factory) { | ||
disableTracker(trackerName) { | ||
var _a; | ||
const tracker = this.trackers.find(({ name }) => name === trackerName); | ||
if (tracker) { | ||
tracker.disabled = true; | ||
(_a = tracker.disable) === null || _a === void 0 ? void 0 : _a.call(tracker); | ||
} | ||
} | ||
enableTracker(trackerName) { | ||
var _a; | ||
const tracker = this.trackers.find(({ name }) => name === trackerName); | ||
if (tracker) { | ||
tracker.disabled = false; | ||
(_a = tracker.enable) === null || _a === void 0 ? void 0 : _a.call(tracker); | ||
} | ||
@@ -1413,0 +1417,0 @@ } |
{ | ||
"name": "@esri/telemetry", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"description": "A JavaScript Implementation of the ArcGIS Telemetry Specification", | ||
@@ -55,3 +55,3 @@ "main": "dist/node/index.js", | ||
}, | ||
"gitHead": "135cc7bacd23bfa1c56caceecd17b6d9330cc75c" | ||
"gitHead": "d3d214ef1337a38c7dc7c04ec9042e2676b2813f" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
326576
3653
0