fix: update dependencies to latest
This commit is contained in:
parent
78d7dbdb3f
commit
8a327eb7c7
2
.github/workflows/analyze.yml
vendored
2
.github/workflows/analyze.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
|||||||
language: ['javascript']
|
language: ['javascript']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v3.3.0'
|
- uses: 'actions/checkout@v3.5.0'
|
||||||
|
|
||||||
- name: 'Initialize CodeQL'
|
- name: 'Initialize CodeQL'
|
||||||
uses: 'github/codeql-action/init@v2'
|
uses: 'github/codeql-action/init@v2'
|
||||||
|
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v3.3.0'
|
- uses: 'actions/checkout@v3.5.0'
|
||||||
|
|
||||||
- name: 'Use Node.js'
|
- name: 'Use Node.js'
|
||||||
uses: 'actions/setup-node@v3.6.0'
|
uses: 'actions/setup-node@v3.6.0'
|
||||||
|
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v3.3.0'
|
- uses: 'actions/checkout@v3.5.0'
|
||||||
|
|
||||||
- name: 'Use Node.js'
|
- name: 'Use Node.js'
|
||||||
uses: 'actions/setup-node@v3.6.0'
|
uses: 'actions/setup-node@v3.6.0'
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -8,7 +8,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v3.3.0'
|
- uses: 'actions/checkout@v3.5.0'
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v3.3.0'
|
- uses: 'actions/checkout@v3.5.0'
|
||||||
|
|
||||||
- name: 'Use Node.js'
|
- name: 'Use Node.js'
|
||||||
uses: 'actions/setup-node@v3.6.0'
|
uses: 'actions/setup-node@v3.6.0'
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
FROM node:18.13.0 AS dependencies
|
FROM node:18.15.0 AS dependencies
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY ./package*.json ./
|
COPY ./package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
FROM node:18.13.0 AS builder
|
FROM node:18.15.0 AS builder
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY --from=dependencies /usr/src/app/node_modules ./node_modules
|
COPY --from=dependencies /usr/src/app/node_modules ./node_modules
|
||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
RUN npm run prisma:generate && npm run build
|
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
|
WORKDIR /usr/src/app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
COPY --from=builder /usr/src/app/node_modules ./node_modules
|
COPY --from=builder /usr/src/app/node_modules ./node_modules
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
Thream's Application Programming Interface (API) to stay close with your friends and communities.
|
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
|
## ⚙️ Getting Started
|
||||||
|
|
||||||
|
5398
package-lock.json
generated
5398
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
103
package.json
103
package.json
@ -4,14 +4,17 @@
|
|||||||
"description": "Thream's application programming interface to stay close with your friends and communities.",
|
"description": "Thream's application programming interface to stay close with your friends and communities.",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"repository": {
|
"imports": {
|
||||||
"type": "git",
|
"#src/*": "./build/*"
|
||||||
"url": "https://github.com/Thream/api"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0.0",
|
"node": ">=16.0.0",
|
||||||
"npm": ">=8.0.0"
|
"npm": ">=8.0.0"
|
||||||
},
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/Thream/api"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rimraf ./build && swc ./src --out-dir ./build",
|
"build": "rimraf ./build && swc ./src --out-dir ./build",
|
||||||
"build:dev": "swc ./src --out-dir ./build --watch",
|
"build:dev": "swc ./src --out-dir ./build --watch",
|
||||||
@ -23,7 +26,7 @@
|
|||||||
"lint:commit": "commitlint",
|
"lint:commit": "commitlint",
|
||||||
"lint:editorconfig": "editorconfig-checker",
|
"lint:editorconfig": "editorconfig-checker",
|
||||||
"lint:markdown": "markdownlint-cli2",
|
"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:prettier": "prettier \".\" --check --ignore-path \".gitignore\"",
|
||||||
"lint:staged": "lint-staged",
|
"lint:staged": "lint-staged",
|
||||||
"test": "cross-env NODE_ENV=test c8 tap",
|
"test": "cross-env NODE_ENV=test c8 tap",
|
||||||
@ -36,73 +39,73 @@
|
|||||||
"postinstall": "husky install"
|
"postinstall": "husky install"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fastify/cors": "8.2.0",
|
"@fastify/cors": "8.2.1",
|
||||||
"@fastify/helmet": "10.1.0",
|
"@fastify/helmet": "10.1.0",
|
||||||
"@fastify/multipart": "7.3.0",
|
"@fastify/multipart": "7.5.0",
|
||||||
"@fastify/rate-limit": "7.6.0",
|
"@fastify/rate-limit": "8.0.0",
|
||||||
"@fastify/sensible": "5.2.0",
|
"@fastify/sensible": "5.2.0",
|
||||||
"@fastify/swagger": "8.2.1",
|
"@fastify/swagger": "8.3.1",
|
||||||
"@fastify/swagger-ui": "1.3.0",
|
"@fastify/swagger-ui": "1.6.0",
|
||||||
"@prisma/client": "4.8.1",
|
"@prisma/client": "4.12.0",
|
||||||
"@sinclair/typebox": "0.25.20",
|
"@sinclair/typebox": "0.26.8",
|
||||||
"@thream/socketio-jwt": "3.0.2",
|
"@thream/socketio-jwt": "3.0.4",
|
||||||
"axios": "1.2.2",
|
"axios": "1.3.4",
|
||||||
"bcryptjs": "2.4.3",
|
"bcryptjs": "2.4.3",
|
||||||
"dotenv": "16.0.3",
|
"dotenv": "16.0.3",
|
||||||
"ejs": "3.1.8",
|
"ejs": "3.1.9",
|
||||||
"fastify": "4.11.0",
|
"fastify": "4.15.0",
|
||||||
"fastify-plugin": "4.4.0",
|
"fastify-plugin": "4.5.0",
|
||||||
"form-data": "4.0.0",
|
"form-data": "4.0.0",
|
||||||
"http-errors": "2.0.0",
|
"http-errors": "2.0.0",
|
||||||
"jsonwebtoken": "9.0.0",
|
"jsonwebtoken": "9.0.0",
|
||||||
"ms": "2.1.3",
|
"ms": "2.1.3",
|
||||||
"nodemailer": "6.8.0",
|
"nodemailer": "6.9.1",
|
||||||
"read-pkg": "7.1.0",
|
"read-pkg": "7.1.0",
|
||||||
"socket.io": "4.5.4"
|
"socket.io": "4.6.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "17.4.1",
|
"@commitlint/cli": "17.5.1",
|
||||||
"@commitlint/config-conventional": "17.4.0",
|
"@commitlint/config-conventional": "17.4.4",
|
||||||
"@saithodev/semantic-release-backmerge": "2.1.2",
|
"@saithodev/semantic-release-backmerge": "3.1.0",
|
||||||
"@semantic-release/git": "10.0.1",
|
"@semantic-release/git": "10.0.1",
|
||||||
"@swc/cli": "0.1.57",
|
"@swc/cli": "0.1.62",
|
||||||
"@swc/core": "1.3.25",
|
"@swc/core": "1.3.44",
|
||||||
"@tsconfig/strictest": "1.0.2",
|
"@tsconfig/strictest": "2.0.0",
|
||||||
"@types/bcryptjs": "2.4.2",
|
"@types/bcryptjs": "2.4.2",
|
||||||
"@types/busboy": "1.5.0",
|
"@types/busboy": "1.5.0",
|
||||||
"@types/ejs": "3.1.1",
|
"@types/ejs": "3.1.2",
|
||||||
"@types/http-errors": "1.8.2",
|
"@types/http-errors": "2.0.1",
|
||||||
"@types/jsonwebtoken": "9.0.0",
|
"@types/jsonwebtoken": "9.0.1",
|
||||||
"@types/ms": "0.7.31",
|
"@types/ms": "0.7.31",
|
||||||
"@types/node": "18.11.18",
|
"@types/node": "18.15.11",
|
||||||
"@types/nodemailer": "6.4.7",
|
"@types/nodemailer": "6.4.7",
|
||||||
"@types/sinon": "10.0.13",
|
"@types/sinon": "10.0.13",
|
||||||
"@types/tap": "15.0.7",
|
"@types/tap": "15.0.8",
|
||||||
"@typescript-eslint/eslint-plugin": "5.48.1",
|
"@typescript-eslint/eslint-plugin": "5.57.0",
|
||||||
"@typescript-eslint/parser": "5.48.1",
|
"@typescript-eslint/parser": "5.57.0",
|
||||||
"c8": "7.12.0",
|
"c8": "7.13.0",
|
||||||
"concurrently": "7.6.0",
|
"concurrently": "8.0.1",
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"editorconfig-checker": "4.0.2",
|
"editorconfig-checker": "5.0.1",
|
||||||
"eslint": "8.31.0",
|
"eslint": "8.37.0",
|
||||||
"eslint-config-conventions": "6.0.0",
|
"eslint-config-conventions": "8.0.0",
|
||||||
"eslint-config-prettier": "8.6.0",
|
"eslint-config-prettier": "8.8.0",
|
||||||
"eslint-plugin-import": "2.26.0",
|
"eslint-plugin-import": "2.27.5",
|
||||||
"eslint-plugin-prettier": "4.2.1",
|
"eslint-plugin-prettier": "4.2.1",
|
||||||
"eslint-plugin-promise": "6.1.1",
|
"eslint-plugin-promise": "6.1.1",
|
||||||
"eslint-plugin-unicorn": "45.0.2",
|
"eslint-plugin-unicorn": "46.0.0",
|
||||||
"husky": "8.0.3",
|
"husky": "8.0.3",
|
||||||
"lint-staged": "13.1.0",
|
"lint-staged": "13.2.0",
|
||||||
"markdownlint-cli2": "0.6.0",
|
"markdownlint-cli2": "0.6.0",
|
||||||
"markdownlint-rule-relative-links": "1.1.1",
|
"markdownlint-rule-relative-links": "1.1.2",
|
||||||
"nodemon": "2.0.20",
|
"nodemon": "2.0.22",
|
||||||
"plop": "3.1.1",
|
"plop": "3.1.2",
|
||||||
"prettier": "2.8.2",
|
"prettier": "2.8.7",
|
||||||
"prisma": "4.8.1",
|
"prisma": "4.12.0",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "4.4.1",
|
||||||
"semantic-release": "19.0.5",
|
"semantic-release": "21.0.1",
|
||||||
"sinon": "15.0.1",
|
"sinon": "15.0.3",
|
||||||
"tap": "16.3.3",
|
"tap": "16.3.4",
|
||||||
"typescript": "4.9.4"
|
"typescript": "5.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { application } from './application.js'
|
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({
|
const address = await application.listen({
|
||||||
port: PORT,
|
port: PORT,
|
||||||
|
@ -7,6 +7,10 @@
|
|||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"outDir": "./build",
|
"outDir": "./build",
|
||||||
"rootDir": "./src",
|
"rootDir": "./src",
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"#src/*": ["./src/*"]
|
||||||
|
},
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"exactOptionalPropertyTypes": false,
|
"exactOptionalPropertyTypes": false,
|
||||||
"checkJs": false
|
"checkJs": false
|
||||||
|
Reference in New Issue
Block a user