@datadog/browser-rum
Advanced tools
Comparing version 4.31.0 to 4.32.0
@@ -102,4 +102,4 @@ "use strict"; | ||
// this test is not sufficient. | ||
typeof Array.from === 'function' && typeof CSSSupportsRule === 'function'); | ||
typeof Array.from === 'function' && typeof CSSSupportsRule === 'function' && 'forEach' in NodeList.prototype); | ||
} | ||
//# sourceMappingURL=recorderApi.js.map |
@@ -10,3 +10,2 @@ "use strict"; | ||
var serialize_1 = require("./serialize"); | ||
var utils_1 = require("./utils"); | ||
var mutationBatch_1 = require("./mutationBatch"); | ||
@@ -93,6 +92,6 @@ /** | ||
var _loop_1 = function (mutation) { | ||
(0, utils_1.forEach)(mutation.addedNodes, function (node) { | ||
mutation.addedNodes.forEach(function (node) { | ||
addedAndMovedNodes.add(node); | ||
}); | ||
(0, utils_1.forEach)(mutation.removedNodes, function (node) { | ||
mutation.removedNodes.forEach(function (node) { | ||
if (!addedAndMovedNodes.has(node)) { | ||
@@ -99,0 +98,0 @@ removedNodes.set(node, mutation.target); |
@@ -10,3 +10,2 @@ "use strict"; | ||
var serializationUtils_1 = require("./serializationUtils"); | ||
var utils_1 = require("./utils"); | ||
function serializeDocument(document, configuration, serializationContext) { | ||
@@ -191,3 +190,3 @@ // We are sure that Documents are never ignored, so this function never returns null | ||
var result = []; | ||
(0, utils_1.forEach)(node.childNodes, function (childNode) { | ||
node.childNodes.forEach(function (childNode) { | ||
var serializedChildNode = serializeNodeWithId(childNode, options); | ||
@@ -194,0 +193,0 @@ if (serializedChildNode) { |
@@ -29,3 +29,10 @@ "use strict"; | ||
if (!entry) { | ||
(0, browser_core_1.addTelemetryDebug)('no shadow root in map'); | ||
(0, browser_core_1.addTelemetryDebug)('no shadow root in map', { | ||
shadowRoot: shadowRoot ? shadowRoot.nodeName : 'no node name', | ||
childrenLength: shadowRoot ? shadowRoot.childElementCount : '-1', | ||
controllerByShadowRootSize: controllerByShadowRoot.size, | ||
html: shadowRoot && (0, browser_core_1.isExperimentalFeatureEnabled)('shadow_dom_debug') | ||
? shadowRoot.innerHTML.substring(0, 2000) | ||
: undefined, | ||
}); | ||
return; | ||
@@ -32,0 +39,0 @@ } |
@@ -98,4 +98,4 @@ import { canUseEventBridge, noop, runOnReadyState } from '@datadog/browser-core'; | ||
// this test is not sufficient. | ||
typeof Array.from === 'function' && typeof CSSSupportsRule === 'function'); | ||
typeof Array.from === 'function' && typeof CSSSupportsRule === 'function' && 'forEach' in NodeList.prototype); | ||
} | ||
//# sourceMappingURL=recorderApi.js.map |
@@ -7,3 +7,2 @@ import { monitor, noop } from '@datadog/browser-core'; | ||
import { serializeNodeWithId, serializeAttribute } from './serialize'; | ||
import { forEach } from './utils'; | ||
import { createMutationBatch } from './mutationBatch'; | ||
@@ -89,6 +88,6 @@ /** | ||
var _loop_1 = function (mutation) { | ||
forEach(mutation.addedNodes, function (node) { | ||
mutation.addedNodes.forEach(function (node) { | ||
addedAndMovedNodes.add(node); | ||
}); | ||
forEach(mutation.removedNodes, function (node) { | ||
mutation.removedNodes.forEach(function (node) { | ||
if (!addedAndMovedNodes.has(node)) { | ||
@@ -95,0 +94,0 @@ removedNodes.set(node, mutation.target); |
@@ -7,3 +7,2 @@ import { assign, startsWith } from '@datadog/browser-core'; | ||
import { getSerializedNodeId, setSerializedNodeId, getElementInputValue, switchToAbsoluteUrl, serializeStyleSheets, } from './serializationUtils'; | ||
import { forEach } from './utils'; | ||
export function serializeDocument(document, configuration, serializationContext) { | ||
@@ -184,3 +183,3 @@ // We are sure that Documents are never ignored, so this function never returns null | ||
var result = []; | ||
forEach(node.childNodes, function (childNode) { | ||
node.childNodes.forEach(function (childNode) { | ||
var serializedChildNode = serializeNodeWithId(childNode, options); | ||
@@ -187,0 +186,0 @@ if (serializedChildNode) { |
@@ -1,2 +0,2 @@ | ||
import { addTelemetryDebug } from '@datadog/browser-core'; | ||
import { addTelemetryDebug, isExperimentalFeatureEnabled } from '@datadog/browser-core'; | ||
import { startMutationObserver } from './mutationObserver'; | ||
@@ -26,3 +26,10 @@ import { initInputObserver } from './observers'; | ||
if (!entry) { | ||
addTelemetryDebug('no shadow root in map'); | ||
addTelemetryDebug('no shadow root in map', { | ||
shadowRoot: shadowRoot ? shadowRoot.nodeName : 'no node name', | ||
childrenLength: shadowRoot ? shadowRoot.childElementCount : '-1', | ||
controllerByShadowRootSize: controllerByShadowRoot.size, | ||
html: shadowRoot && isExperimentalFeatureEnabled('shadow_dom_debug') | ||
? shadowRoot.innerHTML.substring(0, 2000) | ||
: undefined, | ||
}); | ||
return; | ||
@@ -29,0 +36,0 @@ } |
{ | ||
"name": "@datadog/browser-rum", | ||
"version": "4.31.0", | ||
"version": "4.32.0", | ||
"license": "Apache-2.0", | ||
@@ -15,7 +15,7 @@ "main": "cjs/entries/main.js", | ||
"dependencies": { | ||
"@datadog/browser-core": "4.31.0", | ||
"@datadog/browser-rum-core": "4.31.0" | ||
"@datadog/browser-core": "4.32.0", | ||
"@datadog/browser-rum-core": "4.32.0" | ||
}, | ||
"peerDependencies": { | ||
"@datadog/browser-logs": "4.31.0" | ||
"@datadog/browser-logs": "4.32.0" | ||
}, | ||
@@ -36,3 +36,3 @@ "peerDependenciesMeta": { | ||
}, | ||
"gitHead": "7e55e95c33caaae9c7fb905b421fe319c22ad17e" | ||
"gitHead": "6c048d69afd02c14515af5335b446932d85487fd" | ||
} |
@@ -167,4 +167,4 @@ import { canUseEventBridge, noop, runOnReadyState } from '@datadog/browser-core' | ||
// this test is not sufficient. | ||
typeof Array.from === 'function' && typeof CSSSupportsRule === 'function' | ||
typeof Array.from === 'function' && typeof CSSSupportsRule === 'function' && 'forEach' in NodeList.prototype | ||
) | ||
} |
@@ -12,3 +12,3 @@ import type { TimeStamp, HttpRequest } from '@datadog/browser-core' | ||
import { setup } from '../../../rum-core/test/specHelper' | ||
import { collectAsyncCalls, recordsPerFullSnapshot } from '../../test/utils' | ||
import { recordsPerFullSnapshot } from '../../test/utils' | ||
import { setSegmentBytesLimit, startDeflateWorker } from '../domain/segmentCollection' | ||
@@ -19,2 +19,3 @@ | ||
import { resetReplayStats } from '../domain/replayStats' | ||
import { collectAsyncCalls } from '../../../core/test/collectAsyncCalls' | ||
import { startRecording } from './startRecording' | ||
@@ -21,0 +22,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { collectAsyncCalls } from '../../../test/utils' | ||
import { collectAsyncCalls } from '../../../../core/test/collectAsyncCalls' | ||
import { createMutationBatch } from './mutationBatch' | ||
@@ -3,0 +3,0 @@ import type { RumMutationRecord } from './mutationObserver' |
import { DefaultPrivacyLevel, isIE, noop } from '@datadog/browser-core' | ||
import type { RumConfiguration } from '@datadog/browser-rum-core' | ||
import { collectAsyncCalls, createMutationPayloadValidator } from '../../../test/utils' | ||
import { createMutationPayloadValidator } from '../../../test/utils' | ||
import { | ||
@@ -13,2 +13,3 @@ NodePrivacyLevel, | ||
import { NodeType } from '../../types' | ||
import { collectAsyncCalls } from '../../../../core/test/collectAsyncCalls' | ||
import { serializeDocument, SerializationContextStatus } from './serialize' | ||
@@ -15,0 +16,0 @@ import { sortAddedAndMovedNodes, startMutationObserver } from './mutationObserver' |
@@ -20,3 +20,2 @@ import { monitor, noop } from '@datadog/browser-core' | ||
import { serializeNodeWithId, serializeAttribute, SerializationContextStatus } from './serialize' | ||
import { forEach } from './utils' | ||
import { createMutationBatch } from './mutationBatch' | ||
@@ -181,6 +180,6 @@ import type { MutationCallBack } from './observers' | ||
for (const mutation of mutations) { | ||
forEach(mutation.addedNodes, (node) => { | ||
mutation.addedNodes.forEach((node) => { | ||
addedAndMovedNodes.add(node) | ||
}) | ||
forEach(mutation.removedNodes, (node) => { | ||
mutation.removedNodes.forEach((node) => { | ||
if (!addedAndMovedNodes.has(node)) { | ||
@@ -187,0 +186,0 @@ removedNodes.set(node, mutation.target) |
import { DefaultPrivacyLevel, findLast, isIE } from '@datadog/browser-core' | ||
import type { RumConfiguration } from '@datadog/browser-rum-core' | ||
import { LifeCycle } from '@datadog/browser-rum-core' | ||
import { collectAsyncCalls } from '../../../../core/test/collectAsyncCalls' | ||
import type { Clock } from '../../../../core/test/specHelper' | ||
import { createNewEvent } from '../../../../core/test/specHelper' | ||
import { collectAsyncCalls, findFullSnapshot, findNode, recordsPerFullSnapshot } from '../../../test/utils' | ||
import { findFullSnapshot, findNode, recordsPerFullSnapshot } from '../../../test/utils' | ||
import type { | ||
@@ -8,0 +9,0 @@ BrowserIncrementalSnapshotRecord, |
@@ -36,3 +36,2 @@ import { assign, startsWith } from '@datadog/browser-core' | ||
} from './serializationUtils' | ||
import { forEach } from './utils' | ||
import type { ElementsScrollPositions } from './elementsScrollPositions' | ||
@@ -277,3 +276,3 @@ import type { ShadowRootsController } from './shadowRootsController' | ||
const result: SerializedNodeWithId[] = [] | ||
forEach(node.childNodes, (childNode) => { | ||
node.childNodes.forEach((childNode) => { | ||
const serializedChildNode = serializeNodeWithId(childNode, options) | ||
@@ -280,0 +279,0 @@ if (serializedChildNode) { |
@@ -1,2 +0,2 @@ | ||
import { addTelemetryDebug, DOM_EVENT } from '@datadog/browser-core' | ||
import { addTelemetryDebug, DOM_EVENT, isExperimentalFeatureEnabled } from '@datadog/browser-core' | ||
import type { RumConfiguration } from '@datadog/browser-rum-core' | ||
@@ -57,3 +57,11 @@ import { startMutationObserver } from './mutationObserver' | ||
if (!entry) { | ||
addTelemetryDebug('no shadow root in map') | ||
addTelemetryDebug('no shadow root in map', { | ||
shadowRoot: shadowRoot ? shadowRoot.nodeName : 'no node name', | ||
childrenLength: shadowRoot ? shadowRoot.childElementCount : '-1', | ||
controllerByShadowRootSize: controllerByShadowRoot.size, | ||
html: | ||
shadowRoot && isExperimentalFeatureEnabled('shadow_dom_debug') | ||
? shadowRoot.innerHTML.substring(0, 2000) | ||
: undefined, | ||
}) | ||
return | ||
@@ -60,0 +68,0 @@ } |
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1561751
26147
+ Added@datadog/browser-core@4.32.0(transitive)
+ Added@datadog/browser-logs@4.32.0(transitive)
+ Added@datadog/browser-rum-core@4.32.0(transitive)
- Removed@datadog/browser-core@4.31.0(transitive)
- Removed@datadog/browser-logs@4.31.0(transitive)
- Removed@datadog/browser-rum-core@4.31.0(transitive)
Updated@datadog/browser-core@4.32.0