@datadog/browser-core
Advanced tools
Comparing version 5.2.0 to 5.3.0
@@ -9,3 +9,3 @@ "use strict"; | ||
var publicApi = (0, polyfills_1.assign)({ | ||
version: "5.2.0", | ||
version: "5.3.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 |
@@ -52,3 +52,3 @@ "use strict"; | ||
var retry = _b.retry, flushReason = _b.flushReason, encoding = _b.encoding; | ||
var tags = ["sdk_version:".concat("5.2.0"), "api:".concat(api)].concat(configurationTags); | ||
var tags = ["sdk_version:".concat("5.3.0"), "api:".concat(api)].concat(configurationTags); | ||
if (flushReason && (0, experimentalFeatures_1.isExperimentalFeatureEnabled)(experimentalFeatures_1.ExperimentalFeature.COLLECT_FLUSH_REASON)) { | ||
@@ -64,3 +64,3 @@ tags.push("flush_reason:".concat(flushReason)); | ||
"dd-api-key=".concat(clientToken), | ||
"dd-evp-origin-version=".concat(encodeURIComponent("5.2.0")), | ||
"dd-evp-origin-version=".concat(encodeURIComponent("5.3.0")), | ||
'dd-evp-origin=browser', | ||
@@ -67,0 +67,0 @@ "dd-request-id=".concat((0, stringUtils_1.generateUUID)()), |
@@ -54,3 +54,3 @@ "use strict"; | ||
service: telemetryService, | ||
version: "5.2.0", | ||
version: "5.3.0", | ||
source: 'browser', | ||
@@ -57,0 +57,0 @@ _dd: { |
@@ -17,4 +17,3 @@ /** | ||
WEB_VITALS_ATTRIBUTION = "web_vitals_attribution", | ||
DISABLE_REPLAY_INLINE_CSS = "disable_replay_inline_css", | ||
COMPRESS_BATCH = "compress_batch" | ||
DISABLE_REPLAY_INLINE_CSS = "disable_replay_inline_css" | ||
} | ||
@@ -21,0 +20,0 @@ export declare function addExperimentalFeatures(enabledFeatures: ExperimentalFeature[]): void; |
@@ -25,3 +25,2 @@ "use strict"; | ||
ExperimentalFeature["DISABLE_REPLAY_INLINE_CSS"] = "disable_replay_inline_css"; | ||
ExperimentalFeature["COMPRESS_BATCH"] = "compress_batch"; | ||
})(ExperimentalFeature || (exports.ExperimentalFeature = ExperimentalFeature = {})); | ||
@@ -28,0 +27,0 @@ var enabledExperimentalFeatures = new Set(); |
@@ -6,3 +6,3 @@ import { catchUserErrors } from '../tools/catchUserErrors'; | ||
var publicApi = assign({ | ||
version: "5.2.0", | ||
version: "5.3.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 |
@@ -48,3 +48,3 @@ import { timeStampNow } from '../../tools/utils/timeUtils'; | ||
var retry = _b.retry, flushReason = _b.flushReason, encoding = _b.encoding; | ||
var tags = ["sdk_version:".concat("5.2.0"), "api:".concat(api)].concat(configurationTags); | ||
var tags = ["sdk_version:".concat("5.3.0"), "api:".concat(api)].concat(configurationTags); | ||
if (flushReason && isExperimentalFeatureEnabled(ExperimentalFeature.COLLECT_FLUSH_REASON)) { | ||
@@ -60,3 +60,3 @@ tags.push("flush_reason:".concat(flushReason)); | ||
"dd-api-key=".concat(clientToken), | ||
"dd-evp-origin-version=".concat(encodeURIComponent("5.2.0")), | ||
"dd-evp-origin-version=".concat(encodeURIComponent("5.3.0")), | ||
'dd-evp-origin=browser', | ||
@@ -63,0 +63,0 @@ "dd-request-id=".concat(generateUUID()), |
@@ -51,3 +51,3 @@ import { ConsoleApiName } from '../../tools/display'; | ||
service: telemetryService, | ||
version: "5.2.0", | ||
version: "5.3.0", | ||
source: 'browser', | ||
@@ -54,0 +54,0 @@ _dd: { |
@@ -17,4 +17,3 @@ /** | ||
WEB_VITALS_ATTRIBUTION = "web_vitals_attribution", | ||
DISABLE_REPLAY_INLINE_CSS = "disable_replay_inline_css", | ||
COMPRESS_BATCH = "compress_batch" | ||
DISABLE_REPLAY_INLINE_CSS = "disable_replay_inline_css" | ||
} | ||
@@ -21,0 +20,0 @@ export declare function addExperimentalFeatures(enabledFeatures: ExperimentalFeature[]): void; |
@@ -22,3 +22,2 @@ /** | ||
ExperimentalFeature["DISABLE_REPLAY_INLINE_CSS"] = "disable_replay_inline_css"; | ||
ExperimentalFeature["COMPRESS_BATCH"] = "compress_batch"; | ||
})(ExperimentalFeature || (ExperimentalFeature = {})); | ||
@@ -25,0 +24,0 @@ var enabledExperimentalFeatures = new Set(); |
{ | ||
"name": "@datadog/browser-core", | ||
"version": "5.2.0", | ||
"version": "5.3.0", | ||
"license": "Apache-2.0", | ||
@@ -26,3 +26,3 @@ "main": "cjs/index.js", | ||
}, | ||
"gitHead": "1896ddf29a7da4ea02b3d229f583d4a72d87d0a8" | ||
"gitHead": "5e8ff4fcbf59e397ae1e99bf76146be4b13c050b" | ||
} |
@@ -62,19 +62,19 @@ import { monitor } from '../tools/monitor' | ||
: T extends Document | ||
? DocumentEventMap | ||
: T extends HTMLElement | ||
? HTMLElementEventMap | ||
: T extends VisualViewport | ||
? VisualViewportEventMap | ||
: T extends ShadowRoot | ||
? // ShadowRootEventMap is not yet defined in our supported TS version. Instead, use | ||
// GlobalEventHandlersEventMap which is more than enough as we only need to listen for events bubbling | ||
// through the ShadowRoot like "change" or "input" | ||
GlobalEventHandlersEventMap | ||
: T extends XMLHttpRequest | ||
? XMLHttpRequestEventMap | ||
: T extends Performance | ||
? PerformanceEventMap | ||
: T extends Worker | ||
? WorkerEventMap | ||
: Record<never, never> | ||
? DocumentEventMap | ||
: T extends HTMLElement | ||
? HTMLElementEventMap | ||
: T extends VisualViewport | ||
? VisualViewportEventMap | ||
: T extends ShadowRoot | ||
? // ShadowRootEventMap is not yet defined in our supported TS version. Instead, use | ||
// GlobalEventHandlersEventMap which is more than enough as we only need to listen for events bubbling | ||
// through the ShadowRoot like "change" or "input" | ||
GlobalEventHandlersEventMap | ||
: T extends XMLHttpRequest | ||
? XMLHttpRequestEventMap | ||
: T extends Performance | ||
? PerformanceEventMap | ||
: T extends Worker | ||
? WorkerEventMap | ||
: Record<never, never> | ||
@@ -81,0 +81,0 @@ /** |
@@ -67,4 +67,4 @@ import { callMonitored } from '../../tools/monitor' | ||
: !isErrorInstance | ||
? `${nonErrorPrefix} ${jsonStringify(sanitize(originalError))!}` | ||
: 'Empty message' | ||
? `${nonErrorPrefix} ${jsonStringify(sanitize(originalError))!}` | ||
: 'Empty message' | ||
} | ||
@@ -71,0 +71,0 @@ |
@@ -21,3 +21,2 @@ /** | ||
DISABLE_REPLAY_INLINE_CSS = 'disable_replay_inline_css', | ||
COMPRESS_BATCH = 'compress_batch', | ||
} | ||
@@ -24,0 +23,0 @@ |
@@ -8,18 +8,18 @@ import { getType } from './utils/typeUtils' | ||
: // case 2 - destination is undefined - return source | ||
TDestination extends undefined | ||
? TSource | ||
: // case 3 - source is an array - see if it merges or overwrites | ||
TSource extends any[] | ||
? TDestination extends any[] | ||
? TDestination & TSource | ||
: TSource | ||
: // case 4 - source is an object - see if it merges or overwrites | ||
TSource extends object | ||
? TDestination extends object | ||
? TDestination extends any[] | ||
? TSource | ||
: TDestination & TSource | ||
: TSource | ||
: // case 5 - cannot merge - return source | ||
TSource | ||
TDestination extends undefined | ||
? TSource | ||
: // case 3 - source is an array - see if it merges or overwrites | ||
TSource extends any[] | ||
? TDestination extends any[] | ||
? TDestination & TSource | ||
: TSource | ||
: // case 4 - source is an object - see if it merges or overwrites | ||
TSource extends object | ||
? TDestination extends object | ||
? TDestination extends any[] | ||
? TSource | ||
: TDestination & TSource | ||
: TSource | ||
: // case 5 - cannot merge - return source | ||
TSource | ||
@@ -26,0 +26,0 @@ /** |
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
1003550
17705