@datadog/browser-rum-core
Advanced tools
Comparing version 2.5.2 to 2.5.3
@@ -6,4 +6,4 @@ "use strict"; | ||
datacenter: 'us', | ||
sdkVersion: '2.5.2', | ||
sdkVersion: '2.5.3', | ||
}; | ||
//# sourceMappingURL=buildEnv.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var browser_core_1 = require("@datadog/browser-core"); | ||
var trackActions_1 = require("../domain/rumEventsCollection/action/trackActions"); | ||
var rawRumEvent_types_1 = require("../rawRumEvent.types"); | ||
function makeRumPublicApi(startRumImpl) { | ||
@@ -68,3 +68,3 @@ var isAlreadyInitialized = false; | ||
startTime: performance.now(), | ||
type: trackActions_1.ActionType.CUSTOM, | ||
type: rawRumEvent_types_1.ActionType.CUSTOM, | ||
}); | ||
@@ -71,0 +71,0 @@ }), |
@@ -58,4 +58,4 @@ "use strict"; | ||
function isAutoAction(action) { | ||
return action.type !== trackActions_1.ActionType.CUSTOM; | ||
return action.type !== rawRumEvent_types_1.ActionType.CUSTOM; | ||
} | ||
//# sourceMappingURL=actionCollection.js.map |
import { Context } from '@datadog/browser-core'; | ||
import { LifeCycle } from '../../lifeCycle'; | ||
export declare enum ActionType { | ||
CLICK = "click", | ||
CUSTOM = "custom" | ||
} | ||
import { ActionType } from '../../../rawRumEvent.types'; | ||
declare type AutoActionType = ActionType.CLICK; | ||
@@ -8,0 +5,0 @@ export interface ActionCounts { |
@@ -7,8 +7,4 @@ "use strict"; | ||
var trackPageActivities_1 = require("../../trackPageActivities"); | ||
var rawRumEvent_types_1 = require("../../../rawRumEvent.types"); | ||
var getActionNameFromElement_1 = require("./getActionNameFromElement"); | ||
var ActionType; | ||
(function (ActionType) { | ||
ActionType["CLICK"] = "click"; | ||
ActionType["CUSTOM"] = "custom"; | ||
})(ActionType = exports.ActionType || (exports.ActionType = {})); | ||
function trackActions(lifeCycle) { | ||
@@ -28,3 +24,3 @@ var action = startActionManagement(lifeCycle); | ||
} | ||
action.create(ActionType.CLICK, name); | ||
action.create(rawRumEvent_types_1.ActionType.CLICK, name); | ||
}, { capture: true }).stop; | ||
@@ -31,0 +27,0 @@ return { |
import { Configuration, ResourceType } from '@datadog/browser-core'; | ||
import { PerformanceResourceDetailsElement } from '../../../rawRumEvent.types'; | ||
import { RumPerformanceResourceTiming } from '../../../browser/performanceCollection'; | ||
export interface PerformanceResourceDetailsElement { | ||
duration: number; | ||
start: number; | ||
} | ||
export interface PerformanceResourceDetails { | ||
@@ -8,0 +5,0 @@ redirect?: PerformanceResourceDetailsElement; |
import { LifeCycle } from '../../lifeCycle'; | ||
import { EventCounts } from '../../trackEventCounts'; | ||
import { ViewLoadingType, ViewCustomTimings } from '../../../rawRumEvent.types'; | ||
import { Timings } from './trackTimings'; | ||
@@ -25,9 +26,2 @@ export interface View { | ||
} | ||
export declare enum ViewLoadingType { | ||
INITIAL_LOAD = "initial_load", | ||
ROUTE_CHANGE = "route_change" | ||
} | ||
export interface ViewCustomTimings { | ||
[key: string]: number; | ||
} | ||
export declare const THROTTLE_VIEW_UPDATE_PERIOD = 3000; | ||
@@ -34,0 +28,0 @@ export declare const SESSION_KEEP_ALIVE_INTERVAL: number; |
@@ -9,8 +9,4 @@ "use strict"; | ||
var trackPageActivities_1 = require("../../trackPageActivities"); | ||
var rawRumEvent_types_1 = require("../../../rawRumEvent.types"); | ||
var trackTimings_1 = require("./trackTimings"); | ||
var ViewLoadingType; | ||
(function (ViewLoadingType) { | ||
ViewLoadingType["INITIAL_LOAD"] = "initial_load"; | ||
ViewLoadingType["ROUTE_CHANGE"] = "route_change"; | ||
})(ViewLoadingType = exports.ViewLoadingType || (exports.ViewLoadingType = {})); | ||
exports.THROTTLE_VIEW_UPDATE_PERIOD = 3000; | ||
@@ -20,3 +16,3 @@ exports.SESSION_KEEP_ALIVE_INTERVAL = 5 * browser_core_1.ONE_MINUTE; | ||
var startOrigin = 0; | ||
var initialView = newView(lifeCycle, location, ViewLoadingType.INITIAL_LOAD, document.referrer, startOrigin); | ||
var initialView = newView(lifeCycle, location, rawRumEvent_types_1.ViewLoadingType.INITIAL_LOAD, document.referrer, startOrigin); | ||
var currentView = initialView; | ||
@@ -34,3 +30,3 @@ var stopTimingsTracking = trackTimings_1.trackTimings(lifeCycle, function (timings) { | ||
currentView.triggerUpdate(); | ||
currentView = newView(lifeCycle, location, ViewLoadingType.ROUTE_CHANGE, currentView.url); | ||
currentView = newView(lifeCycle, location, rawRumEvent_types_1.ViewLoadingType.ROUTE_CHANGE, currentView.url); | ||
} | ||
@@ -46,3 +42,3 @@ else { | ||
currentView.end(); | ||
currentView = newView(lifeCycle, location, ViewLoadingType.ROUTE_CHANGE, currentView.url); | ||
currentView = newView(lifeCycle, location, rawRumEvent_types_1.ViewLoadingType.ROUTE_CHANGE, currentView.url); | ||
}); | ||
@@ -192,3 +188,3 @@ // End the current view on page unload | ||
function trackLoadingTime(loadType, callback) { | ||
var isWaitingForLoadEvent = loadType === ViewLoadingType.INITIAL_LOAD; | ||
var isWaitingForLoadEvent = loadType === rawRumEvent_types_1.ViewLoadingType.INITIAL_LOAD; | ||
var isWaitingForActivityLoadingTime = true; | ||
@@ -195,0 +191,0 @@ var loadingTimeCandidates = []; |
import { Context, ErrorSource, ResourceType } from '@datadog/browser-core'; | ||
import { ActionType } from './domain/rumEventsCollection/action/trackActions'; | ||
import { PerformanceResourceDetailsElement } from './domain/rumEventsCollection/resource/resourceUtils'; | ||
import { ViewCustomTimings, ViewLoadingType } from './domain/rumEventsCollection/view/trackViews'; | ||
export declare enum RumEventType { | ||
@@ -35,2 +32,6 @@ ACTION = "action", | ||
} | ||
export interface PerformanceResourceDetailsElement { | ||
duration: number; | ||
start: number; | ||
} | ||
export interface RawRumErrorEvent { | ||
@@ -78,2 +79,9 @@ date: number; | ||
} | ||
export declare enum ViewLoadingType { | ||
INITIAL_LOAD = "initial_load", | ||
ROUTE_CHANGE = "route_change" | ||
} | ||
export interface ViewCustomTimings { | ||
[key: string]: number; | ||
} | ||
interface Count { | ||
@@ -104,2 +112,6 @@ count: number; | ||
} | ||
export declare enum ActionType { | ||
CLICK = "click", | ||
CUSTOM = "custom" | ||
} | ||
export declare type RawRumEvent = RawRumErrorEvent | RawRumResourceEvent | RawRumViewEvent | RawRumLongTaskEvent | RawRumActionEvent; | ||
@@ -106,0 +118,0 @@ export interface RumContext { |
@@ -11,2 +11,12 @@ "use strict"; | ||
})(RumEventType = exports.RumEventType || (exports.RumEventType = {})); | ||
var ViewLoadingType; | ||
(function (ViewLoadingType) { | ||
ViewLoadingType["INITIAL_LOAD"] = "initial_load"; | ||
ViewLoadingType["ROUTE_CHANGE"] = "route_change"; | ||
})(ViewLoadingType = exports.ViewLoadingType || (exports.ViewLoadingType = {})); | ||
var ActionType; | ||
(function (ActionType) { | ||
ActionType["CLICK"] = "click"; | ||
ActionType["CUSTOM"] = "custom"; | ||
})(ActionType = exports.ActionType || (exports.ActionType = {})); | ||
//# sourceMappingURL=rawRumEvent.types.js.map |
export var buildEnv = { | ||
buildMode: 'release', | ||
datacenter: 'us', | ||
sdkVersion: '2.5.2', | ||
sdkVersion: '2.5.3', | ||
}; | ||
//# sourceMappingURL=buildEnv.js.map |
import { BoundedBuffer, buildCookieOptions, checkCookiesAuthorized, checkIsNotLocalFile, createContextManager, deepClone, ErrorSource, isPercentage, makePublicApi, monitor, } from '@datadog/browser-core'; | ||
import { ActionType } from '../domain/rumEventsCollection/action/trackActions'; | ||
import { ActionType } from '../rawRumEvent.types'; | ||
export function makeRumPublicApi(startRumImpl) { | ||
@@ -4,0 +4,0 @@ var isAlreadyInitialized = false; |
import { __assign } from "tslib"; | ||
import { combine, getTimestamp, msToNs } from '@datadog/browser-core'; | ||
import { RumEventType } from '../../../rawRumEvent.types'; | ||
import { RumEventType, ActionType } from '../../../rawRumEvent.types'; | ||
import { LifeCycleEventType } from '../../lifeCycle'; | ||
import { ActionType, trackActions } from './trackActions'; | ||
import { trackActions } from './trackActions'; | ||
export function startActionCollection(lifeCycle, configuration) { | ||
@@ -7,0 +7,0 @@ lifeCycle.subscribe(LifeCycleEventType.AUTO_ACTION_COMPLETED, function (action) { |
import { Context } from '@datadog/browser-core'; | ||
import { LifeCycle } from '../../lifeCycle'; | ||
export declare enum ActionType { | ||
CLICK = "click", | ||
CUSTOM = "custom" | ||
} | ||
import { ActionType } from '../../../rawRumEvent.types'; | ||
declare type AutoActionType = ActionType.CLICK; | ||
@@ -8,0 +5,0 @@ export interface ActionCounts { |
@@ -5,8 +5,4 @@ import { addEventListener, DOM_EVENT, generateUUID } from '@datadog/browser-core'; | ||
import { waitIdlePageActivity } from '../../trackPageActivities'; | ||
import { ActionType } from '../../../rawRumEvent.types'; | ||
import { getActionNameFromElement } from './getActionNameFromElement'; | ||
export var ActionType; | ||
(function (ActionType) { | ||
ActionType["CLICK"] = "click"; | ||
ActionType["CUSTOM"] = "custom"; | ||
})(ActionType || (ActionType = {})); | ||
export function trackActions(lifeCycle) { | ||
@@ -13,0 +9,0 @@ var action = startActionManagement(lifeCycle); |
import { Configuration, ResourceType } from '@datadog/browser-core'; | ||
import { PerformanceResourceDetailsElement } from '../../../rawRumEvent.types'; | ||
import { RumPerformanceResourceTiming } from '../../../browser/performanceCollection'; | ||
export interface PerformanceResourceDetailsElement { | ||
duration: number; | ||
start: number; | ||
} | ||
export interface PerformanceResourceDetails { | ||
@@ -8,0 +5,0 @@ redirect?: PerformanceResourceDetailsElement; |
import { LifeCycle } from '../../lifeCycle'; | ||
import { EventCounts } from '../../trackEventCounts'; | ||
import { ViewLoadingType, ViewCustomTimings } from '../../../rawRumEvent.types'; | ||
import { Timings } from './trackTimings'; | ||
@@ -25,9 +26,2 @@ export interface View { | ||
} | ||
export declare enum ViewLoadingType { | ||
INITIAL_LOAD = "initial_load", | ||
ROUTE_CHANGE = "route_change" | ||
} | ||
export interface ViewCustomTimings { | ||
[key: string]: number; | ||
} | ||
export declare const THROTTLE_VIEW_UPDATE_PERIOD = 3000; | ||
@@ -34,0 +28,0 @@ export declare const SESSION_KEEP_ALIVE_INTERVAL: number; |
@@ -7,8 +7,4 @@ import { __assign } from "tslib"; | ||
import { waitIdlePageActivity } from '../../trackPageActivities'; | ||
import { ViewLoadingType } from '../../../rawRumEvent.types'; | ||
import { trackTimings } from './trackTimings'; | ||
export var ViewLoadingType; | ||
(function (ViewLoadingType) { | ||
ViewLoadingType["INITIAL_LOAD"] = "initial_load"; | ||
ViewLoadingType["ROUTE_CHANGE"] = "route_change"; | ||
})(ViewLoadingType || (ViewLoadingType = {})); | ||
export var THROTTLE_VIEW_UPDATE_PERIOD = 3000; | ||
@@ -15,0 +11,0 @@ export var SESSION_KEEP_ALIVE_INTERVAL = 5 * ONE_MINUTE; |
import { Context, ErrorSource, ResourceType } from '@datadog/browser-core'; | ||
import { ActionType } from './domain/rumEventsCollection/action/trackActions'; | ||
import { PerformanceResourceDetailsElement } from './domain/rumEventsCollection/resource/resourceUtils'; | ||
import { ViewCustomTimings, ViewLoadingType } from './domain/rumEventsCollection/view/trackViews'; | ||
export declare enum RumEventType { | ||
@@ -35,2 +32,6 @@ ACTION = "action", | ||
} | ||
export interface PerformanceResourceDetailsElement { | ||
duration: number; | ||
start: number; | ||
} | ||
export interface RawRumErrorEvent { | ||
@@ -78,2 +79,9 @@ date: number; | ||
} | ||
export declare enum ViewLoadingType { | ||
INITIAL_LOAD = "initial_load", | ||
ROUTE_CHANGE = "route_change" | ||
} | ||
export interface ViewCustomTimings { | ||
[key: string]: number; | ||
} | ||
interface Count { | ||
@@ -104,2 +112,6 @@ count: number; | ||
} | ||
export declare enum ActionType { | ||
CLICK = "click", | ||
CUSTOM = "custom" | ||
} | ||
export declare type RawRumEvent = RawRumErrorEvent | RawRumResourceEvent | RawRumViewEvent | RawRumLongTaskEvent | RawRumActionEvent; | ||
@@ -106,0 +118,0 @@ export interface RumContext { |
@@ -9,2 +9,12 @@ export var RumEventType; | ||
})(RumEventType || (RumEventType = {})); | ||
export var ViewLoadingType; | ||
(function (ViewLoadingType) { | ||
ViewLoadingType["INITIAL_LOAD"] = "initial_load"; | ||
ViewLoadingType["ROUTE_CHANGE"] = "route_change"; | ||
})(ViewLoadingType || (ViewLoadingType = {})); | ||
export var ActionType; | ||
(function (ActionType) { | ||
ActionType["CLICK"] = "click"; | ||
ActionType["CUSTOM"] = "custom"; | ||
})(ActionType || (ActionType = {})); | ||
//# sourceMappingURL=rawRumEvent.types.js.map |
{ | ||
"name": "@datadog/browser-rum-core", | ||
"version": "2.5.2", | ||
"version": "2.5.3", | ||
"license": "Apache-2.0", | ||
@@ -15,3 +15,3 @@ "main": "cjs/index.js", | ||
"dependencies": { | ||
"@datadog/browser-core": "2.5.2", | ||
"@datadog/browser-core": "2.5.3", | ||
"tslib": "^1.10.0" | ||
@@ -27,3 +27,3 @@ }, | ||
}, | ||
"gitHead": "d178a681b56b5d502d9540cf2ff20d0ebc5aec53" | ||
"gitHead": "b735e1963efd863df83ab1a7dc218006457abda3" | ||
} |
import { ErrorSource, ONE_SECOND } from '@datadog/browser-core' | ||
import { setup, TestSetupBuilder } from '../../test/specHelper' | ||
import { ActionType } from '../domain/rumEventsCollection/action/trackActions' | ||
import { ActionType } from '../rawRumEvent.types' | ||
import { makeRumPublicApi, RumPublicApi, RumUserConfiguration, StartRum } from './rumPublicApi' | ||
@@ -5,0 +5,0 @@ |
@@ -15,5 +15,5 @@ import { | ||
} from '@datadog/browser-core' | ||
import { ActionType, CustomAction } from '../domain/rumEventsCollection/action/trackActions' | ||
import { CustomAction } from '../domain/rumEventsCollection/action/trackActions' | ||
import { ProvidedError, ProvidedSource } from '../domain/rumEventsCollection/error/errorCollection' | ||
import { CommonContext, User } from '../rawRumEvent.types' | ||
import { CommonContext, User, ActionType } from '../rawRumEvent.types' | ||
import { RumEvent } from '../rumEvent.types' | ||
@@ -20,0 +20,0 @@ import { startRum } from './rum' |
import { setup, TestSetupBuilder } from '../../../../test/specHelper' | ||
import { RumEventType } from '../../../rawRumEvent.types' | ||
import { RumEventType, ActionType } from '../../../rawRumEvent.types' | ||
import { LifeCycleEventType } from '../../lifeCycle' | ||
import { startActionCollection } from './actionCollection' | ||
import { ActionType } from './trackActions' | ||
@@ -7,0 +6,0 @@ describe('actionCollection', () => { |
import { combine, Configuration, getTimestamp, msToNs } from '@datadog/browser-core' | ||
import { CommonContext, RumEventType } from '../../../rawRumEvent.types' | ||
import { CommonContext, RumEventType, ActionType } from '../../../rawRumEvent.types' | ||
import { LifeCycle, LifeCycleEventType } from '../../lifeCycle' | ||
import { ActionType, AutoAction, CustomAction, trackActions } from './trackActions' | ||
import { AutoAction, CustomAction, trackActions } from './trackActions' | ||
@@ -6,0 +6,0 @@ export function startActionCollection(lifeCycle: LifeCycle, configuration: Configuration) { |
import { DOM_EVENT } from '@datadog/browser-core' | ||
import { createRawRumEvent } from '../../../../test/fixtures' | ||
import { setup, TestSetupBuilder } from '../../../../test/specHelper' | ||
import { RumEventType } from '../../../rawRumEvent.types' | ||
import { RumEventType, ActionType } from '../../../rawRumEvent.types' | ||
import { LifeCycle, LifeCycleEventType } from '../../lifeCycle' | ||
import { PAGE_ACTIVITY_MAX_DURATION, PAGE_ACTIVITY_VALIDATION_DELAY } from '../../trackPageActivities' | ||
import { ActionType, AutoAction, trackActions } from './trackActions' | ||
import { AutoAction, trackActions } from './trackActions' | ||
@@ -9,0 +9,0 @@ // Used to wait some time after the creation of a action |
@@ -5,9 +5,5 @@ import { addEventListener, Context, DOM_EVENT, generateUUID } from '@datadog/browser-core' | ||
import { waitIdlePageActivity } from '../../trackPageActivities' | ||
import { ActionType } from '../../../rawRumEvent.types' | ||
import { getActionNameFromElement } from './getActionNameFromElement' | ||
export enum ActionType { | ||
CLICK = 'click', | ||
CUSTOM = 'custom', | ||
} | ||
type AutoActionType = ActionType.CLICK | ||
@@ -14,0 +10,0 @@ |
@@ -11,9 +11,5 @@ import { | ||
import { PerformanceResourceDetailsElement } from '../../../rawRumEvent.types' | ||
import { RumPerformanceResourceTiming } from '../../../browser/performanceCollection' | ||
export interface PerformanceResourceDetailsElement { | ||
duration: number | ||
start: number | ||
} | ||
export interface PerformanceResourceDetails { | ||
@@ -20,0 +16,0 @@ redirect?: PerformanceResourceDetailsElement |
@@ -8,3 +8,3 @@ import { createRawRumEvent } from '../../../../test/fixtures' | ||
} from '../../../browser/performanceCollection' | ||
import { RumEventType } from '../../../rawRumEvent.types' | ||
import { RumEventType, ViewLoadingType } from '../../../rawRumEvent.types' | ||
import { LifeCycleEventType } from '../../lifeCycle' | ||
@@ -16,3 +16,3 @@ import { | ||
} from '../../trackPageActivities' | ||
import { THROTTLE_VIEW_UPDATE_PERIOD, trackViews, View, ViewCreatedEvent, ViewLoadingType } from './trackViews' | ||
import { THROTTLE_VIEW_UPDATE_PERIOD, trackViews, View, ViewCreatedEvent } from './trackViews' | ||
@@ -19,0 +19,0 @@ const AFTER_PAGE_ACTIVITY_MAX_DURATION = PAGE_ACTIVITY_MAX_DURATION * 1.1 |
@@ -7,2 +7,3 @@ import { addEventListener, DOM_EVENT, generateUUID, monitor, noop, ONE_MINUTE, throttle } from '@datadog/browser-core' | ||
import { waitIdlePageActivity } from '../../trackPageActivities' | ||
import { ViewLoadingType, ViewCustomTimings } from '../../../rawRumEvent.types' | ||
import { Timings, trackTimings } from './trackTimings' | ||
@@ -33,11 +34,2 @@ | ||
export enum ViewLoadingType { | ||
INITIAL_LOAD = 'initial_load', | ||
ROUTE_CHANGE = 'route_change', | ||
} | ||
export interface ViewCustomTimings { | ||
[key: string]: number | ||
} | ||
export const THROTTLE_VIEW_UPDATE_PERIOD = 3000 | ||
@@ -44,0 +36,0 @@ export const SESSION_KEEP_ALIVE_INTERVAL = 5 * ONE_MINUTE |
import { setup, TestSetupBuilder } from '../../../../test/specHelper' | ||
import { RumEventType } from '../../../rawRumEvent.types' | ||
import { RumEventType, ViewLoadingType } from '../../../rawRumEvent.types' | ||
import { LifeCycleEventType } from '../../lifeCycle' | ||
import { ViewLoadingType } from './trackViews' | ||
import { startViewCollection } from './viewCollection' | ||
@@ -6,0 +5,0 @@ |
import { Context, ErrorSource, ResourceType } from '@datadog/browser-core' | ||
import { ActionType } from './domain/rumEventsCollection/action/trackActions' | ||
import { PerformanceResourceDetailsElement } from './domain/rumEventsCollection/resource/resourceUtils' | ||
import { ViewCustomTimings, ViewLoadingType } from './domain/rumEventsCollection/view/trackViews' | ||
@@ -38,2 +35,7 @@ export enum RumEventType { | ||
export interface PerformanceResourceDetailsElement { | ||
duration: number | ||
start: number | ||
} | ||
export interface RawRumErrorEvent { | ||
@@ -83,2 +85,11 @@ date: number | ||
export enum ViewLoadingType { | ||
INITIAL_LOAD = 'initial_load', | ||
ROUTE_CHANGE = 'route_change', | ||
} | ||
export interface ViewCustomTimings { | ||
[key: string]: number | ||
} | ||
interface Count { | ||
@@ -112,2 +123,7 @@ count: number | ||
export enum ActionType { | ||
CLICK = 'click', | ||
CUSTOM = 'custom', | ||
} | ||
export type RawRumEvent = | ||
@@ -114,0 +130,0 @@ | RawRumErrorEvent |
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
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
735949
15555
+ Added@datadog/browser-core@2.5.3(transitive)
- Removed@datadog/browser-core@2.5.2(transitive)
Updated@datadog/browser-core@2.5.3