Skip to content

Commit

Permalink
👷 Update dependency prettier to v3 (#2326)
Browse files Browse the repository at this point in the history
* 👷 Update dependency prettier to v3
* Update prettierignore for .yarn and dist folders
* Run format to update to new release of Prettier

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Yannick Adam <yannick.adam@datadoghq.com>
  • Loading branch information
renovate[bot] and yannickadam authored Jul 12, 2023
1 parent 8abe64c commit 1297676
Show file tree
Hide file tree
Showing 13 changed files with 248 additions and 298 deletions.
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ cjs
esm
coverage
rum-events-format
.yarn
developer-extension/dist
test/app/dist
2 changes: 1 addition & 1 deletion developer-extension/src/panel/hooks/useEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function listenEventsFromRequests(callback: (events: StoredEvent[]) => void) {

const decodedBody = request.request.postData.text
const rawEvents = decodedBody.split('\n')
const events = rawEvents.map((rawEvent) => ({ ...JSON.parse(rawEvent), id: generateUUID() } as StoredEvent))
const events = rawEvents.map((rawEvent) => ({ ...JSON.parse(rawEvent), id: generateUUID() }) as StoredEvent)

callback(events)
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"minimatch": "9.0.3",
"node-fetch": "3.3.1",
"npm-run-all": "4.1.5",
"prettier": "2.8.8",
"prettier": "3.0.0",
"terser-webpack-plugin": "5.3.9",
"ts-loader": "9.4.4",
"ts-node": "10.9.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const cookieOptions: CookieOptions = {}
})
expandSessionState(initialSession)
sessionStoreStrategy.persistSession(initialSession)
processSpy.and.callFake((session) => ({ ...session, processed: 'processed' } as SessionState))
processSpy.and.callFake((session) => ({ ...session, processed: 'processed' }) as SessionState)

processSessionStoreOperations(
{
Expand Down
5 changes: 4 additions & 1 deletion packages/core/src/tools/valueHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export class ValueHistory<Value> {
private entries: Array<ValueHistoryEntry<Value>> = []
private clearOldValuesInterval: TimeoutId

constructor(private expireDelay: number, private maxEntries?: number) {
constructor(
private expireDelay: number,
private maxEntries?: number
) {
this.clearOldValuesInterval = setInterval(() => this.clearOldValues(), CLEAR_OLD_VALUES_INTERVAL)
}

Expand Down
2 changes: 1 addition & 1 deletion sandbox/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/lib/framework/pageSetups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export function npmSetup(options: SetupOptions, servers: Servers) {

export function basePage({ header, body }: { header?: string; body?: string }) {
return html`
<!DOCTYPE html>
<!doctype html>
<html>
<head>
${header || ''}
Expand Down
20 changes: 9 additions & 11 deletions test/e2e/scenario/eventBridge.scenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ describe('bridge present', () => {
createTest('send action')
.withRum({ trackUserInteractions: true })
.withEventBridge()
.withBody(
html`
<button>click me</button>
<script>
const button = document.querySelector('button')
button.addEventListener('click', () => {
button.setAttribute('data-clicked', 'true')
})
</script>
`
)
.withBody(html`
<button>click me</button>
<script>
const button = document.querySelector('button')
button.addEventListener('click', () => {
button.setAttribute('data-clicked', 'true')
})
</script>
`)
.run(async ({ serverEvents, bridgeEvents }) => {
const button = await $('button')
await button.click()
Expand Down
Loading

0 comments on commit 1297676

Please sign in to comment.