@esri/telemetry
Advanced tools
Comparing version
@@ -1028,2 +1028,39 @@ define((function () { 'use strict'; | ||
function telemetryEnabled() { | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var portal = options.portal || {}; | ||
if (options.disabled) { | ||
return false; | ||
} | ||
if (_hasDoNotTrackEnabled()) { | ||
return false; | ||
} | ||
if (typeof portal.eueiEnabled !== 'undefined' && portal.eueiEnabled === false) { | ||
// Portal does not allow tracking | ||
return false; | ||
} | ||
if (portal.eueiEnabled && portal.user && portal.user.orgId === portal.id) { | ||
// Portal allows tracking; except when user is anonymous or doesn't belong to portal's org | ||
return true; | ||
} | ||
if (portal.user && !portal.user.orgId && portal.ipCntryCode === 'US') { | ||
// Public user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (!portal.user && portal.ipCntryCode === 'US') { | ||
// Anonymous user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (Object.keys(portal).length > 0) { | ||
// Initialized with a Portal object but does not meet tracking conditions | ||
return false; | ||
} | ||
// Default condition not initialized with a Portal-Self object | ||
return true; | ||
} | ||
function _hasDoNotTrackEnabled() { | ||
return (typeof navigator !== 'undefined' && navigator.doNotTrack) === '1' || typeof window !== 'undefined' && window.doNotTrack === '1'; | ||
} | ||
var storage = { | ||
@@ -1075,39 +1112,2 @@ storage: {}, | ||
function telemetryEnabled() { | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var portal = options.portal || {}; | ||
if (options.disabled) { | ||
return false; | ||
} | ||
if (_hasDoNotTrackEnabled()) { | ||
return false; | ||
} | ||
if (typeof portal.eueiEnabled !== 'undefined' && portal.eueiEnabled === false) { | ||
// Portal does not allow tracking | ||
return false; | ||
} | ||
if (portal.eueiEnabled && portal.user && portal.user.orgId === portal.id) { | ||
// Portal allows tracking; except when user is anonymous or doesn't belong to portal's org | ||
return true; | ||
} | ||
if (portal.user && !portal.user.orgId && portal.ipCntryCode === 'US') { | ||
// Public user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (!portal.user && portal.ipCntryCode === 'US') { | ||
// Anonymous user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (Object.keys(portal).length > 0) { | ||
// Initialized with a Portal object but does not meet tracking conditions | ||
return false; | ||
} | ||
// Default condition not initialized with a Portal-Self object | ||
return true; | ||
} | ||
function _hasDoNotTrackEnabled() { | ||
return (typeof navigator !== 'undefined' && navigator.doNotTrack) === '1' || typeof window !== 'undefined' && window.doNotTrack === '1'; | ||
} | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
@@ -1477,3 +1477,2 @@ return typeof obj; | ||
}(); | ||
Telemetry.storage = storage; | ||
@@ -1480,0 +1479,0 @@ function anonymize(user) { |
@@ -1028,2 +1028,39 @@ define((function () { 'use strict'; | ||
function telemetryEnabled() { | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var portal = options.portal || {}; | ||
if (options.disabled) { | ||
return false; | ||
} | ||
if (_hasDoNotTrackEnabled()) { | ||
return false; | ||
} | ||
if (typeof portal.eueiEnabled !== 'undefined' && portal.eueiEnabled === false) { | ||
// Portal does not allow tracking | ||
return false; | ||
} | ||
if (portal.eueiEnabled && portal.user && portal.user.orgId === portal.id) { | ||
// Portal allows tracking; except when user is anonymous or doesn't belong to portal's org | ||
return true; | ||
} | ||
if (portal.user && !portal.user.orgId && portal.ipCntryCode === 'US') { | ||
// Public user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (!portal.user && portal.ipCntryCode === 'US') { | ||
// Anonymous user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (Object.keys(portal).length > 0) { | ||
// Initialized with a Portal object but does not meet tracking conditions | ||
return false; | ||
} | ||
// Default condition not initialized with a Portal-Self object | ||
return true; | ||
} | ||
function _hasDoNotTrackEnabled() { | ||
return (typeof navigator !== 'undefined' && navigator.doNotTrack) === '1' || typeof window !== 'undefined' && window.doNotTrack === '1'; | ||
} | ||
var storage = { | ||
@@ -1075,39 +1112,2 @@ storage: {}, | ||
function telemetryEnabled() { | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var portal = options.portal || {}; | ||
if (options.disabled) { | ||
return false; | ||
} | ||
if (_hasDoNotTrackEnabled()) { | ||
return false; | ||
} | ||
if (typeof portal.eueiEnabled !== 'undefined' && portal.eueiEnabled === false) { | ||
// Portal does not allow tracking | ||
return false; | ||
} | ||
if (portal.eueiEnabled && portal.user && portal.user.orgId === portal.id) { | ||
// Portal allows tracking; except when user is anonymous or doesn't belong to portal's org | ||
return true; | ||
} | ||
if (portal.user && !portal.user.orgId && portal.ipCntryCode === 'US') { | ||
// Public user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (!portal.user && portal.ipCntryCode === 'US') { | ||
// Anonymous user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (Object.keys(portal).length > 0) { | ||
// Initialized with a Portal object but does not meet tracking conditions | ||
return false; | ||
} | ||
// Default condition not initialized with a Portal-Self object | ||
return true; | ||
} | ||
function _hasDoNotTrackEnabled() { | ||
return (typeof navigator !== 'undefined' && navigator.doNotTrack) === '1' || typeof window !== 'undefined' && window.doNotTrack === '1'; | ||
} | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
@@ -1477,3 +1477,2 @@ return typeof obj; | ||
}(); | ||
Telemetry.storage = storage; | ||
@@ -1480,0 +1479,0 @@ function anonymize(user) { |
@@ -1028,2 +1028,39 @@ define((function () { 'use strict'; | ||
function telemetryEnabled() { | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var portal = options.portal || {}; | ||
if (options.disabled) { | ||
return false; | ||
} | ||
if (_hasDoNotTrackEnabled()) { | ||
return false; | ||
} | ||
if (typeof portal.eueiEnabled !== 'undefined' && portal.eueiEnabled === false) { | ||
// Portal does not allow tracking | ||
return false; | ||
} | ||
if (portal.eueiEnabled && portal.user && portal.user.orgId === portal.id) { | ||
// Portal allows tracking; except when user is anonymous or doesn't belong to portal's org | ||
return true; | ||
} | ||
if (portal.user && !portal.user.orgId && portal.ipCntryCode === 'US') { | ||
// Public user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (!portal.user && portal.ipCntryCode === 'US') { | ||
// Anonymous user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (Object.keys(portal).length > 0) { | ||
// Initialized with a Portal object but does not meet tracking conditions | ||
return false; | ||
} | ||
// Default condition not initialized with a Portal-Self object | ||
return true; | ||
} | ||
function _hasDoNotTrackEnabled() { | ||
return (typeof navigator !== 'undefined' && navigator.doNotTrack) === '1' || typeof window !== 'undefined' && window.doNotTrack === '1'; | ||
} | ||
var storage = { | ||
@@ -1075,39 +1112,2 @@ storage: {}, | ||
function telemetryEnabled() { | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var portal = options.portal || {}; | ||
if (options.disabled) { | ||
return false; | ||
} | ||
if (_hasDoNotTrackEnabled()) { | ||
return false; | ||
} | ||
if (typeof portal.eueiEnabled !== 'undefined' && portal.eueiEnabled === false) { | ||
// Portal does not allow tracking | ||
return false; | ||
} | ||
if (portal.eueiEnabled && portal.user && portal.user.orgId === portal.id) { | ||
// Portal allows tracking; except when user is anonymous or doesn't belong to portal's org | ||
return true; | ||
} | ||
if (portal.user && !portal.user.orgId && portal.ipCntryCode === 'US') { | ||
// Public user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (!portal.user && portal.ipCntryCode === 'US') { | ||
// Anonymous user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (Object.keys(portal).length > 0) { | ||
// Initialized with a Portal object but does not meet tracking conditions | ||
return false; | ||
} | ||
// Default condition not initialized with a Portal-Self object | ||
return true; | ||
} | ||
function _hasDoNotTrackEnabled() { | ||
return (typeof navigator !== 'undefined' && navigator.doNotTrack) === '1' || typeof window !== 'undefined' && window.doNotTrack === '1'; | ||
} | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
@@ -1477,3 +1477,2 @@ return typeof obj; | ||
}(); | ||
Telemetry.storage = storage; | ||
@@ -1480,0 +1479,0 @@ function anonymize(user) { |
@@ -1028,2 +1028,39 @@ define((function () { 'use strict'; | ||
function telemetryEnabled() { | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var portal = options.portal || {}; | ||
if (options.disabled) { | ||
return false; | ||
} | ||
if (_hasDoNotTrackEnabled()) { | ||
return false; | ||
} | ||
if (typeof portal.eueiEnabled !== 'undefined' && portal.eueiEnabled === false) { | ||
// Portal does not allow tracking | ||
return false; | ||
} | ||
if (portal.eueiEnabled && portal.user && portal.user.orgId === portal.id) { | ||
// Portal allows tracking; except when user is anonymous or doesn't belong to portal's org | ||
return true; | ||
} | ||
if (portal.user && !portal.user.orgId && portal.ipCntryCode === 'US') { | ||
// Public user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (!portal.user && portal.ipCntryCode === 'US') { | ||
// Anonymous user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (Object.keys(portal).length > 0) { | ||
// Initialized with a Portal object but does not meet tracking conditions | ||
return false; | ||
} | ||
// Default condition not initialized with a Portal-Self object | ||
return true; | ||
} | ||
function _hasDoNotTrackEnabled() { | ||
return (typeof navigator !== 'undefined' && navigator.doNotTrack) === '1' || typeof window !== 'undefined' && window.doNotTrack === '1'; | ||
} | ||
var storage = { | ||
@@ -1075,39 +1112,2 @@ storage: {}, | ||
function telemetryEnabled() { | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var portal = options.portal || {}; | ||
if (options.disabled) { | ||
return false; | ||
} | ||
if (_hasDoNotTrackEnabled()) { | ||
return false; | ||
} | ||
if (typeof portal.eueiEnabled !== 'undefined' && portal.eueiEnabled === false) { | ||
// Portal does not allow tracking | ||
return false; | ||
} | ||
if (portal.eueiEnabled && portal.user && portal.user.orgId === portal.id) { | ||
// Portal allows tracking; except when user is anonymous or doesn't belong to portal's org | ||
return true; | ||
} | ||
if (portal.user && !portal.user.orgId && portal.ipCntryCode === 'US') { | ||
// Public user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (!portal.user && portal.ipCntryCode === 'US') { | ||
// Anonymous user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (Object.keys(portal).length > 0) { | ||
// Initialized with a Portal object but does not meet tracking conditions | ||
return false; | ||
} | ||
// Default condition not initialized with a Portal-Self object | ||
return true; | ||
} | ||
function _hasDoNotTrackEnabled() { | ||
return (typeof navigator !== 'undefined' && navigator.doNotTrack) === '1' || typeof window !== 'undefined' && window.doNotTrack === '1'; | ||
} | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
@@ -1477,3 +1477,2 @@ return typeof obj; | ||
}(); | ||
Telemetry.storage = storage; | ||
@@ -1480,0 +1479,0 @@ function anonymize(user) { |
@@ -1032,2 +1032,39 @@ (function (global, factory) { | ||
function telemetryEnabled() { | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var portal = options.portal || {}; | ||
if (options.disabled) { | ||
return false; | ||
} | ||
if (_hasDoNotTrackEnabled()) { | ||
return false; | ||
} | ||
if (typeof portal.eueiEnabled !== 'undefined' && portal.eueiEnabled === false) { | ||
// Portal does not allow tracking | ||
return false; | ||
} | ||
if (portal.eueiEnabled && portal.user && portal.user.orgId === portal.id) { | ||
// Portal allows tracking; except when user is anonymous or doesn't belong to portal's org | ||
return true; | ||
} | ||
if (portal.user && !portal.user.orgId && portal.ipCntryCode === 'US') { | ||
// Public user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (!portal.user && portal.ipCntryCode === 'US') { | ||
// Anonymous user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (Object.keys(portal).length > 0) { | ||
// Initialized with a Portal object but does not meet tracking conditions | ||
return false; | ||
} | ||
// Default condition not initialized with a Portal-Self object | ||
return true; | ||
} | ||
function _hasDoNotTrackEnabled() { | ||
return (typeof navigator !== 'undefined' && navigator.doNotTrack) === '1' || typeof window !== 'undefined' && window.doNotTrack === '1'; | ||
} | ||
var storage = { | ||
@@ -1079,39 +1116,2 @@ storage: {}, | ||
function telemetryEnabled() { | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var portal = options.portal || {}; | ||
if (options.disabled) { | ||
return false; | ||
} | ||
if (_hasDoNotTrackEnabled()) { | ||
return false; | ||
} | ||
if (typeof portal.eueiEnabled !== 'undefined' && portal.eueiEnabled === false) { | ||
// Portal does not allow tracking | ||
return false; | ||
} | ||
if (portal.eueiEnabled && portal.user && portal.user.orgId === portal.id) { | ||
// Portal allows tracking; except when user is anonymous or doesn't belong to portal's org | ||
return true; | ||
} | ||
if (portal.user && !portal.user.orgId && portal.ipCntryCode === 'US') { | ||
// Public user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (!portal.user && portal.ipCntryCode === 'US') { | ||
// Anonymous user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (Object.keys(portal).length > 0) { | ||
// Initialized with a Portal object but does not meet tracking conditions | ||
return false; | ||
} | ||
// Default condition not initialized with a Portal-Self object | ||
return true; | ||
} | ||
function _hasDoNotTrackEnabled() { | ||
return (typeof navigator !== 'undefined' && navigator.doNotTrack) === '1' || typeof window !== 'undefined' && window.doNotTrack === '1'; | ||
} | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
@@ -1481,3 +1481,2 @@ return typeof obj; | ||
}(); | ||
Telemetry.storage = storage; | ||
@@ -1484,0 +1483,0 @@ function anonymize(user) { |
@@ -1032,2 +1032,39 @@ (function (global, factory) { | ||
function telemetryEnabled() { | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var portal = options.portal || {}; | ||
if (options.disabled) { | ||
return false; | ||
} | ||
if (_hasDoNotTrackEnabled()) { | ||
return false; | ||
} | ||
if (typeof portal.eueiEnabled !== 'undefined' && portal.eueiEnabled === false) { | ||
// Portal does not allow tracking | ||
return false; | ||
} | ||
if (portal.eueiEnabled && portal.user && portal.user.orgId === portal.id) { | ||
// Portal allows tracking; except when user is anonymous or doesn't belong to portal's org | ||
return true; | ||
} | ||
if (portal.user && !portal.user.orgId && portal.ipCntryCode === 'US') { | ||
// Public user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (!portal.user && portal.ipCntryCode === 'US') { | ||
// Anonymous user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (Object.keys(portal).length > 0) { | ||
// Initialized with a Portal object but does not meet tracking conditions | ||
return false; | ||
} | ||
// Default condition not initialized with a Portal-Self object | ||
return true; | ||
} | ||
function _hasDoNotTrackEnabled() { | ||
return (typeof navigator !== 'undefined' && navigator.doNotTrack) === '1' || typeof window !== 'undefined' && window.doNotTrack === '1'; | ||
} | ||
var storage = { | ||
@@ -1079,39 +1116,2 @@ storage: {}, | ||
function telemetryEnabled() { | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var portal = options.portal || {}; | ||
if (options.disabled) { | ||
return false; | ||
} | ||
if (_hasDoNotTrackEnabled()) { | ||
return false; | ||
} | ||
if (typeof portal.eueiEnabled !== 'undefined' && portal.eueiEnabled === false) { | ||
// Portal does not allow tracking | ||
return false; | ||
} | ||
if (portal.eueiEnabled && portal.user && portal.user.orgId === portal.id) { | ||
// Portal allows tracking; except when user is anonymous or doesn't belong to portal's org | ||
return true; | ||
} | ||
if (portal.user && !portal.user.orgId && portal.ipCntryCode === 'US') { | ||
// Public user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (!portal.user && portal.ipCntryCode === 'US') { | ||
// Anonymous user in the United States on a portal that allows tracking | ||
return true; | ||
} | ||
if (Object.keys(portal).length > 0) { | ||
// Initialized with a Portal object but does not meet tracking conditions | ||
return false; | ||
} | ||
// Default condition not initialized with a Portal-Self object | ||
return true; | ||
} | ||
function _hasDoNotTrackEnabled() { | ||
return (typeof navigator !== 'undefined' && navigator.doNotTrack) === '1' || typeof window !== 'undefined' && window.doNotTrack === '1'; | ||
} | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
@@ -1481,3 +1481,2 @@ return typeof obj; | ||
}(); | ||
Telemetry.storage = storage; | ||
@@ -1484,0 +1483,0 @@ function anonymize(user) { |
{ | ||
"name": "@esri/telemetry", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "A JavaScript Implementation of the ArcGIS Telemetry Specification", | ||
@@ -48,3 +48,3 @@ "main": "dist/telemetry", | ||
}, | ||
"gitHead": "c99a7fccf688671dccbfc486b25d8ea026f8025f" | ||
"gitHead": "c2e010efdc15982099b4cb16555c4e126c69fcb9" | ||
} |
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
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
663936
00
-100%