Skip to content

Commit

Permalink
feat: add event bus
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelodelain committed Mar 15, 2024
1 parent c1b8e80 commit 8e82d9d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
},
"dependencies": {
"@roadiz/types": "^0.1.0",
"tiny-emitter": "^2.1.0",
"ufo": "^1.4.0"
},
"engines": {
Expand Down
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

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

5 changes: 5 additions & 0 deletions utils/event-bus.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { TinyEmitter } from 'tiny-emitter'

const emitter = new TinyEmitter()

export default emitter

0 comments on commit 8e82d9d

Please sign in to comment.