build(deps): update latest
This commit is contained in:
parent
9109842248
commit
262c1d76c2
5132
package-lock.json
generated
5132
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
48
package.json
48
package.json
@ -27,48 +27,48 @@
|
|||||||
"postinstall": "husky install"
|
"postinstall": "husky install"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sinclair/typebox": "0.23.4",
|
"@sinclair/typebox": "0.23.5",
|
||||||
"dotenv": "16.0.0",
|
"dotenv": "16.0.1",
|
||||||
"fastify": "3.28.0",
|
"fastify": "4.2.0",
|
||||||
"fastify-cors": "6.0.3",
|
"@fastify/cors": "8.0.0",
|
||||||
"fastify-helmet": "7.0.1",
|
"@fastify/helmet": "9.1.0",
|
||||||
"fastify-multipart": "5.3.1",
|
"@fastify/multipart": "7.1.0",
|
||||||
"fastify-plugin": "3.0.1",
|
"fastify-plugin": "3.0.1",
|
||||||
"fastify-rate-limit": "5.8.0",
|
"@fastify/rate-limit": "7.0.0",
|
||||||
"fastify-sensible": "3.1.2",
|
"@fastify/sensible": "5.1.0",
|
||||||
"fastify-static": "4.6.1",
|
"@fastify/static": "6.4.0",
|
||||||
"fastify-swagger": "5.1.0",
|
"@fastify/swagger": "7.4.0",
|
||||||
"http-errors": "2.0.0",
|
"http-errors": "2.0.0",
|
||||||
"read-pkg": "7.1.0"
|
"read-pkg": "7.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "16.2.3",
|
"@commitlint/cli": "17.0.3",
|
||||||
"@commitlint/config-conventional": "16.2.1",
|
"@commitlint/config-conventional": "17.0.3",
|
||||||
"@saithodev/semantic-release-backmerge": "2.1.2",
|
"@saithodev/semantic-release-backmerge": "2.1.2",
|
||||||
"@semantic-release/git": "10.0.1",
|
"@semantic-release/git": "10.0.1",
|
||||||
"@swc/cli": "0.1.57",
|
"@swc/cli": "0.1.57",
|
||||||
"@swc/core": "1.2.164",
|
"@swc/core": "1.2.207",
|
||||||
"@types/busboy": "1.5.0",
|
"@types/busboy": "1.5.0",
|
||||||
"@types/http-errors": "1.8.2",
|
"@types/http-errors": "1.8.2",
|
||||||
"@types/node": "17.0.23",
|
"@types/node": "18.0.0",
|
||||||
"@typescript-eslint/eslint-plugin": "5.18.0",
|
"@typescript-eslint/eslint-plugin": "5.30.0",
|
||||||
"concurrently": "7.1.0",
|
"concurrently": "7.2.2",
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"editorconfig-checker": "4.0.2",
|
"editorconfig-checker": "4.0.2",
|
||||||
"eslint": "8.12.0",
|
"eslint": "8.18.0",
|
||||||
"eslint-config-conventions": "2.0.0",
|
"eslint-config-conventions": "2.0.0",
|
||||||
"eslint-config-prettier": "8.5.0",
|
"eslint-config-prettier": "8.5.0",
|
||||||
"eslint-plugin-import": "2.26.0",
|
"eslint-plugin-import": "2.26.0",
|
||||||
"eslint-plugin-prettier": "4.0.0",
|
"eslint-plugin-prettier": "4.1.0",
|
||||||
"eslint-plugin-promise": "6.0.0",
|
"eslint-plugin-promise": "6.0.0",
|
||||||
"eslint-plugin-unicorn": "42.0.0",
|
"eslint-plugin-unicorn": "42.0.0",
|
||||||
"husky": "7.0.4",
|
"husky": "8.0.1",
|
||||||
"lint-staged": "12.3.7",
|
"lint-staged": "13.0.3",
|
||||||
"markdownlint-cli": "0.31.1",
|
"markdownlint-cli": "0.31.1",
|
||||||
"nodemon": "2.0.15",
|
"nodemon": "2.0.18",
|
||||||
"prettier": "2.6.2",
|
"prettier": "2.7.1",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"semantic-release": "19.0.2",
|
"semantic-release": "19.0.3",
|
||||||
"typescript": "4.6.3"
|
"typescript": "4.7.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,12 @@ import { fileURLToPath } from 'node:url'
|
|||||||
|
|
||||||
import dotenv from 'dotenv'
|
import dotenv from 'dotenv'
|
||||||
import fastify from 'fastify'
|
import fastify from 'fastify'
|
||||||
import fastifyCors from 'fastify-cors'
|
import fastifyCors from '@fastify/cors'
|
||||||
import fastifySwagger from 'fastify-swagger'
|
import fastifySwagger from '@fastify/swagger'
|
||||||
import fastifyHelmet from 'fastify-helmet'
|
import fastifyHelmet from '@fastify/helmet'
|
||||||
import fastifyRateLimit from 'fastify-rate-limit'
|
import fastifyRateLimit from '@fastify/rate-limit'
|
||||||
import fastifySensible from 'fastify-sensible'
|
import fastifySensible from '@fastify/sensible'
|
||||||
import fastifyStatic from 'fastify-static'
|
import fastifyStatic from '@fastify/static'
|
||||||
|
|
||||||
import { services } from './services/index.js'
|
import { services } from './services/index.js'
|
||||||
import { swaggerOptions } from './tools/configurations/swaggerOptions.js'
|
import { swaggerOptions } from './tools/configurations/swaggerOptions.js'
|
||||||
@ -18,7 +18,11 @@ export const application = fastify({
|
|||||||
logger: process.env.NODE_ENV === 'development',
|
logger: process.env.NODE_ENV === 'development',
|
||||||
ajv: {
|
ajv: {
|
||||||
customOptions: {
|
customOptions: {
|
||||||
format: 'full'
|
strict: 'log',
|
||||||
|
keywords: ['kind', 'modifier'],
|
||||||
|
formats: {
|
||||||
|
full: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Type } from '@sinclair/typebox'
|
import { Type } from '@sinclair/typebox'
|
||||||
import { FastifyPluginAsync, FastifySchema } from 'fastify'
|
import { FastifyPluginAsync, FastifySchema } from 'fastify'
|
||||||
import fastifyMultipart from 'fastify-multipart'
|
import fastifyMultipart from '@fastify/multipart'
|
||||||
|
|
||||||
import { fastifyErrors } from '../../../models/utils.js'
|
import { fastifyErrors } from '../../../models/utils.js'
|
||||||
import { uploadFile } from '../../../tools/utils/uploadFile.js'
|
import { uploadFile } from '../../../tools/utils/uploadFile.js'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Type } from '@sinclair/typebox'
|
import { Type } from '@sinclair/typebox'
|
||||||
import { FastifyPluginAsync, FastifySchema } from 'fastify'
|
import { FastifyPluginAsync, FastifySchema } from 'fastify'
|
||||||
import fastifyMultipart from 'fastify-multipart'
|
import fastifyMultipart from '@fastify/multipart'
|
||||||
|
|
||||||
import { fastifyErrors } from '../../../models/utils.js'
|
import { fastifyErrors } from '../../../models/utils.js'
|
||||||
import { uploadFile } from '../../../tools/utils/uploadFile.js'
|
import { uploadFile } from '../../../tools/utils/uploadFile.js'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Type } from '@sinclair/typebox'
|
import { Type } from '@sinclair/typebox'
|
||||||
import { FastifyPluginAsync, FastifySchema } from 'fastify'
|
import { FastifyPluginAsync, FastifySchema } from 'fastify'
|
||||||
import fastifyMultipart from 'fastify-multipart'
|
import fastifyMultipart from '@fastify/multipart'
|
||||||
|
|
||||||
import { fastifyErrors } from '../../../models/utils.js'
|
import { fastifyErrors } from '../../../models/utils.js'
|
||||||
import { uploadFile } from '../../../tools/utils/uploadFile.js'
|
import { uploadFile } from '../../../tools/utils/uploadFile.js'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import dotenv from 'dotenv'
|
import dotenv from 'dotenv'
|
||||||
import { readPackage } from 'read-pkg'
|
import { readPackage } from 'read-pkg'
|
||||||
import { FastifyDynamicSwaggerOptions } from 'fastify-swagger'
|
import { FastifyDynamicSwaggerOptions } from '@fastify/swagger'
|
||||||
|
|
||||||
dotenv.config()
|
dotenv.config()
|
||||||
|
|
||||||
|
@ -25,5 +25,5 @@ export default fastifyPlugin(
|
|||||||
request.apiKey = apiKey
|
request.apiKey = apiKey
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
{ fastify: '3.x' }
|
{ fastify: '4.x' }
|
||||||
)
|
)
|
||||||
|
@ -3,7 +3,7 @@ import { URL } from 'node:url'
|
|||||||
import { randomUUID } from 'node:crypto'
|
import { randomUUID } from 'node:crypto'
|
||||||
|
|
||||||
import { FastifyInstance, FastifyRequest } from 'fastify'
|
import { FastifyInstance, FastifyRequest } from 'fastify'
|
||||||
import { Multipart } from 'fastify-multipart'
|
import { Multipart } from '@fastify/multipart'
|
||||||
|
|
||||||
import { API_URL, ROOT_URL } from '../configurations/index.js'
|
import { API_URL, ROOT_URL } from '../configurations/index.js'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user