Socket
Book a DemoInstallSign in
Socket

@esri/telemetry

Package Overview
Dependencies
Maintainers
48
Versions
90
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

to
9.1.1

11

dist/esm/utils/getTrackersToInitialize.js

@@ -0,1 +1,2 @@

import { isGlobalPrivacyControlEnabled } from './is-global-privacy-control-enabled';
/**

@@ -15,7 +16,11 @@ * Given privacy settings, list of configured trackers, and the portal, return the trackers

// If no portal is passed in, we assume this to be true.
let orgOptsIntoTracking = true;
let shouldEnableTracking = true;
// if a portal is passed in and eueiEnabled is false, the org has opted out of all tracking.
if (portal && portal.eueiEnabled === false) {
orgOptsIntoTracking = false;
shouldEnableTracking = false;
}
if (isGlobalPrivacyControlEnabled()) {
// If global privacy control is enabled, we assume the user has opted out of tracking.
shouldEnableTracking = false;
}
// compute some states so logic is simpler to read

@@ -27,3 +32,3 @@ const consentNotRequired = !config.requireConsent;

// This may change in the future with "functional" tracking, but we don't have that yet.
if (orgOptsIntoTracking) {
if (shouldEnableTracking) {
// tracker rules

@@ -30,0 +35,0 @@ const rules = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTrackersToInitialize = void 0;
const is_global_privacy_control_enabled_1 = require("./is-global-privacy-control-enabled");
/**

@@ -18,7 +19,11 @@ * Given privacy settings, list of configured trackers, and the portal, return the trackers

// If no portal is passed in, we assume this to be true.
let orgOptsIntoTracking = true;
let shouldEnableTracking = true;
// if a portal is passed in and eueiEnabled is false, the org has opted out of all tracking.
if (portal && portal.eueiEnabled === false) {
orgOptsIntoTracking = false;
shouldEnableTracking = false;
}
if ((0, is_global_privacy_control_enabled_1.isGlobalPrivacyControlEnabled)()) {
// If global privacy control is enabled, we assume the user has opted out of tracking.
shouldEnableTracking = false;
}
// compute some states so logic is simpler to read

@@ -30,3 +35,3 @@ const consentNotRequired = !config.requireConsent;

// This may change in the future with "functional" tracking, but we don't have that yet.
if (orgOptsIntoTracking) {
if (shouldEnableTracking) {
// tracker rules

@@ -33,0 +38,0 @@ const rules = {

@@ -209,7 +209,11 @@ (function (global, factory) {

// If no portal is passed in, we assume this to be true.
let orgOptsIntoTracking = true;
let shouldEnableTracking = true;
// if a portal is passed in and eueiEnabled is false, the org has opted out of all tracking.
if (portal && portal.eueiEnabled === false) {
orgOptsIntoTracking = false;
shouldEnableTracking = false;
}
if (isGlobalPrivacyControlEnabled()) {
// If global privacy control is enabled, we assume the user has opted out of tracking.
shouldEnableTracking = false;
}
// compute some states so logic is simpler to read

@@ -221,3 +225,3 @@ const consentNotRequired = !config.requireConsent;

// This may change in the future with "functional" tracking, but we don't have that yet.
if (orgOptsIntoTracking) {
if (shouldEnableTracking) {
// tracker rules

@@ -224,0 +228,0 @@ const rules = {

@@ -209,7 +209,11 @@ (function (global, factory) {

// If no portal is passed in, we assume this to be true.
let orgOptsIntoTracking = true;
let shouldEnableTracking = true;
// if a portal is passed in and eueiEnabled is false, the org has opted out of all tracking.
if (portal && portal.eueiEnabled === false) {
orgOptsIntoTracking = false;
shouldEnableTracking = false;
}
if (isGlobalPrivacyControlEnabled()) {
// If global privacy control is enabled, we assume the user has opted out of tracking.
shouldEnableTracking = false;
}
// compute some states so logic is simpler to read

@@ -221,3 +225,3 @@ const consentNotRequired = !config.requireConsent;

// This may change in the future with "functional" tracking, but we don't have that yet.
if (orgOptsIntoTracking) {
if (shouldEnableTracking) {
// tracker rules

@@ -224,0 +228,0 @@ const rules = {

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

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

},
"gitHead": "329715199e5a459207553dd2207f0d34f7e899ab"
"gitHead": "d575620e650f874a546ec296ff2234cf61bde729"
}

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