Update dependencies, fix (auto)import problems

This commit is contained in:
Wroclaw 2023-11-06 02:57:00 +01:00
parent 267a83d484
commit 1d893c4a78
40 changed files with 5166 additions and 3047 deletions

View file

@ -1,11 +1,13 @@
/* global defineEventHandler, getCookie, setCookie, readBody, createError */
import crypto from "crypto";
import { defineEventHandler, getCookie, setCookie, readBody } from "h3";
import { database, data } from "../utils/database";
import { database, type data } from "../utils/database";
import { isString } from "../utils/isString";
import { cookieSettings } from "../utils/rootUtils";
import Snowflake from "~/utils/snowflake";
import { createError } from "#imports";
export function getPasswordHash(password: string) {
return crypto.createHmac("sha512", "42")
.update(password)