@datadog/browser-core
Advanced tools
Comparing version 4.10.4 to 4.11.0
@@ -9,3 +9,3 @@ "use strict"; | ||
var publicApi = (0, utils_1.assign)({ | ||
version: "4.10.4", | ||
version: "4.11.0", | ||
// This API method is intentionally not monitored, since the only thing executed is the | ||
@@ -12,0 +12,0 @@ // user-provided 'callback'. All SDK usages executed in the callback should be monitored, and |
@@ -28,5 +28,5 @@ "use strict"; | ||
var parameters = "ddsource=".concat(source || 'browser') + | ||
"&ddtags=".concat(encodeURIComponent(["sdk_version:".concat("4.10.4")].concat(tags).join(','))) + | ||
"&ddtags=".concat(encodeURIComponent(["sdk_version:".concat("4.11.0")].concat(tags).join(','))) + | ||
"&dd-api-key=".concat(clientToken) + | ||
"&dd-evp-origin-version=".concat(encodeURIComponent("4.10.4")) + | ||
"&dd-evp-origin-version=".concat(encodeURIComponent("4.11.0")) + | ||
'&dd-evp-origin=browser' + | ||
@@ -33,0 +33,0 @@ "&dd-request-id=".concat((0, utils_1.generateUUID)()); |
@@ -17,8 +17,3 @@ "use strict"; | ||
]; | ||
var TELEMETRY_ALLOWED_SITES = [ | ||
configuration_1.INTAKE_SITE_US5, | ||
configuration_1.INTAKE_SITE_US3, | ||
configuration_1.INTAKE_SITE_EU, | ||
// INTAKE_SITE_US, | ||
]; | ||
var TELEMETRY_ALLOWED_SITES = [configuration_1.INTAKE_SITE_US5, configuration_1.INTAKE_SITE_US3, configuration_1.INTAKE_SITE_EU, configuration_1.INTAKE_SITE_US]; | ||
var monitoringConfiguration = { maxMessagesPerPage: 0, sentMessageCount: 0, telemetryEnabled: false }; | ||
@@ -51,3 +46,3 @@ var onInternalMonitoringMessageCollected; | ||
service: 'browser-sdk', | ||
version: "4.10.4", | ||
version: "4.11.0", | ||
source: 'browser', | ||
@@ -54,0 +49,0 @@ _dd: { |
@@ -199,2 +199,3 @@ export declare const ONE_SECOND = 1000; | ||
export declare function removeDuplicates<T>(array: T[]): T[]; | ||
export declare function matchList(list: Array<string | RegExp>, value: string): boolean; | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.removeDuplicates = exports.setToArray = exports.requestIdleCallback = exports.combine = exports.deepClone = exports.mergeInto = exports.getType = exports.runOnReadyState = exports.addEventListeners = exports.addEventListener = exports.safeTruncate = exports.findCommaSeparatedValue = exports.getLinkElementOrigin = exports.getLocationOrigin = exports.getGlobalObject = exports.startsWith = exports.mapValues = exports.isEmptyObject = exports.objectEntries = exports.objectHasValue = exports.objectValues = exports.isNumber = exports.isPercentage = exports.findLast = exports.find = exports.includes = exports.jsonStringify = exports.noop = exports.round = exports.performDraw = exports.generateUUID = exports.shallowClone = exports.assign = exports.throttle = exports.ONE_KILO_BYTE = exports.ONE_YEAR = exports.ONE_DAY = exports.ONE_HOUR = exports.ONE_MINUTE = exports.ONE_SECOND = void 0; | ||
exports.matchList = exports.removeDuplicates = exports.setToArray = exports.requestIdleCallback = exports.combine = exports.deepClone = exports.mergeInto = exports.getType = exports.runOnReadyState = exports.addEventListeners = exports.addEventListener = exports.safeTruncate = exports.findCommaSeparatedValue = exports.getLinkElementOrigin = exports.getLocationOrigin = exports.getGlobalObject = exports.startsWith = exports.mapValues = exports.isEmptyObject = exports.objectEntries = exports.objectHasValue = exports.objectValues = exports.isNumber = exports.isPercentage = exports.findLast = exports.find = exports.includes = exports.jsonStringify = exports.noop = exports.round = exports.performDraw = exports.generateUUID = exports.shallowClone = exports.assign = exports.throttle = exports.ONE_KILO_BYTE = exports.ONE_YEAR = exports.ONE_DAY = exports.ONE_HOUR = exports.ONE_MINUTE = exports.ONE_SECOND = void 0; | ||
var internalMonitoring_1 = require("../domain/internalMonitoring"); | ||
@@ -461,2 +461,6 @@ exports.ONE_SECOND = 1000; | ||
exports.removeDuplicates = removeDuplicates; | ||
function matchList(list, value) { | ||
return list.some(function (item) { return item === value || (item instanceof RegExp && item.test(value)); }); | ||
} | ||
exports.matchList = matchList; | ||
//# sourceMappingURL=utils.js.map |
@@ -21,3 +21,3 @@ "use strict"; | ||
endpointType: endpointType, | ||
version: "4.10.4", | ||
version: "4.11.0", | ||
connection: navigator.connection ? navigator.connection.effectiveType : undefined, | ||
@@ -24,0 +24,0 @@ onLine: navigator.onLine, |
@@ -6,3 +6,3 @@ import { setDebugMode } from '../domain/internalMonitoring'; | ||
var publicApi = assign({ | ||
version: "4.10.4", | ||
version: "4.11.0", | ||
// This API method is intentionally not monitored, since the only thing executed is the | ||
@@ -9,0 +9,0 @@ // user-provided 'callback'. All SDK usages executed in the callback should be monitored, and |
@@ -25,5 +25,5 @@ import { timeStampNow } from '../../tools/timeUtils'; | ||
var parameters = "ddsource=".concat(source || 'browser') + | ||
"&ddtags=".concat(encodeURIComponent(["sdk_version:".concat("4.10.4")].concat(tags).join(','))) + | ||
"&ddtags=".concat(encodeURIComponent(["sdk_version:".concat("4.11.0")].concat(tags).join(','))) + | ||
"&dd-api-key=".concat(clientToken) + | ||
"&dd-evp-origin-version=".concat(encodeURIComponent("4.10.4")) + | ||
"&dd-evp-origin-version=".concat(encodeURIComponent("4.11.0")) + | ||
'&dd-evp-origin=browser' + | ||
@@ -30,0 +30,0 @@ "&dd-request-id=".concat(generateUUID()); |
@@ -7,3 +7,3 @@ import { display } from '../../tools/display'; | ||
import { timeStampNow } from '../../tools/timeUtils'; | ||
import { isExperimentalFeatureEnabled, INTAKE_SITE_US5, INTAKE_SITE_US3, INTAKE_SITE_STAGING, INTAKE_SITE_EU, } from '../configuration'; | ||
import { isExperimentalFeatureEnabled, INTAKE_SITE_US5, INTAKE_SITE_US3, INTAKE_SITE_STAGING, INTAKE_SITE_EU, INTAKE_SITE_US, } from '../configuration'; | ||
var ALLOWED_FRAME_URLS = [ | ||
@@ -15,8 +15,3 @@ 'https://www.datadoghq-browser-agent.com', | ||
]; | ||
var TELEMETRY_ALLOWED_SITES = [ | ||
INTAKE_SITE_US5, | ||
INTAKE_SITE_US3, | ||
INTAKE_SITE_EU, | ||
// INTAKE_SITE_US, | ||
]; | ||
var TELEMETRY_ALLOWED_SITES = [INTAKE_SITE_US5, INTAKE_SITE_US3, INTAKE_SITE_EU, INTAKE_SITE_US]; | ||
var monitoringConfiguration = { maxMessagesPerPage: 0, sentMessageCount: 0, telemetryEnabled: false }; | ||
@@ -49,3 +44,3 @@ var onInternalMonitoringMessageCollected; | ||
service: 'browser-sdk', | ||
version: "4.10.4", | ||
version: "4.11.0", | ||
source: 'browser', | ||
@@ -52,0 +47,0 @@ _dd: { |
@@ -199,2 +199,3 @@ export declare const ONE_SECOND = 1000; | ||
export declare function removeDuplicates<T>(array: T[]): T[]; | ||
export declare function matchList(list: Array<string | RegExp>, value: string): boolean; | ||
export {}; |
@@ -424,2 +424,5 @@ import { monitor } from '../domain/internalMonitoring'; | ||
} | ||
export function matchList(list, value) { | ||
return list.some(function (item) { return item === value || (item instanceof RegExp && item.test(value)); }); | ||
} | ||
//# sourceMappingURL=utils.js.map |
@@ -17,3 +17,3 @@ import { isExperimentalFeatureEnabled } from '../domain/configuration'; | ||
endpointType: endpointType, | ||
version: "4.10.4", | ||
version: "4.11.0", | ||
connection: navigator.connection ? navigator.connection.effectiveType : undefined, | ||
@@ -20,0 +20,0 @@ onLine: navigator.onLine, |
{ | ||
"name": "@datadog/browser-core", | ||
"version": "4.10.4", | ||
"version": "4.11.0", | ||
"license": "Apache-2.0", | ||
@@ -24,3 +24,3 @@ "main": "cjs/index.js", | ||
}, | ||
"gitHead": "9a082831d321fad09e9a6f1f4c6c73b9449a9869" | ||
"gitHead": "b91c915869522bf295fc72a8ee909c7e4938f316" | ||
} |
@@ -250,3 +250,3 @@ import type { StackTrace } from '@datadog/browser-core' | ||
{ site: INTAKE_SITE_EU, enabled: true }, | ||
{ site: INTAKE_SITE_US, enabled: false }, | ||
{ site: INTAKE_SITE_US, enabled: true }, | ||
].forEach(({ site, enabled }) => { | ||
@@ -253,0 +253,0 @@ it(`should be ${enabled ? 'enabled' : 'disabled'} on ${site}`, () => { |
@@ -16,2 +16,3 @@ import type { Context } from '../../tools/context' | ||
INTAKE_SITE_EU, | ||
INTAKE_SITE_US, | ||
} from '../configuration' | ||
@@ -52,8 +53,3 @@ import type { TelemetryEvent } from './telemetryEvent.types' | ||
const TELEMETRY_ALLOWED_SITES: string[] = [ | ||
INTAKE_SITE_US5, | ||
INTAKE_SITE_US3, | ||
INTAKE_SITE_EU, | ||
// INTAKE_SITE_US, | ||
] | ||
const TELEMETRY_ALLOWED_SITES: string[] = [INTAKE_SITE_US5, INTAKE_SITE_US3, INTAKE_SITE_EU, INTAKE_SITE_US] | ||
@@ -60,0 +56,0 @@ const monitoringConfiguration: { |
@@ -634,1 +634,5 @@ import { monitor } from '../domain/internalMonitoring' | ||
} | ||
export function matchList(list: Array<string | RegExp>, value: string) { | ||
return list.some((item) => item === value || (item instanceof RegExp && item.test(value))) | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
825932
16303