Skip to content

Commit

Permalink
♻️ rename observer to observers
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaudan committed Aug 3, 2022
1 parent 941d59e commit 41ebae9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/rum/src/domain/record/mutationObserver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { AttributeMutation, Attributes } from '../../types'
import { NodeType } from '../../types'
import { serializeDocument } from './serialize'
import { sortAddedAndMovedNodes, startMutationObserver, MutationController } from './mutationObserver'
import type { MutationCallBack } from './observer'
import type { MutationCallBack } from './observers'

describe('startMutationCollection', () => {
let sandbox: HTMLElement
Expand Down
2 changes: 1 addition & 1 deletion packages/rum/src/domain/record/mutationObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import { serializeNodeWithId, serializeAttribute } from './serialize'
import { forEach } from './utils'
import { createMutationBatch } from './mutationBatch'
import type { MutationCallBack } from './observer'
import type { MutationCallBack } from './observers'

type WithSerializedTarget<T> = T & { target: NodeWithSerializedNode }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import type { RawRumEventCollectedData } from 'packages/rum-core/src/domain/life
import { createNewEvent } from '../../../../core/test/specHelper'
import { NodePrivacyLevel, PRIVACY_ATTR_NAME, PRIVACY_ATTR_VALUE_MASK_USER_INPUT } from '../../constants'
import { RecordType } from '../../types'
import type { FrustrationCallback, InputCallback } from './observer'
import { initFrustrationObserver, initInputObserver } from './observer'
import type { FrustrationCallback, InputCallback } from './observers'
import { initFrustrationObserver, initInputObserver } from './observers'
import { serializeDocument } from './serialize'

describe('initInputObserver', () => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/rum/src/domain/record/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type {
} from '../../types'
import { RecordType, IncrementalSource } from '../../types'
import { serializeDocument } from './serialize'
import { initObservers } from './observer'
import { initObservers } from './observers'

import { MutationController } from './mutationObserver'
import { getVisualViewport, getScrollX, getScrollY } from './viewports'
Expand Down

0 comments on commit 41ebae9

Please sign in to comment.