Skip to content

Commit

Permalink
chore(deps): apply updates
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
jerome-benoit committed Dec 23, 2024
1 parent c4ddb46 commit 0400168
Show file tree
Hide file tree
Showing 5 changed files with 252 additions and 167 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@size-limit/preset-small-lib": "^11.1.6",
"@size-limit/time": "^11.1.6",
"@types/node": "^22.10.2",
"bumpp": "^9.9.1",
"bumpp": "^9.9.2",
"changelogithub": "^0.13.11",
"clean-publish": "^5.1.0",
"eslint": "^9.17.0",
Expand Down
92 changes: 46 additions & 46 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions src/bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ import {
} from './constants'
import { createBenchEvent } from './event'
import { Task } from './task'
import { invariant, type JSRuntime, mToNs, now, runtime, runtimeVersion } from './utils'
import {
invariant,
type JSRuntime,
mToNs,
now,
runtime,
runtimeVersion,
} from './utils'

/**
* The Bench class keeps track of the benchmark tasks and controls them.
Expand Down Expand Up @@ -208,7 +215,10 @@ export class Bench extends EventTarget {
}

runSync (): Task[] {
invariant(this.concurrency === null, 'Cannot use `concurrency` option when using `runSync`')
invariant(
this.concurrency === null,
'Cannot use `concurrency` option when using `runSync`'
)
if (this.opts.warmup) {
this.warmupTasksSync()
}
Expand Down
Loading

0 comments on commit 0400168

Please sign in to comment.