mirror of
https://github.com/CaramelFur/Picsur.git
synced 2026-01-10 17:22:10 +01:00
switch to posix.js
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
node_modules
|
||||
todo.txt
|
||||
yarn-error.log
|
||||
|
||||
@@ -45,17 +45,17 @@
|
||||
"passport-strategy": "^1.0.0",
|
||||
"pg": "^8.7.3",
|
||||
"picsur-shared": "*",
|
||||
"posix": "^4.2.0",
|
||||
"posix.js": "^0.1.1",
|
||||
"qoi-img": "^1.1.0",
|
||||
"reflect-metadata": "^0.1.13",
|
||||
"rimraf": "^3.0.2",
|
||||
"rxjs": "^7.5.5",
|
||||
"sharp": "^0.30.6",
|
||||
"sharp": "^0.30.7",
|
||||
"typeorm": "0.3.6",
|
||||
"zod": "^3.17.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "^8.2.6",
|
||||
"@nestjs/cli": "^8.2.8",
|
||||
"@nestjs/schematics": "^8.0.11",
|
||||
"@nestjs/testing": "^8.4.7",
|
||||
"@types/bcrypt": "^5.0.0",
|
||||
@@ -68,17 +68,17 @@
|
||||
"@types/passport-strategy": "^0.2.35",
|
||||
"@types/sharp": "^0.30.4",
|
||||
"@types/supertest": "^2.0.12",
|
||||
"@typescript-eslint/eslint-plugin": "^5.28.0",
|
||||
"@typescript-eslint/parser": "^5.28.0",
|
||||
"eslint": "^8.17.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.29.0",
|
||||
"@typescript-eslint/parser": "^5.29.0",
|
||||
"eslint": "^8.18.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"prettier": "^2.7.1",
|
||||
"source-map-support": "^0.5.21",
|
||||
"ts-loader": "^9.3.0",
|
||||
"ts-loader": "^9.3.1",
|
||||
"ts-node": "^10.8.1",
|
||||
"tsconfig-paths": "^4.0.0",
|
||||
"typescript": "4.7.3",
|
||||
"typescript": "4.7.4",
|
||||
"webpack": "^5.73.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import * as multipart from '@fastify/multipart';
|
||||
import { NestFactory, Reflector } from '@nestjs/core';
|
||||
import {
|
||||
FastifyAdapter,
|
||||
NestFastifyApplication,
|
||||
NestFastifyApplication
|
||||
} from '@nestjs/platform-fastify';
|
||||
import { AppModule } from './app.module';
|
||||
import { UsersService } from './collections/user-db/user-db.service';
|
||||
@@ -20,7 +20,7 @@ async function bootstrap() {
|
||||
const fastifyAdapter = new FastifyAdapter();
|
||||
// TODO: generic error messages
|
||||
await fastifyAdapter.register(multipart as any);
|
||||
await fastifyAdapter.register(fastifyHelmet, HelmetOptions);
|
||||
await fastifyAdapter.register(fastifyHelmet as any, HelmetOptions);
|
||||
|
||||
// Create nest app
|
||||
const app = await NestFactory.create<NestFastifyApplication>(
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
import { FullMime } from 'picsur-shared/dist/dto/mimes.dto';
|
||||
// @ts-ignore
|
||||
import posix from 'posix';
|
||||
import posix from 'posix.js';
|
||||
import { Sharp } from 'sharp';
|
||||
import {
|
||||
SharpWorkerFinishOptions,
|
||||
SharpWorkerInitMessage,
|
||||
SharpWorkerOperationMessage,
|
||||
SharpWorkerRecieveMessage,
|
||||
SharpWorkerSendMessage,
|
||||
SharpWorkerSendMessage
|
||||
} from './sharp.message';
|
||||
import { UniversalSharpIn, UniversalSharpOut } from './universal-sharp';
|
||||
|
||||
|
||||
@@ -14,16 +14,16 @@
|
||||
"purge": "rm -rf dist && rm -rf node_modules && rm -rf .angular"
|
||||
},
|
||||
"dependencies": {
|
||||
"@angular/animations": "^14.0.2",
|
||||
"@angular/cdk": "^14.0.2",
|
||||
"@angular/common": "^14.0.2",
|
||||
"@angular/compiler": "^14.0.2",
|
||||
"@angular/core": "^14.0.2",
|
||||
"@angular/forms": "^14.0.2",
|
||||
"@angular/material": "^14.0.2",
|
||||
"@angular/platform-browser": "^14.0.2",
|
||||
"@angular/platform-browser-dynamic": "^14.0.2",
|
||||
"@angular/router": "^14.0.2",
|
||||
"@angular/animations": "^14.0.3",
|
||||
"@angular/cdk": "^14.0.3",
|
||||
"@angular/common": "^14.0.3",
|
||||
"@angular/compiler": "^14.0.3",
|
||||
"@angular/core": "^14.0.3",
|
||||
"@angular/forms": "^14.0.3",
|
||||
"@angular/material": "^14.0.3",
|
||||
"@angular/platform-browser": "^14.0.3",
|
||||
"@angular/platform-browser-dynamic": "^14.0.3",
|
||||
"@angular/router": "^14.0.3",
|
||||
"@ng-web-apis/common": "^2.0.0",
|
||||
"@ng-web-apis/resize-observer": "^1.0.3",
|
||||
"@ngui/common": "^1.0.0",
|
||||
@@ -42,15 +42,15 @@
|
||||
"zone.js": "~0.11.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "14.0.2",
|
||||
"@angular/cli": "^14.0.2",
|
||||
"@angular/compiler-cli": "^14.0.2",
|
||||
"@angular-devkit/build-angular": "14.0.3",
|
||||
"@angular/cli": "^14.0.3",
|
||||
"@angular/compiler-cli": "^14.0.3",
|
||||
"@fontsource/material-icons": "^4.5.4",
|
||||
"@fontsource/material-icons-outlined": "^4.5.4",
|
||||
"@fontsource/roboto": "^4.5.7",
|
||||
"@types/node": "^18.0.0",
|
||||
"@types/resize-observer-browser": "^0.1.7",
|
||||
"@types/validator": "^13.7.3",
|
||||
"typescript": "4.7.3"
|
||||
"typescript": "4.7.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,19 +15,19 @@
|
||||
"purge-all": "./support/purge-all.sh"
|
||||
},
|
||||
"resolutions": {
|
||||
"fastify": "^4.0.3",
|
||||
"fastify": "^4.1.0",
|
||||
"fastify-static": "npm:@fastify/static",
|
||||
"fastify-formbody": "npm:@fastify/formbody",
|
||||
"minimist": "npm:minimist-lite"
|
||||
},
|
||||
"dependencies": {
|
||||
"fastify": "^4.0.3",
|
||||
"fastify": "^4.1.0",
|
||||
"fastify-formbody": "npm:@fastify/formbody",
|
||||
"fastify-static": "npm:@fastify/static",
|
||||
"minimist": "npm:minimist-lite"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^2.7.1",
|
||||
"prettier-plugin-sh": "^0.11.0"
|
||||
"prettier-plugin-sh": "^0.12.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.0.0",
|
||||
"typescript": "4.7.3"
|
||||
"typescript": "4.7.4"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rm -rf ./dist",
|
||||
|
||||
8508
yarn-error.log
8508
yarn-error.log
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user