@esri/telemetry
Advanced tools
Comparing version
@@ -0,1 +1,2 @@ | ||
| import { isGlobalPrivacyControlEnabled } from './utils/is-global-privacy-control-enabled'; | ||
| export function shouldDisableTracking(options = {}) { | ||
@@ -28,3 +29,3 @@ const { disabled, portal, requireConsent, userPrivacySettings } = options; | ||
| } | ||
| if (disabled || (portal === null || portal === void 0 ? void 0 : portal.eueiEnabled) === false) { | ||
| if (disabled || (portal === null || portal === void 0 ? void 0 : portal.eueiEnabled) === false || isGlobalPrivacyControlEnabled()) { | ||
| return true; | ||
@@ -31,0 +32,0 @@ } |
@@ -5,2 +5,3 @@ export * from './inject-script-element'; | ||
| export * from './getTrackersToInitialize'; | ||
| export * from './is-global-privacy-control-enabled'; | ||
| //# sourceMappingURL=index.js.map |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.shouldDisableTracking = void 0; | ||
| const is_global_privacy_control_enabled_1 = require("./utils/is-global-privacy-control-enabled"); | ||
| function shouldDisableTracking(options = {}) { | ||
@@ -31,3 +32,3 @@ const { disabled, portal, requireConsent, userPrivacySettings } = options; | ||
| } | ||
| if (disabled || (portal === null || portal === void 0 ? void 0 : portal.eueiEnabled) === false) { | ||
| if (disabled || (portal === null || portal === void 0 ? void 0 : portal.eueiEnabled) === false || (0, is_global_privacy_control_enabled_1.isGlobalPrivacyControlEnabled)()) { | ||
| return true; | ||
@@ -34,0 +35,0 @@ } |
@@ -8,2 +8,3 @@ "use strict"; | ||
| tslib_1.__exportStar(require("./getTrackersToInitialize"), exports); | ||
| tslib_1.__exportStar(require("./is-global-privacy-control-enabled"), exports); | ||
| //# sourceMappingURL=index.js.map |
@@ -5,1 +5,2 @@ export * from './inject-script-element'; | ||
| export * from './getTrackersToInitialize'; | ||
| export * from './is-global-privacy-control-enabled'; |
@@ -7,2 +7,7 @@ (function (global, factory) { | ||
| function isGlobalPrivacyControlEnabled() { | ||
| var _a; | ||
| return !!((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.globalPrivacyControl); | ||
| } | ||
| function shouldDisableTracking(options = {}) { | ||
@@ -35,3 +40,3 @@ const { disabled, portal, requireConsent, userPrivacySettings } = options; | ||
| } | ||
| if (disabled || (portal === null || portal === void 0 ? void 0 : portal.eueiEnabled) === false) { | ||
| if (disabled || (portal === null || portal === void 0 ? void 0 : portal.eueiEnabled) === false || isGlobalPrivacyControlEnabled()) { | ||
| return true; | ||
@@ -672,2 +677,3 @@ } | ||
| exports.injectScriptElementAsync = injectScriptElementAsync; | ||
| exports.isGlobalPrivacyControlEnabled = isGlobalPrivacyControlEnabled; | ||
| exports.storage = storage; | ||
@@ -674,0 +680,0 @@ |
@@ -7,2 +7,7 @@ (function (global, factory) { | ||
| function isGlobalPrivacyControlEnabled() { | ||
| var _a; | ||
| return !!((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.globalPrivacyControl); | ||
| } | ||
| function shouldDisableTracking(options = {}) { | ||
@@ -35,3 +40,3 @@ const { disabled, portal, requireConsent, userPrivacySettings } = options; | ||
| } | ||
| if (disabled || (portal === null || portal === void 0 ? void 0 : portal.eueiEnabled) === false) { | ||
| if (disabled || (portal === null || portal === void 0 ? void 0 : portal.eueiEnabled) === false || isGlobalPrivacyControlEnabled()) { | ||
| return true; | ||
@@ -672,2 +677,3 @@ } | ||
| exports.injectScriptElementAsync = injectScriptElementAsync; | ||
| exports.isGlobalPrivacyControlEnabled = isGlobalPrivacyControlEnabled; | ||
| exports.storage = storage; | ||
@@ -674,0 +680,0 @@ |
| { | ||
| "name": "@esri/telemetry", | ||
| "version": "9.0.0", | ||
| "version": "9.1.0", | ||
| "description": "A JavaScript Implementation of the ArcGIS Telemetry Specification", | ||
@@ -43,3 +43,3 @@ "main": "dist/node/index.js", | ||
| }, | ||
| "gitHead": "0813529dbe3e15f0172f762cca77824bec1b64c1" | ||
| "gitHead": "329715199e5a459207553dd2207f0d34f7e899ab" | ||
| } |
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
268923
1.57%52
10.64%2980
0.95%