fix linting

This commit is contained in:
2024-04-07 11:02:54 -06:00
parent 22cba5babf
commit b73d2a3b58
4 changed files with 3 additions and 15 deletions

View File

@@ -237,19 +237,6 @@ export const generateSaveAndActivateIdentity = async (): Promise<string> => {
return newId.did;
};
function getBase64(subscription: PushSubscription, key: PushEncryptionKeyName) {
const buffer = subscription.getKey(key);
if (!buffer) {
return null;
}
const value = Buffer.from(buffer);
return value
.toString("base64")
.replace(/\+/g, "-")
.replace(/\//g, "_")
.replace(/=+$/, "");
}
export const sendTestThroughPushServer = async (
subscriptionJSON: PushSubscriptionJSON,
skipFilter: boolean,

1
src/util.d.ts vendored
View File

@@ -1,4 +1,5 @@
// from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/util.d.ts
/* eslint-disable */
/**
* The `node:util` module supports the needs of Node.js internal APIs. Many of the
* utilities are useful for application and module developers as well. To access

View File

@@ -316,7 +316,6 @@ import { Account } from "@/db/tables/accounts";
import { Buffer } from "buffer/";
@Component({
components: { QuickNav, EntityIcon },
})