chore: update deps

This commit is contained in:
dicedtomato 2023-02-27 03:46:27 +00:00 committed by GitHub
parent 81dea6cf90
commit 4fbbd58ae9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 853 additions and 815 deletions

View file

@ -1,5 +1,5 @@
# Use the Prisma binaries image as the first stage
FROM ghcr.io/diced/prisma-binaries:4.8.x as prisma
FROM ghcr.io/diced/prisma-binaries:4.10.x as prisma
# Use Alpine Linux as the second stage
FROM node:18-alpine3.16 as base

View file

@ -26,68 +26,68 @@
"scripts:clear-zero-byte": "node --enable-source-maps dist/scripts/clear-zero-byte"
},
"dependencies": {
"@emotion/react": "^11.10.5",
"@emotion/react": "^11.10.6",
"@emotion/server": "^11.10.0",
"@mantine/core": "^5.9.2",
"@mantine/dropzone": "^5.9.2",
"@mantine/form": "^5.9.2",
"@mantine/hooks": "^5.9.2",
"@mantine/modals": "^5.9.2",
"@mantine/next": "^5.9.2",
"@mantine/notifications": "^5.9.2",
"@mantine/prism": "^5.9.2",
"@prisma/client": "^4.8.1",
"@prisma/internals": "^4.8.1",
"@prisma/migrate": "^4.8.1",
"@sapphire/shapeshift": "^3.7.1",
"@tanstack/react-query": "^4.19.1",
"argon2": "^0.30.2",
"@mantine/core": "^5.10.5",
"@mantine/dropzone": "^5.10.5",
"@mantine/form": "^5.10.5",
"@mantine/hooks": "^5.10.5",
"@mantine/modals": "^5.10.5",
"@mantine/next": "^5.10.5",
"@mantine/notifications": "^5.10.5",
"@mantine/prism": "^5.10.5",
"@prisma/client": "^4.10.1",
"@prisma/internals": "^4.10.1",
"@prisma/migrate": "^4.10.1",
"@sapphire/shapeshift": "^3.8.1",
"@tanstack/react-query": "^4.24.10",
"argon2": "^0.30.3",
"cookie": "^0.5.0",
"dayjs": "^1.11.7",
"dotenv": "^16.0.3",
"dotenv-expand": "^9.0.0",
"exiftool-vendored": "^18.6.0",
"fastify": "^4.10.2",
"fastify-plugin": "^4.4.0",
"dotenv-expand": "^10.0.0",
"exiftool-vendored": "^21.2.0",
"fastify": "^4.13.0",
"fastify-plugin": "^4.5.0",
"fflate": "^0.7.4",
"find-my-way": "^7.3.1",
"find-my-way": "^7.5.0",
"katex": "^0.16.4",
"mantine-datatable": "^1.8.6",
"minio": "^7.0.32",
"ms": "canary",
"multer": "^1.4.5-lts.1",
"next": "^13.0.6",
"next": "^13.2.1",
"otplib": "^12.0.1",
"prisma": "^4.8.1",
"prisma": "^4.10.1",
"prismjs": "^1.29.0",
"qrcode": "^1.5.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-feather": "^2.0.10",
"react-markdown": "^8.0.4",
"recharts": "^2.3.2",
"react-markdown": "^8.0.5",
"recharts": "^2.4.3",
"recoil": "^0.7.6",
"remark-gfm": "^3.0.1",
"sharp": "^0.31.2"
"sharp": "^0.31.3"
},
"devDependencies": {
"@types/cookie": "^0.5.1",
"@types/katex": "^0.14.0",
"@types/minio": "^7.0.15",
"@types/katex": "^0.16.0",
"@types/minio": "^7.0.16",
"@types/multer": "^1.4.7",
"@types/node": "^18.11.12",
"@types/node": "^18.14.2",
"@types/qrcode": "^1.5.0",
"@types/react": "^18.0.26",
"@types/sharp": "^0.31.0",
"@types/react": "^18.0.28",
"@types/sharp": "^0.31.1",
"cross-env": "^7.0.3",
"eslint": "^8.29.0",
"eslint-config-next": "^13.0.6",
"eslint-config-prettier": "^8.5.0",
"eslint": "^8.35.0",
"eslint-config-next": "^13.2.1",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.1",
"tsup": "^6.5.0",
"typescript": "^4.9.4"
"prettier": "^2.8.4",
"tsup": "^6.6.3",
"typescript": "^4.9.5"
},
"repository": {
"type": "git",

View file

@ -18,7 +18,7 @@ export default class Logger {
public name: string;
static filters(): string[] {
return (process.env.LOGGER_FILTERS ?? '').split(',');
return (process.env.LOGGER_FILTERS ?? '').split(',').filter((x) => x !== '');
}
static get(klass: any) {
@ -38,9 +38,10 @@ export default class Logger {
}
show(): boolean {
if (!Logger.filters().length) return true;
const filters = Logger.filters();
if (!filters.length) return true;
return Logger.filters().includes(this.name);
return filters.includes(this.name);
}
info(...args: any[]): this {

View file

@ -68,7 +68,6 @@ export async function removeGPSData(image: File): Promise<void> {
GPSLongitude: null,
GPSLongitudeRef: null,
GPSMapDatum: null,
GPSMeasureMode: null,
GPSPosition: null,
GPSProcessingMethod: null,
GPSSatellites: null,

View file

@ -191,8 +191,14 @@ async function handler(req: NextApiReq, res: NextApiRes) {
}
if (zconfig.exif.enabled && zconfig.exif.remove_gps && mimetype.startsWith('image/')) {
try {
await removeGPSData(file);
response.removed_gps = true;
} catch (e) {
logger.error(`Failed to remove GPS data from ${file.name} (${file.id}) - ${e.message}`);
response.removed_gps = false;
}
}
return res.json(response);
@ -329,8 +335,14 @@ async function handler(req: NextApiReq, res: NextApiRes) {
}
if (zconfig.exif.enabled && zconfig.exif.remove_gps && fileUpload.mimetype.startsWith('image/')) {
try {
await removeGPSData(fileUpload);
response.removed_gps = true;
} catch (e) {
logger.error(`Failed to remove GPS data from ${fileUpload.name} (${fileUpload.id}) - ${e.message}`);
response.removed_gps = false;
}
}
}

1566
yarn.lock

File diff suppressed because it is too large Load diff