Skip to content

Commit

Permalink
♻️ rename boot/[package].ts to boot/start[package].ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaudan committed Jun 3, 2021
1 parent 8f902fd commit 0cefb10
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/logs/src/boot/logs.entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
display,
} from '@datadog/browser-core'
import { HandlerType, Logger, LogsMessage, StatusType } from '../domain/logger'
import { startLogs, LogsUserConfiguration } from './logs'
import { startLogs, LogsUserConfiguration } from './startLogs'

export interface LoggerConfiguration {
level?: StatusType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Clock, mockClock } from '../../../core/test/specHelper'

import { Logger, LogsMessage, StatusType } from '../domain/logger'
import { LogsEvent } from '../logsEvent.types'
import { buildAssemble, doStartLogs } from './logs'
import { buildAssemble, doStartLogs } from './startLogs'

interface SentMessage extends LogsMessage {
logger?: { name: string }
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/logs/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { Logger, LogsMessage, StatusType, HandlerType } from './domain/logger'
export { LoggerConfiguration, LogsPublicApi as LogsGlobal, datadogLogs } from './boot/logs.entry'
export { LogsUserConfiguration } from './boot/logs'
export { LogsUserConfiguration } from './boot/startLogs'
export { LogsEvent } from './logsEvent.types'
2 changes: 1 addition & 1 deletion packages/rum-core/src/boot/rumPublicApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { ProvidedSource } from '../domain/rumEventsCollection/error/errorCollect
import { CommonContext, User, ActionType } from '../rawRumEvent.types'
import { RumEvent } from '../rumEvent.types'
import { buildEnv } from './buildEnv'
import { startRum } from './rum'
import { startRum } from './startRum'

export interface RumUserConfiguration extends UserConfiguration {
applicationId: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { LifeCycle, LifeCycleEventType } from '../domain/lifeCycle'
import { SESSION_KEEP_ALIVE_INTERVAL, THROTTLE_VIEW_UPDATE_PERIOD } from '../domain/rumEventsCollection/view/trackViews'
import { startViewCollection } from '../domain/rumEventsCollection/view/viewCollection'
import { RumEvent } from '../rumEvent.types'
import { startRumEventCollection } from './rum'
import { startRumEventCollection } from './startRum'

function collectServerEvents(lifeCycle: LifeCycle) {
const serverRumEvents: RumEvent[] = []
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/rum-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export {
RumLongTaskEvent,
} from './rumEvent.types'
export { ViewContext, CommonContext } from './rawRumEvent.types'
export { startRum } from './boot/rum'
export { startRum } from './boot/startRum'
export { LifeCycle, LifeCycleEventType } from './domain/lifeCycle'
export { ParentContexts } from './domain/parentContexts'
export { RumSession } from './domain/rumSession'
Expand Down
2 changes: 1 addition & 1 deletion packages/rum-recorder/src/boot/recorder.entry.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineGlobal, getGlobalObject } from '@datadog/browser-core'
import { startRum } from '@datadog/browser-rum-core'

import { startRecording } from './recorder'
import { startRecording } from './startRecording'
import { RumRecorderPublicApi, makeRumRecorderPublicApi } from './rumRecorderPublicApi'

export const datadogRum = makeRumRecorderPublicApi(startRum, startRecording)
Expand Down
2 changes: 1 addition & 1 deletion packages/rum-recorder/src/boot/rumRecorderPublicApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
CommonContext,
} from '@datadog/browser-rum-core'

import { startRecording } from './recorder'
import { startRecording } from './startRecording'

export type StartRecording = typeof startRecording
export type RumRecorderPublicApi = ReturnType<typeof makeRumRecorderPublicApi>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { collectAsyncCalls } from '../../test/utils'
import { setMaxSegmentSize } from '../domain/segmentCollection/segmentCollection'

import { Segment, RecordType } from '../types'
import { startRecording } from './recorder'
import { startRecording } from './startRecording'

describe('startRecording', () => {
let setupBuilder: TestSetupBuilder
Expand Down
File renamed without changes.

0 comments on commit 0cefb10

Please sign in to comment.