fix: eslint errors, switch to using maps

This commit is contained in:
Huskydog9988
2025-04-15 20:04:45 -04:00
parent e362f732e7
commit 8f429e1e56
21 changed files with 158 additions and 159 deletions
+2 -6
View File
@@ -1,9 +1,5 @@
import { CertificateAuthority } from "../internal/clients/ca";
import fs from "fs";
import {
dbCertificateStore,
fsCertificateStore,
} from "../internal/clients/ca-store";
import { dbCertificateStore } from "../internal/clients/ca-store";
let ca: CertificateAuthority | undefined;
@@ -12,7 +8,7 @@ export const useCertificateAuthority = () => {
return ca;
};
export default defineNitroPlugin(async (nitro) => {
export default defineNitroPlugin(async () => {
// const basePath = process.env.CLIENT_CERTIFICATES ?? "./certs";
// fs.mkdirSync(basePath, { recursive: true });
// const store = fsCertificateStore(basePath);