2
1
mirror of https://github.com/Thream/api.git synced 2024-07-06 12:50:12 +02:00

fix: update dependencies to latest

This commit is contained in:
Divlo 2023-04-02 23:45:47 +02:00
parent 78d7dbdb3f
commit 8a327eb7c7
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9
11 changed files with 3767 additions and 1778 deletions

View File

@ -16,7 +16,7 @@ jobs:
language: ['javascript']
steps:
- uses: 'actions/checkout@v3.3.0'
- uses: 'actions/checkout@v3.5.0'
- name: 'Initialize CodeQL'
uses: 'github/codeql-action/init@v2'

View File

@ -10,7 +10,7 @@ jobs:
build:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v3.3.0'
- uses: 'actions/checkout@v3.5.0'
- name: 'Use Node.js'
uses: 'actions/setup-node@v3.6.0'

View File

@ -10,7 +10,7 @@ jobs:
lint:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v3.3.0'
- uses: 'actions/checkout@v3.5.0'
- name: 'Use Node.js'
uses: 'actions/setup-node@v3.6.0'

View File

@ -8,7 +8,7 @@ jobs:
release:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v3.3.0'
- uses: 'actions/checkout@v3.5.0'
with:
fetch-depth: 0
persist-credentials: false

View File

@ -10,7 +10,7 @@ jobs:
test:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v3.3.0'
- uses: 'actions/checkout@v3.5.0'
- name: 'Use Node.js'
uses: 'actions/setup-node@v3.6.0'

View File

@ -1,15 +1,15 @@
FROM node:18.13.0 AS dependencies
FROM node:18.15.0 AS dependencies
WORKDIR /usr/src/app
COPY ./package*.json ./
RUN npm install
FROM node:18.13.0 AS builder
FROM node:18.15.0 AS builder
WORKDIR /usr/src/app
COPY --from=dependencies /usr/src/app/node_modules ./node_modules
COPY ./ ./
RUN npm run prisma:generate && npm run build
FROM node:18.13.0 AS runner
FROM node:18.15.0 AS runner
WORKDIR /usr/src/app
ENV NODE_ENV=production
COPY --from=builder /usr/src/app/node_modules ./node_modules

View File

@ -18,7 +18,7 @@
Thream's Application Programming Interface (API) to stay close with your friends and communities.
It uses [Thream/file-uploads-api](https://github.com/Thream/file-uploads-api) [v1.1.2](https://github.com/Thream/file-uploads-api/releases/tag/v1.1.2).
It uses [Thream/file-uploads-api](https://github.com/Thream/file-uploads-api) [v1.1.3](https://github.com/Thream/file-uploads-api/releases/tag/v1.1.3).
## ⚙️ Getting Started

5418
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,14 +4,17 @@
"description": "Thream's application programming interface to stay close with your friends and communities.",
"private": true,
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/Thream/api"
"imports": {
"#src/*": "./build/*"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/Thream/api"
},
"scripts": {
"build": "rimraf ./build && swc ./src --out-dir ./build",
"build:dev": "swc ./src --out-dir ./build --watch",
@ -23,7 +26,7 @@
"lint:commit": "commitlint",
"lint:editorconfig": "editorconfig-checker",
"lint:markdown": "markdownlint-cli2",
"lint:eslint": "eslint \"**/*.{js,jsx,ts,tsx}\" --ignore-path \".gitignore\"",
"lint:eslint": "eslint \".\" --ignore-path \".gitignore\"",
"lint:prettier": "prettier \".\" --check --ignore-path \".gitignore\"",
"lint:staged": "lint-staged",
"test": "cross-env NODE_ENV=test c8 tap",
@ -36,73 +39,73 @@
"postinstall": "husky install"
},
"dependencies": {
"@fastify/cors": "8.2.0",
"@fastify/cors": "8.2.1",
"@fastify/helmet": "10.1.0",
"@fastify/multipart": "7.3.0",
"@fastify/rate-limit": "7.6.0",
"@fastify/multipart": "7.5.0",
"@fastify/rate-limit": "8.0.0",
"@fastify/sensible": "5.2.0",
"@fastify/swagger": "8.2.1",
"@fastify/swagger-ui": "1.3.0",
"@prisma/client": "4.8.1",
"@sinclair/typebox": "0.25.20",
"@thream/socketio-jwt": "3.0.2",
"axios": "1.2.2",
"@fastify/swagger": "8.3.1",
"@fastify/swagger-ui": "1.6.0",
"@prisma/client": "4.12.0",
"@sinclair/typebox": "0.26.8",
"@thream/socketio-jwt": "3.0.4",
"axios": "1.3.4",
"bcryptjs": "2.4.3",
"dotenv": "16.0.3",
"ejs": "3.1.8",
"fastify": "4.11.0",
"fastify-plugin": "4.4.0",
"ejs": "3.1.9",
"fastify": "4.15.0",
"fastify-plugin": "4.5.0",
"form-data": "4.0.0",
"http-errors": "2.0.0",
"jsonwebtoken": "9.0.0",
"ms": "2.1.3",
"nodemailer": "6.8.0",
"nodemailer": "6.9.1",
"read-pkg": "7.1.0",
"socket.io": "4.5.4"
"socket.io": "4.6.1"
},
"devDependencies": {
"@commitlint/cli": "17.4.1",
"@commitlint/config-conventional": "17.4.0",
"@saithodev/semantic-release-backmerge": "2.1.2",
"@commitlint/cli": "17.5.1",
"@commitlint/config-conventional": "17.4.4",
"@saithodev/semantic-release-backmerge": "3.1.0",
"@semantic-release/git": "10.0.1",
"@swc/cli": "0.1.57",
"@swc/core": "1.3.25",
"@tsconfig/strictest": "1.0.2",
"@swc/cli": "0.1.62",
"@swc/core": "1.3.44",
"@tsconfig/strictest": "2.0.0",
"@types/bcryptjs": "2.4.2",
"@types/busboy": "1.5.0",
"@types/ejs": "3.1.1",
"@types/http-errors": "1.8.2",
"@types/jsonwebtoken": "9.0.0",
"@types/ejs": "3.1.2",
"@types/http-errors": "2.0.1",
"@types/jsonwebtoken": "9.0.1",
"@types/ms": "0.7.31",
"@types/node": "18.11.18",
"@types/node": "18.15.11",
"@types/nodemailer": "6.4.7",
"@types/sinon": "10.0.13",
"@types/tap": "15.0.7",
"@typescript-eslint/eslint-plugin": "5.48.1",
"@typescript-eslint/parser": "5.48.1",
"c8": "7.12.0",
"concurrently": "7.6.0",
"@types/tap": "15.0.8",
"@typescript-eslint/eslint-plugin": "5.57.0",
"@typescript-eslint/parser": "5.57.0",
"c8": "7.13.0",
"concurrently": "8.0.1",
"cross-env": "7.0.3",
"editorconfig-checker": "4.0.2",
"eslint": "8.31.0",
"eslint-config-conventions": "6.0.0",
"eslint-config-prettier": "8.6.0",
"eslint-plugin-import": "2.26.0",
"editorconfig-checker": "5.0.1",
"eslint": "8.37.0",
"eslint-config-conventions": "8.0.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-unicorn": "45.0.2",
"eslint-plugin-unicorn": "46.0.0",
"husky": "8.0.3",
"lint-staged": "13.1.0",
"lint-staged": "13.2.0",
"markdownlint-cli2": "0.6.0",
"markdownlint-rule-relative-links": "1.1.1",
"nodemon": "2.0.20",
"plop": "3.1.1",
"prettier": "2.8.2",
"prisma": "4.8.1",
"rimraf": "3.0.2",
"semantic-release": "19.0.5",
"sinon": "15.0.1",
"tap": "16.3.3",
"typescript": "4.9.4"
"markdownlint-rule-relative-links": "1.1.2",
"nodemon": "2.0.22",
"plop": "3.1.2",
"prettier": "2.8.7",
"prisma": "4.12.0",
"rimraf": "4.4.1",
"semantic-release": "21.0.1",
"sinon": "15.0.3",
"tap": "16.3.4",
"typescript": "5.0.3"
}
}

View File

@ -1,5 +1,5 @@
import { application } from './application.js'
import { HOST, PORT } from './tools/configurations.js'
import { HOST, PORT } from '#src/tools/configurations.js'
const address = await application.listen({
port: PORT,

View File

@ -7,6 +7,10 @@
"moduleResolution": "Node",
"outDir": "./build",
"rootDir": "./src",
"baseUrl": ".",
"paths": {
"#src/*": ["./src/*"]
},
"noEmit": true,
"exactOptionalPropertyTypes": false,
"checkJs": false