Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate from merge #298

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions example/src/tests.ts
Original file line number Diff line number Diff line change
@@ -147,16 +147,6 @@ async function exportHmacKey(key: CryptoKey): Promise<Uint8Array> {
return new Uint8Array(exported)
}

async function importHmacKey(key: Uint8Array): Promise<CryptoKey> {
return await window.crypto.subtle.importKey(
'raw',
key,
{ name: 'HMAC', hash: 'SHA-256', length: 256 },
true,
['sign', 'verify']
)
}

function test(name: string, perform: () => Promise<boolean>) {
tests.push({ name, run: perform })
}

Unchanged files with check annotations Beta

import { content } from '@xmtp/proto'

Check warning on line 1 in src/lib/ContentCodec.ts

GitHub Actions / lint

There should be at least one empty line between import groups
import { ReadReceiptCodec } from './NativeCodecs/ReadReceiptCodec'

Check warning on line 2 in src/lib/ContentCodec.ts

GitHub Actions / lint

'ReadReceiptCodec' is defined but never used
import { TextCodec } from './NativeCodecs/TextCodec'

Check warning on line 3 in src/lib/ContentCodec.ts

GitHub Actions / lint

'TextCodec' is defined but never used
import { ReplyCodec } from './NativeCodecs/ReplyCodec'

Check warning on line 4 in src/lib/ContentCodec.ts

GitHub Actions / lint

`./NativeCodecs/ReplyCodec` import should occur before import of `./NativeCodecs/TextCodec`

Check warning on line 4 in src/lib/ContentCodec.ts

GitHub Actions / lint

'ReplyCodec' is defined but never used
export type EncodedContent = content.EncodedContent
export type ContentTypeId = content.ContentTypeId
this.client.address,
this.topic,
content,
codec,

Check warning on line 157 in src/lib/Conversation.ts

GitHub Actions / lint

Delete `,`
)
}
import { Client } from './Client'
import {
ContentCodec,

Check warning on line 3 in src/lib/DecodedMessage.ts

GitHub Actions / lint

'ContentCodec' is defined but never used
JSContentCodec,
NativeContentCodec,
NativeMessageContent,
} from './ContentCodec'
import { ReplyCodec } from './NativeCodecs/ReplyCodec'

Check warning on line 8 in src/lib/DecodedMessage.ts

GitHub Actions / lint

'ReplyCodec' is defined but never used
import { TextCodec } from './NativeCodecs/TextCodec'

Check warning on line 9 in src/lib/DecodedMessage.ts

GitHub Actions / lint

There should be at least one empty line between import groups

Check warning on line 9 in src/lib/DecodedMessage.ts

GitHub Actions / lint

'TextCodec' is defined but never used
import { Buffer } from 'buffer'
export class DecodedMessage<ContentTypes = any> {