Skip to content

Commit

Permalink
Fix regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
islathehut committed Jan 7, 2025
1 parent a61b9a4 commit da536f4
Show file tree
Hide file tree
Showing 20 changed files with 3 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const Completed = Template.bind({})
export const Malicious = Template.bind({})

const mid = '32'
const cid = '12D3KooWSYQf8zzr5rYnUdLxYyLzHruQHPaMssja1ADifGAcN3qY'
const cid: string = 'bafybeias7om3oq2qdbmcniflurs676cmuis7cnhczqx623lwesi2fzmwie'

const args: FileComponentProps = {
message: {
Expand Down Expand Up @@ -65,9 +65,8 @@ Uploading.args = {
...args,
message: {
...args.message,
// @ts-expect-error
media: {
...args.message.media,
...args.message.media!,
size: undefined,
},
},
Expand Down
3 changes: 1 addition & 2 deletions packages/logger/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import debug from 'debug'
import { Console } from 'console'
import { DateTime } from 'luxon'
import { isUint8Array } from 'util/types'

import { ANY_KEY, findAllByKeyAndReplace } from './utils'

Expand Down Expand Up @@ -316,7 +315,7 @@ export class QuietLogger {
return (value as bigint).toString()
} else if (value != null && (value.toV1 != null || value.toV0 != null)) {
return value.toString()
} else if (value != null && isUint8Array(value)) {
} else if (value != null && value instanceof Uint8Array) {
return Buffer.from(value).toString('base64')
}

Expand Down

0 comments on commit da536f4

Please sign in to comment.