chore: Upgrades vulnerable dependecies.

This commit is contained in:
towfiqi 2024-11-14 18:28:43 +06:00
parent 3690e97fe7
commit a2edabbdf9
3 changed files with 1698 additions and 943 deletions

View File

@ -1,22 +1,26 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { rest } from 'msw'; import { http } from 'msw';
import * as React from 'react'; import * as React from 'react';
import { QueryClient, QueryClientProvider } from 'react-query'; import { QueryClient, QueryClientProvider } from 'react-query';
export const handlers = [ export const handlers = [
rest.get( http.get(
'*/react-query', '*/react-query',
(req, res, ctx) => { ({ request, params }) => {
return res( return new Response(
ctx.status(200), JSON.stringify({
ctx.json({
name: 'mocked-react-query', name: 'mocked-react-query',
}), }),
{
status: 200,
headers: {
'Content-Type': 'application/json',
},
},
); );
}, },
), ),
]; ];
const createTestQueryClient = () => new QueryClient({ const createTestQueryClient = () => new QueryClient({
defaultOptions: { defaultOptions: {
queries: { queries: {

2605
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -21,7 +21,7 @@
"@googleapis/searchconsole": "^1.0.0", "@googleapis/searchconsole": "^1.0.0",
"@isaacs/ttlcache": "^1.4.1", "@isaacs/ttlcache": "^1.4.1",
"@types/react-transition-group": "^4.4.5", "@types/react-transition-group": "^4.4.5",
"axios": "^1.1.3", "axios": "^1.7.7",
"axios-retry": "^3.3.1", "axios-retry": "^3.3.1",
"chart.js": "^3.9.1", "chart.js": "^3.9.1",
"cheerio": "^1.0.0", "cheerio": "^1.0.0",
@ -35,7 +35,6 @@
"https-proxy-agent": "^5.0.1", "https-proxy-agent": "^5.0.1",
"isomorphic-fetch": "^3.0.0", "isomorphic-fetch": "^3.0.0",
"jsonwebtoken": "^9.0.2", "jsonwebtoken": "^9.0.2",
"msw": "^0.49.0",
"next": "^12.3.4", "next": "^12.3.4",
"nodemailer": "^6.9.9", "nodemailer": "^6.9.9",
"react": "18.2.0", "react": "18.2.0",
@ -50,11 +49,11 @@
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"sequelize": "^6.34.0", "sequelize": "^6.34.0",
"sequelize-typescript": "^2.1.6", "sequelize-typescript": "^2.1.6",
"sqlite3": "^5.1.6", "sqlite3": "^5.1.7",
"umzug": "^3.6.1" "umzug": "^3.8.2"
}, },
"devDependencies": { "devDependencies": {
"@testing-library/jest-dom": "^6.1.4", "@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^14.0.0", "@testing-library/react": "^14.0.0",
"@types/cookies": "^0.7.7", "@types/cookies": "^0.7.7",
"@types/cryptr": "^4.0.1", "@types/cryptr": "^4.0.1",
@ -74,15 +73,16 @@
"jest": "^29.7.0", "jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0", "jest-environment-jsdom": "^29.7.0",
"jest-fetch-mock": "^3.0.3", "jest-fetch-mock": "^3.0.3",
"msw": "^2.6.4",
"next-router-mock": "^0.9.10", "next-router-mock": "^0.9.10",
"postcss": "^8.4.31", "postcss": "^8.4.49",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"resize-observer-polyfill": "^1.5.1", "resize-observer-polyfill": "^1.5.1",
"sass": "^1.55.0", "sass": "^1.80.7",
"sequelize-cli": "^6.6.2", "sequelize-cli": "^6.6.2",
"standard-version": "^9.5.0", "standard-version": "^9.5.0",
"stylelint-config-standard": "^29.0.0", "stylelint-config-standard": "^29.0.0",
"tailwindcss": "^3.1.8", "tailwindcss": "^3.4.14",
"typescript": "4.8.4" "typescript": "^4.8.4"
} }
} }