Update dependencies

This commit is contained in:
Wroclaw 2023-12-16 15:07:51 +01:00
parent 5d1fc30601
commit 0151a6c713
4 changed files with 2589 additions and 4189 deletions

6756
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -16,15 +16,14 @@
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"eslint": "^8.39.0",
"nuxt": "3.8.1",
"prisma": "5.5.2",
"nuxt": "3.8.2",
"prisma": "5.7.0",
"sass": "^1.62.0",
"vite-plugin-vuetify": "^1.0.2",
"vite-plugin-vuetify": "^2.0.1",
"vuetify": "^3.1.15"
},
"dependencies": {
"@prisma/client": "5.5.2",
"@prisma/migrate": "^5.5.2",
"mysql2": "^3.2.3"
"@prisma/client": "5.7.0",
"@prisma/migrate": "5.7.0"
}
}

View file

@ -1,8 +1,8 @@
import url from "node:url";
import path from "node:path";
import { defineEventHandler, setResponseStatus, readBody } from "h3";
// @ts-expect-error
import { DbPush } from "@prisma/migrate";
// eslint-disable-next-line import/default
import PrismaMigrate from "@prisma/migrate";
import { database } from "../utils/database";
import { isFirstRun } from "./firstRun.get";
@ -39,7 +39,7 @@ export default defineEventHandler(async (e) => {
);
}
await DbPush.new().parse(dbPushParam);
await (new PrismaMigrate.DbPush()).parse(dbPushParam);
await database.user.create({
data: {
id: new Snowflake().state,

View file

@ -4,12 +4,12 @@ let
# Updating this package will force an update for nodePackages.prisma. The
# version of prisma-engines and nodePackages.prisma must be the same for them to
# function correctly.
prisma-version = "5.5.2";
prisma-version = "5.7.0";
prisma-src = pkgs.fetchFromGitHub {
owner = "prisma";
repo = "prisma-engines";
rev = prisma-version;
hash = "sha256-d24b+Jobt5+vH7SGYOnDIR9DOtM0Y2XSfHZGkr7EidA=";
hash = "sha256-gZEz0UtgNwumsZbweAyx3TOVHJshpBigc9pzWN7Gb/A=";
};
new-prisma-engines = pkgs.rustPlatform.buildRustPackage {
pname = "prisma-engines";
@ -30,6 +30,7 @@ let
cargoLock = {
lockFile = "${prisma-src}/Cargo.lock";
outputHashes = {
"cuid-1.3.2" = "sha256-ZihFrLerEIOdbJggaBbByRbC1sZRvF4M0LN2albB7vA=";
"barrel-0.6.6-alpha.0" = "sha256-USh0lQ1z+3Spgc69bRFySUzhuY79qprLlEExTmYWFN8=";
"graphql-parser-0.3.0" = "sha256-0ZAsj2mW6fCLhwTETucjbu4rPNzfbNiHu2wVTBlTNe4=";
"mysql_async-0.31.3" = "sha256-QIO9s0Upc0/1W7ux1RNJNGKqzO4gB4gMV3NoakAbxkQ=";