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

build(deps): bump the npm-deps group with 6 updates #5833

Merged
merged 3 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { EmailParts, Str } from '../../../js/common/core/common.js';
import { AcctStore } from '../../../js/common/platform/store/acct-store.js';

export class ComposeStorageModule extends ViewModule<ComposeView> {
public getAccountKeys = async (senderEmail: string | undefined, family?: 'openpgp' | 'x509' | undefined): Promise<KeyInfoWithIdentity[]> => {
public getAccountKeys = async (senderEmail: string | undefined, family?: 'openpgp' | 'x509'): Promise<KeyInfoWithIdentity[]> => {
const unfilteredKeys = await KeyStore.get(this.view.acctEmail);
Assert.abortAndRenderErrorIfKeyinfoEmpty(unfilteredKeys);
const matchingFamily = unfilteredKeys.filter(ki => !family || ki.family === family);
Expand Down
4 changes: 2 additions & 2 deletions extension/js/common/core/crypto/key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export class KeyUtil {
throw new UnexpectedKeyTypeError(`Key type is ${keyType}, expecting OpenPGP or x509 S/MIME`);
}

public static async readBinary(key: Uint8Array, passPhrase?: string | undefined): Promise<{ keys: Key[]; err: Error[] }> {
public static async readBinary(key: Uint8Array, passPhrase?: string): Promise<{ keys: Key[]; err: Error[] }> {
const allKeys: Key[] = [],
allErr: Error[] = [];
let uncheckedOpgpKeyCount = 0;
Expand Down Expand Up @@ -245,7 +245,7 @@ export class KeyUtil {
return { keys: allKeys, err: allErr };
}

public static async parseBinary(key: Uint8Array, passPhrase?: string | undefined): Promise<Key[]> {
public static async parseBinary(key: Uint8Array, passPhrase?: string): Promise<Key[]> {
const { keys, err } = await KeyUtil.readBinary(key, passPhrase);
if (keys.length > 0) {
return keys;
Expand Down
4 changes: 2 additions & 2 deletions extension/js/common/platform/store/contact-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ export class ContactStore extends AbstractStore {
}

// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
public static setReqPipe<T>(req: IDBRequest, pipe: (value?: T) => void, reject?: ((reason?: unknown) => void) | undefined) {
public static setReqPipe<T>(req: IDBRequest, pipe: (value?: T) => void, reject?: (reason?: unknown) => void) {
req.onsuccess = () => {
try {
pipe(req.result as T);
Expand Down Expand Up @@ -858,7 +858,7 @@ export class ContactStore extends AbstractStore {
});
}

private static chainExtraction<T>(store: IDBObjectStore, setup: { keys: IDBValidKey[]; values: T[] }, req?: IDBRequest | undefined): void {
private static chainExtraction<T>(store: IDBObjectStore, setup: { keys: IDBValidKey[]; values: T[] }, req?: IDBRequest): void {
if (req) {
ContactStore.setReqPipe(req, (value: T) => {
if (value) {
Expand Down
2 changes: 1 addition & 1 deletion extension/js/common/render-relay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class RenderRelay implements RenderInterface {
.finally(() => this.relay({ done: true }));
};

public renderErr = (errBoxContent: string, renderRawMsg: string | undefined, errMsg?: string | undefined) => {
public renderErr = (errBoxContent: string, renderRawMsg: string | undefined, errMsg?: string) => {
this.relay({ renderErr: { errBoxContent, renderRawMsg, errMsg } });
};

Expand Down
2 changes: 1 addition & 1 deletion extension/js/common/ui/key-import-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class KeyImportUi {
return Boolean($(checkboxSelector).prop('checked'));
};

public initPrvImportSrcForm = (acctEmail: string, parentTabId: string | undefined, submitKeyForAddrs?: string[] | undefined) => {
public initPrvImportSrcForm = (acctEmail: string, parentTabId: string | undefined, submitKeyForAddrs?: string[]) => {
$('input[type=radio][name=source]')
.off()
.on('change', function () {
Expand Down
2 changes: 1 addition & 1 deletion extension/js/service_worker/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export const moveContactsToEmailsAndPubkeys = async (db: IDBDatabase): Promise<v
}
};

const moveContactsBatchToEmailsAndPubkeys = async (db: IDBDatabase, count?: number | undefined): Promise<number> => {
const moveContactsBatchToEmailsAndPubkeys = async (db: IDBDatabase, count?: number): Promise<number> => {
const entries: ContactV3[] = [];
{
const tx = db.transaction(['contacts'], 'readonly');
Expand Down
Loading
Loading