Skip to content

Commit

Permalink
updaeted biomejs
Browse files Browse the repository at this point in the history
  • Loading branch information
jgentes committed Oct 1, 2023
1 parent 1444e65 commit 81a1a09
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 36 deletions.
4 changes: 2 additions & 2 deletions app/api/db/appState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ const { useStore: modalState, setStore: setModalState } = createStore<
bodyText: string
confirmColor: ButtonProps['color']
confirmText: string
onConfirm: Function
onCancel: Function
onConfirm: () => void
onCancel: () => void
}>
>({
openState: false
Expand Down
10 changes: 7 additions & 3 deletions app/api/mp3Converter.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
type SuccessCallback = (mp3Blob: Blob) => Promise<void>
type ProgressCallback = (progress: number) => void
type ErrorCallback = (error: string) => void

const convertWav = (
blob: Blob,
onSuccess: Function,
onProgress: Function,
onError: Function
onSuccess: SuccessCallback,
onProgress: ProgressCallback,
onError: ErrorCallback
) => {
const mp3Worker = new Worker('/workers/mp3encoder.js')

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"web-audio-beat-detector": "~8.1.37"
},
"devDependencies": {
"@biomejs/biome": "1.1.2",
"@biomejs/biome": "1.2.2",
"@cloudflare/workers-types": "^4.20230821.0",
"@iconify-icon/react": "^1.0.7",
"@remix-run/dev": "^2.0.0",
Expand Down
60 changes: 30 additions & 30 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -454,16 +454,16 @@ __metadata:
languageName: node
linkType: hard

"@biomejs/biome@npm:1.1.2":
version: 1.1.2
resolution: "@biomejs/biome@npm:1.1.2"
dependencies:
"@biomejs/cli-darwin-arm64": 1.1.2
"@biomejs/cli-darwin-x64": 1.1.2
"@biomejs/cli-linux-arm64": 1.1.2
"@biomejs/cli-linux-x64": 1.1.2
"@biomejs/cli-win32-arm64": 1.1.2
"@biomejs/cli-win32-x64": 1.1.2
"@biomejs/biome@npm:1.2.2":
version: 1.2.2
resolution: "@biomejs/biome@npm:1.2.2"
dependencies:
"@biomejs/cli-darwin-arm64": 1.2.2
"@biomejs/cli-darwin-x64": 1.2.2
"@biomejs/cli-linux-arm64": 1.2.2
"@biomejs/cli-linux-x64": 1.2.2
"@biomejs/cli-win32-arm64": 1.2.2
"@biomejs/cli-win32-x64": 1.2.2
dependenciesMeta:
"@biomejs/cli-darwin-arm64":
optional: true
Expand All @@ -479,48 +479,48 @@ __metadata:
optional: true
bin:
biome: bin/biome
checksum: d9c38a3f4b2962330e6f9bb46ea161480947e6aa8545e3bdde157182b4b7901f4600209e69a58489ae76eb279a4152a78f4507d6045a0f9ec7acb828c875175c
checksum: 36dfcc756c53e22a5f6b5819ebb261b02acaa4df2832ef00e231bf73d4707121d0acdefa81f12523beb09a7b363676ca8fe719873932794d2e92130c3a41908c
languageName: node
linkType: hard

"@biomejs/cli-darwin-arm64@npm:1.1.2":
version: 1.1.2
resolution: "@biomejs/cli-darwin-arm64@npm:1.1.2"
"@biomejs/cli-darwin-arm64@npm:1.2.2":
version: 1.2.2
resolution: "@biomejs/cli-darwin-arm64@npm:1.2.2"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@biomejs/cli-darwin-x64@npm:1.1.2":
version: 1.1.2
resolution: "@biomejs/cli-darwin-x64@npm:1.1.2"
"@biomejs/cli-darwin-x64@npm:1.2.2":
version: 1.2.2
resolution: "@biomejs/cli-darwin-x64@npm:1.2.2"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@biomejs/cli-linux-arm64@npm:1.1.2":
version: 1.1.2
resolution: "@biomejs/cli-linux-arm64@npm:1.1.2"
"@biomejs/cli-linux-arm64@npm:1.2.2":
version: 1.2.2
resolution: "@biomejs/cli-linux-arm64@npm:1.2.2"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard

"@biomejs/cli-linux-x64@npm:1.1.2":
version: 1.1.2
resolution: "@biomejs/cli-linux-x64@npm:1.1.2"
"@biomejs/cli-linux-x64@npm:1.2.2":
version: 1.2.2
resolution: "@biomejs/cli-linux-x64@npm:1.2.2"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard

"@biomejs/cli-win32-arm64@npm:1.1.2":
version: 1.1.2
resolution: "@biomejs/cli-win32-arm64@npm:1.1.2"
"@biomejs/cli-win32-arm64@npm:1.2.2":
version: 1.2.2
resolution: "@biomejs/cli-win32-arm64@npm:1.2.2"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@biomejs/cli-win32-x64@npm:1.1.2":
version: 1.1.2
resolution: "@biomejs/cli-win32-x64@npm:1.1.2"
"@biomejs/cli-win32-x64@npm:1.2.2":
version: 1.2.2
resolution: "@biomejs/cli-win32-x64@npm:1.2.2"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
Expand Down Expand Up @@ -5399,7 +5399,7 @@ isbot@latest:
version: 0.0.0-use.local
resolution: "mixpoint@workspace:."
dependencies:
"@biomejs/biome": 1.1.2
"@biomejs/biome": 1.2.2
"@cloudflare/workers-types": ^4.20230821.0
"@emotion/react": ~11.10.6
"@emotion/styled": ~11.10.6
Expand Down

0 comments on commit 81a1a09

Please sign in to comment.