Update packages

This commit is contained in:
Caramel 2023-06-02 16:35:31 +02:00
parent 5e6c12ce6d
commit 18bee2e0cd
No known key found for this signature in database
12 changed files with 3443 additions and 2740 deletions

2
.nvmrc
View file

@ -1 +1 @@
v18.8
v20

View file

@ -22,24 +22,24 @@
"purge": "rm -rf dist && rm -rf node_modules"
},
"dependencies": {
"@fastify/helmet": "^10.1.0",
"@fastify/multipart": "^7.5.0",
"@fastify/reply-from": "^9.0.1",
"@fastify/static": "^6.9.0",
"@nestjs/common": "^9.3.9",
"@nestjs/config": "^2.3.1",
"@nestjs/core": "^9.3.9",
"@nestjs/jwt": "^10.0.2",
"@fastify/helmet": "^10.1.1",
"@fastify/multipart": "^7.6.0",
"@fastify/reply-from": "^9.1.0",
"@fastify/static": "^6.10.2",
"@nestjs/common": "^9.4.2",
"@nestjs/config": "^2.3.2",
"@nestjs/core": "^9.4.2",
"@nestjs/jwt": "^10.0.3",
"@nestjs/passport": "^9.0.3",
"@nestjs/platform-fastify": "^9.3.9",
"@nestjs/schedule": "^2.2.0",
"@nestjs/platform-fastify": "^9.4.2",
"@nestjs/schedule": "^2.2.2",
"@nestjs/serve-static": "^3.0.1",
"@nestjs/throttler": "^4.0.0",
"@nestjs/typeorm": "^9.0.1",
"bcrypt": "^5.1.0",
"bmp-img": "^1.2.1",
"cors": "^2.8.5",
"file-type": "^18.2.1",
"file-type": "^18.4.0",
"is-docker": "^3.0.0",
"ms": "^2.1.3",
"node-fetch": "^3.3.1",
@ -49,42 +49,42 @@
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"passport-strategy": "^1.0.0",
"pg": "^8.10.0",
"pg": "^8.11.0",
"picsur-shared": "*",
"posix.js": "^0.1.1",
"qoi-img": "^2.1.1",
"reflect-metadata": "^0.1.13",
"rimraf": "^4.4.0",
"rxjs": "^7.8.0",
"sharp": "^0.31.3",
"rimraf": "^5.0.1",
"rxjs": "^7.8.1",
"sharp": "^0.32.1",
"stream-parser": "^0.3.1",
"thunks": "^4.9.6",
"typeorm": "0.3.12",
"typeorm": "0.3.16",
"zod": "^3.21.4"
},
"devDependencies": {
"@nestjs/cli": "^9.2.0",
"@nestjs/schematics": "^9.0.4",
"@nestjs/testing": "^9.3.9",
"@nestjs/cli": "^9.5.0",
"@nestjs/schematics": "^9.2.0",
"@nestjs/testing": "^9.4.2",
"@types/bcrypt": "^5.0.0",
"@types/cors": "^2.8.13",
"@types/multer": "^1.4.7",
"@types/node": "^18.15.3",
"@types/node": "^20.2.5",
"@types/passport-jwt": "^3.0.8",
"@types/passport-local": "^1.0.35",
"@types/passport-strategy": "^0.2.35",
"@types/sharp": "^0.31.1",
"@types/sharp": "^0.32.0",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.7.0",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.4",
"prettier": "^2.8.8",
"source-map-support": "^0.5.21",
"ts-loader": "^9.4.2",
"ts-loader": "^9.4.3",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.2",
"typescript": "^4.9.5"
"tsconfig-paths": "^4.2.0",
"typescript": "^5.1.3"
}
}

View file

@ -8,8 +8,8 @@
# You can see what browsers were selected by your queries by running:
# npx browserslist
last 1 Chrome version
last 1 Firefox version
last 2 Chrome version
last 2 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions

View file

@ -6,4 +6,22 @@ export default {
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /en/),
// new BundleAnalyzerPlugin(),
],
module: {
rules: [
{
test: /\.m?js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: [
[
'@babel/preset-env',
],
],
},
},
},
],
},
};

View file

@ -14,34 +14,40 @@
"purge": "rm -rf dist && rm -rf node_modules && rm -rf .angular"
},
"devDependencies": {
"@angular-builders/custom-webpack": "^15.0.0",
"@angular-devkit/build-angular": "^15.2.3",
"@angular/animations": "^15.2.2",
"@angular/cdk": "^15.2.2",
"@angular/cli": "^15.2.3",
"@angular/common": "^15.2.2",
"@angular/compiler": "^15.2.2",
"@angular/compiler-cli": "^15.2.2",
"@angular/core": "^15.2.2",
"@angular/forms": "^15.2.2",
"@angular/material": "^15.2.2",
"@angular/platform-browser": "^15.2.2",
"@angular/platform-browser-dynamic": "^15.2.2",
"@angular/router": "^15.2.2",
"@fontsource/material-icons": "^4.5.4",
"@fontsource/material-icons-outlined": "^4.5.4",
"@fontsource/roboto": "^4.5.8",
"@angular-builders/custom-webpack": "^16.0.0",
"@angular-devkit/build-angular": "^16.0.4",
"@angular/animations": "^16.0.4",
"@angular/cdk": "^16.0.3",
"@angular/cli": "^16.0.4",
"@angular/common": "^16.0.4",
"@angular/compiler": "^16.0.4",
"@angular/compiler-cli": "^16.0.4",
"@angular/core": "^16.0.4",
"@angular/forms": "^16.0.4",
"@angular/material": "^16.0.3",
"@angular/platform-browser": "^16.0.4",
"@angular/platform-browser-dynamic": "^16.0.4",
"@angular/router": "^16.0.4",
"@babel/cli": "^7.21.5",
"@babel/core": "^7.22.1",
"@babel/preset-env": "^7.22.4",
"@fontsource/material-icons": "^5.0.2",
"@fontsource/material-icons-outlined": "^5.0.2",
"@fontsource/roboto": "^5.0.2",
"@ng-web-apis/common": "^2.1.0",
"@ng-web-apis/resize-observer": "^2.0.0",
"@ngui/common": "^1.0.0",
"@popperjs/core": "^2.11.8",
"@types/ackee-tracker": "^5.0.2",
"@types/node": "^18.15.3",
"@types/node": "^20.2.5",
"@types/resize-observer-browser": "^0.1.7",
"@types/validator": "^13.7.14",
"@types/validator": "^13.7.17",
"ackee-tracker": "^5.1.0",
"axios": "^1.3.4",
"bootstrap": "^5.2.3",
"caniuse-lite": "^1.0.30001466",
"axios": "^1.4.0",
"babel-loader": "^9.1.2",
"bootstrap": "^5.3.0",
"browserslist": "^4.21.7",
"caniuse-lite": "^1.0.30001492",
"fuse.js": "^6.6.2",
"jwt-decode": "^3.1.2",
"moment": "^2.29.4",
@ -51,10 +57,10 @@
"ngx-moment": "^6.0.2",
"picsur-shared": "*",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.0",
"tslib": "^2.5.0",
"typescript": "^4.9.5",
"webpack-bundle-analyzer": "^4.8.0",
"rxjs": "^7.8.1",
"tslib": "^2.5.2",
"typescript": "^5.1.3",
"webpack-bundle-analyzer": "^4.9.0",
"zod": "^3.21.4",
"zone.js": "^0.13.0"
}

View file

@ -24,10 +24,6 @@ export class InfoService {
return this.infoSubject.value;
}
private infoSubject = new BehaviorSubject<ServerInfo>(
this.infoStorage.get() ?? new ServerInfo(),
);
constructor(
@Inject(LOCATION) private readonly location: Location,
private readonly api: ApiService,
@ -36,6 +32,10 @@ export class InfoService {
this.updateInfo().catch((e) => this.logger.warn(e));
}
private infoSubject = new BehaviorSubject<ServerInfo>(
this.infoStorage?.get() ?? new ServerInfo(),
);
public async getLoadedSnapshot(): Promise<ServerInfo> {
if (this.isLoaded()) {
return this.snapshot;

View file

@ -4,10 +4,7 @@
"compilerOptions": {
"outDir": "./out-tsc/",
"target": "es2017",
"module": "es2020",
"lib": ["es2020", "dom"]
"lib": ["ES2022", "dom"]
},
"files": ["src/main.ts", "src/polyfills.ts"],
"include": ["src/**/*.d.ts", "src/app/**/*.ts", "src/app/**/*.html"],

View file

@ -6,8 +6,8 @@
"compilerOptions": {
"baseUrl": "./",
"target": "es2017",
"module": "es2020",
"target": "ES2022",
"module": "ES2022",
"experimentalDecorators": true,

View file

@ -3,7 +3,7 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./out-tsc/worker",
"lib": ["es2020", "webworker"],
"lib": ["ES2022", "webworker"],
"isolatedModules": false
},

View file

@ -10,7 +10,7 @@
"devdb:start": "docker-compose -f ./support/dev.docker-compose.yml up -d",
"devdb:stop": "docker-compose -f ./support/dev.docker-compose.yml down",
"devdb:restart": "docker-compose -f ./support/dev.docker-compose.yml restart",
"devdb:remove": "docker-compose -f ./support/dev.docker-compose.yml down --volumes",
"devdb:remove": "docker-compose -f ./support/dev.docker-compose.yml down --volumes --remove-orphans",
"build": "./support/build.sh",
"setversion": "./support/setversion.sh",
"purge": "rm -rf ./node_modules",
@ -30,7 +30,7 @@
"minimist": "npm:minimist-lite@*"
},
"devDependencies": {
"prettier": "^2.8.4",
"prettier": "^2.8.8",
"prettier-plugin-sh": "^0.12.8"
},
"packageManager": "yarn@3.2.2"

View file

@ -11,9 +11,9 @@
"zod": "^3.21.4"
},
"devDependencies": {
"@types/node": "^18.15.3",
"tsc-watch": "^6.0.0",
"typescript": "^4.9.5"
"@types/node": "^20.2.5",
"tsc-watch": "^6.0.4",
"typescript": "^5.1.3"
},
"scripts": {
"clean": "rm -rf ./dist",

6014
yarn.lock

File diff suppressed because it is too large Load diff