📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Migrate from axios to native node fetch
Blue Moused74e0094a75d
diff --git a/backend/apps/cloud/src/auth/auth.service.ts b/backend/apps/cloud/src/auth/auth.service.tsindex 04b51e6a8..e11a834d3 100644--- a/backend/apps/cloud/src/auth/auth.service.ts+++ b/backend/apps/cloud/src/auth/auth.service.ts@@ -9,7 +9,7 @@ import {} from '@nestjs/common'import { ConfigService } from '@nestjs/config'import { JwtService } from '@nestjs/jwt'-import axios from 'axios'+import { genSalt, hash, compare } from 'bcrypt'import { getCountry } from 'countries-and-timezones'import { OAuth2Client } from 'google-auth-library'@@ -116,30 +116,27 @@ export class AuthService {const lastChars = sha1Hash.slice(5)try {- const response = await axios.get(+ const response = await fetch(`https://api.pwnedpasswords.com/range/${firstFiveChars}`,{- timeout: 5000,+ signal: AbortSignal.timeout(5000),headers: {- // Helps against traffic analysis; supported by HIBP.'Add-Padding': 'true','User-Agent': 'Swetrix',},},)- if (response.status !== 200) {+ if (!response.ok) {console.error(`[ERROR][AuthService -> checkIfLeaked]: Failed to get pwned passwords for ${firstFiveChars}: ${response.status}`,)return false}- // Response lines look like: "<HASH_SUFFIX>:<COUNT>"+ const body = await response.text()const needle = `${lastChars}:`- return String(response.data)- .split('\n')- .some((line) => line.startsWith(needle))+ return body.split('\n').some((line) => line.startsWith(needle))} catch (error) {console.error(`[ERROR][AuthService -> checkIfLeaked]: ${error} (prefix ${firstFiveChars})`,@@ -980,39 +977,42 @@ export class AuthService {let tokenInfotry {- const response = await axios.post(+ const tokenRes = await fetch('https://github.com/login/oauth/access_token',{- client_id: GITHUB_OAUTH2_CLIENT_ID,- client_secret: GITHUB_OAUTH2_CLIENT_SECRET,- code,- },- {+ method: 'POST',headers: {+ 'Content-Type': 'application/json',Accept: 'application/json',},+ body: JSON.stringify({+ client_id: GITHUB_OAUTH2_CLIENT_ID,+ client_secret: GITHUB_OAUTH2_CLIENT_SECRET,+ code,+ }),},)- token = response.data.access_token+ const tokenData = await tokenRes.json()+ token = tokenData.access_token} catch (reason) {console.error(- `[ERROR][AuthService -> processGithubCode -> axios.post]: ${reason}`,+ `[ERROR][AuthService -> processGithubCode -> fetch (token)]: ${reason}`,)throw new BadRequestException('Invalid Github code supplied')}try {- const response = await axios.get('https://api.github.com/user', {+ const userRes = await fetch('https://api.github.com/user', {headers: {Authorization: `token ${token}`,},})- tokenInfo = response.data+ tokenInfo = await userRes.json()} catch (reason) {console.error(- `[ERROR][AuthService -> processGithubCode -> axios.get]: ${reason}`,+ `[ERROR][AuthService -> processGithubCode -> fetch (user)]: ${reason}`,)throw new BadRequestException('Invalid Github token')}@@ -1022,13 +1022,13 @@ export class AuthService {if (!email) {try {- const response = await axios.get('https://api.github.com/user/emails', {+ const emailsRes = await fetch('https://api.github.com/user/emails', {headers: {Authorization: `token ${token}`,},})- const emails = response.data+ const emails = await emailsRes.json()if (_isEmpty(emails)) {console.error(@@ -1040,7 +1040,7 @@ export class AuthService {email = _find(emails, (e) => e.primary).email} catch (reason) {console.error(- `[ERROR][AuthService -> processGithubCode -> axios.get (emails)]: ${reason}`,+ `[ERROR][AuthService -> processGithubCode -> fetch (emails)]: ${reason}`,)throw new BadRequestException('Invalid Github token')}diff --git a/backend/apps/cloud/src/integrations/discord/discord.module.ts b/backend/apps/cloud/src/integrations/discord/discord.module.tsindex a56fa4f82..c006a4bbf 100644--- a/backend/apps/cloud/src/integrations/discord/discord.module.ts+++ b/backend/apps/cloud/src/integrations/discord/discord.module.ts@@ -1,9 +1,7 @@-import { HttpModule } from '@nestjs/axios'import { Module } from '@nestjs/common'import { DiscordService } from './discord.service'@Module({- imports: [HttpModule],providers: [DiscordService],exports: [DiscordService],})diff --git a/backend/apps/cloud/src/integrations/discord/discord.service.ts b/backend/apps/cloud/src/integrations/discord/discord.service.tsindex 22f48c4d7..e05b94b07 100644--- a/backend/apps/cloud/src/integrations/discord/discord.service.ts+++ b/backend/apps/cloud/src/integrations/discord/discord.service.ts@@ -1,5 +1,3 @@-import { HttpService } from '@nestjs/axios'-import { firstValueFrom } from 'rxjs'import { Injectable, Logger } from '@nestjs/common'import { WebhookAbcService } from '../webhook-abc/webhook-abc.service'@@ -7,14 +5,8 @@ import { WebhookAbcService } from '../webhook-abc/webhook-abc.service'export class DiscordService extends WebhookAbcService {private readonly logger = new Logger(DiscordService.name)- constructor(private readonly httpService: HttpService) {- super()- }-async sendWebhook(webhookUrl: string, message: unknown): Promise<void> {try {- // Defense-in-depth: DTO validation should already enforce Discord webhook URL format.- // Still, validate basic URL properties here to reduce SSRF surface area.const url = new URL(webhookUrl)const host = url.hostname.toLowerCase()if (@@ -37,24 +29,27 @@ export class DiscordService extends WebhookAbcService {}}- // Discord content max length is 2000 chars; keep some buffer.if (content.length > 1900) {content = `${content.slice(0, 1900)}…`}const payload = { content }- await firstValueFrom(- this.httpService.post(webhookUrl, payload, {- timeout: 10_000,- maxRedirects: 0,- }),- )+ const res = await fetch(webhookUrl, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify(payload),+ signal: AbortSignal.timeout(10_000),+ redirect: 'error',+ })++ if (!res.ok) {+ this.logger.error(+ `Error sending Discord webhook (status ${res.status})`,+ )+ }} catch (error) {- const status = (error as any)?.response?.statusconst message = (error as any)?.message || String(error)- this.logger.error(- `Error sending Discord webhook${status ? ` (status ${status})` : ''}: ${message}`,- )+ this.logger.error(`Error sending Discord webhook: ${message}`)}}}diff --git a/backend/apps/cloud/src/integrations/slack/slack.module.ts b/backend/apps/cloud/src/integrations/slack/slack.module.tsindex 057bb7869..f4855a25b 100644--- a/backend/apps/cloud/src/integrations/slack/slack.module.ts+++ b/backend/apps/cloud/src/integrations/slack/slack.module.ts@@ -1,9 +1,7 @@import { Module } from '@nestjs/common'-import { HttpModule } from '@nestjs/axios'import { SlackService } from './slack.service'@Module({- imports: [HttpModule],providers: [SlackService],exports: [SlackService],})diff --git a/backend/apps/cloud/src/integrations/slack/slack.service.ts b/backend/apps/cloud/src/integrations/slack/slack.service.tsindex 27fe84cf2..a944c9536 100644--- a/backend/apps/cloud/src/integrations/slack/slack.service.ts+++ b/backend/apps/cloud/src/integrations/slack/slack.service.ts@@ -1,20 +1,12 @@import { Injectable, Logger } from '@nestjs/common'-import { firstValueFrom } from 'rxjs'-import { HttpService } from '@nestjs/axios'import { WebhookAbcService } from '../webhook-abc/webhook-abc.service'@Injectable()export class SlackService extends WebhookAbcService {private readonly logger = new Logger(SlackService.name)- constructor(private readonly httpService: HttpService) {- super()- }-async sendWebhook(webhookUrl: string, message: unknown): Promise<void> {try {- // Defense-in-depth: DTO validation should already enforce Slack webhook URL format.- // Still, validate basic URL properties here to reduce SSRF surface area.const url = new URL(webhookUrl)const host = url.hostname.toLowerCase()if (@@ -37,24 +29,25 @@ export class SlackService extends WebhookAbcService {}}- // Slack supports long messages, but keep a sane cap.if (text.length > 20_000) {text = `${text.slice(0, 20_000)}…`}const payload = { text }- await firstValueFrom(- this.httpService.post(webhookUrl, payload, {- timeout: 10_000,- maxRedirects: 0,- }),- )+ const res = await fetch(webhookUrl, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify(payload),+ signal: AbortSignal.timeout(10_000),+ redirect: 'error',+ })++ if (!res.ok) {+ this.logger.error(`Error sending Slack webhook (status ${res.status})`)+ }} catch (error) {- const status = (error as any)?.response?.statusconst message = (error as any)?.message || String(error)- this.logger.error(- `Error sending Slack webhook${status ? ` (status ${status})` : ''}: ${message}`,- )+ this.logger.error(`Error sending Slack webhook: ${message}`)}}}diff --git a/backend/apps/cloud/src/project/gsc.service.ts b/backend/apps/cloud/src/project/gsc.service.tsindex 14ad72654..192412842 100644--- a/backend/apps/cloud/src/project/gsc.service.ts+++ b/backend/apps/cloud/src/project/gsc.service.ts@@ -11,7 +11,7 @@ import {import { ConfigService } from '@nestjs/config'import { OAuth2Client } from 'google-auth-library'import { searchconsole } from '@googleapis/searchconsole'-import axios from 'axios'+import CryptoJS from 'crypto-js'import { isDevelopment, PRODUCTION_ORIGIN, redis } from '../common/constants'@@ -147,14 +147,12 @@ export class GSCService {let accountEmail: string | null = nulltry {- const { data } = await axios.get(- 'https://www.googleapis.com/oauth2/v2/userinfo',- {- headers: {- Authorization: `Bearer ${tokens.access_token}`,- },+ const res = await fetch('https://www.googleapis.com/oauth2/v2/userinfo', {+ headers: {+ Authorization: `Bearer ${tokens.access_token}`,},- )+ })+ const data = await res.json()accountEmail = data?.email || null} catch {//diff --git a/backend/apps/cloud/src/revenue/currency.service.ts b/backend/apps/cloud/src/revenue/currency.service.tsindex f136dd405..81cd9fd24 100644--- a/backend/apps/cloud/src/revenue/currency.service.ts+++ b/backend/apps/cloud/src/revenue/currency.service.ts@@ -1,5 +1,5 @@import { Injectable } from '@nestjs/common'-import axios from 'axios'+import { redis } from '../common/constants'import { AppLoggerService } from '../logger/logger.service'@@ -70,8 +70,9 @@ export class CurrencyService {return JSON.parse(cached)}- const response = await axios.get(this.API_URL)- const rates = response.data?.conversions+ const response = await fetch(this.API_URL)+ const json = await response.json()+ const rates = json?.conversionsif (rates) {await redis.set(diff --git a/backend/apps/cloud/src/user/user.controller.ts b/backend/apps/cloud/src/user/user.controller.tsindex d8fa34acb..8ff35dd09 100644--- a/backend/apps/cloud/src/user/user.controller.ts+++ b/backend/apps/cloud/src/user/user.controller.ts@@ -28,8 +28,6 @@ import _isString from 'lodash/isString'import _pick from 'lodash/pick'import _round from 'lodash/round'import { randomUUID } from 'crypto'-import { HttpService } from '@nestjs/axios'-import { Markup } from 'telegraf'import { Public, CurrentUserId, Auth } from '../auth/decorators'@@ -82,7 +80,6 @@ export class UserController {private readonly mailerService: MailerService,private readonly logger: AppLoggerService,private readonly telegramService: TelegramService,- private readonly httpService: HttpService,private readonly organisationService: OrganisationService,) {}diff --git a/backend/apps/cloud/src/user/user.module.ts b/backend/apps/cloud/src/user/user.module.tsindex 06363ee0b..db69ddc04 100644--- a/backend/apps/cloud/src/user/user.module.ts+++ b/backend/apps/cloud/src/user/user.module.ts@@ -1,7 +1,5 @@import { Module, forwardRef } from '@nestjs/common'import { TypeOrmModule } from '@nestjs/typeorm'-import { HttpModule } from '@nestjs/axios'-import { TelegramService } from '../integrations/telegram/telegram.service'import { UserController } from './user.controller'import { UserService } from './user.service'@@ -32,7 +30,6 @@ import { OrganisationModule } from '../organisation/organisation.module'AppLoggerModule,ProjectModule,OrganisationModule,- HttpModule,],providers: [UserService, TelegramService],exports: [UserService],diff --git a/backend/apps/cloud/src/user/user.service.ts b/backend/apps/cloud/src/user/user.service.tsindex 2d06798f8..3a7f55099 100644--- a/backend/apps/cloud/src/user/user.service.ts+++ b/backend/apps/cloud/src/user/user.service.ts@@ -13,7 +13,7 @@ import {Not,Repository,} from 'typeorm'-import axios from 'axios'+import crypto from 'crypto'import CryptoJS from 'crypto-js'import dayjs from 'dayjs'@@ -393,21 +393,23 @@ export class UserService {let preview: any = {}try {- preview = await axios.post(url, {- vendor_id: Number(PADDLE_VENDOR_ID),- vendor_auth_code: PADDLE_API_KEY,- subscription_id: Number(user.subID),- plan_id: planID,- prorate: true,- bill_immediately: true,- currency: user.tierCurrency,- keep_modifiers: false,+ const res = await fetch(url, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify({+ vendor_id: Number(PADDLE_VENDOR_ID),+ vendor_auth_code: PADDLE_API_KEY,+ subscription_id: Number(user.subID),+ plan_id: planID,+ prorate: true,+ bill_immediately: true,+ currency: user.tierCurrency,+ keep_modifiers: false,+ }),})+ preview = { data: await res.json() }} catch (error) {- console.error(- '[ERROR] (previewSubscription):',- error?.response?.data?.error?.message || error,- )+ console.error('[ERROR] (previewSubscription):', error)throw new BadRequestException('Something went wrong')}@@ -458,17 +460,20 @@ export class UserService {const url = 'https://vendors.paddle.com/api/2.0/subscription/users/cancel'try {- const result = await axios.post(url, {- vendor_id: Number(PADDLE_VENDOR_ID),- vendor_auth_code: PADDLE_API_KEY,- subscription_id: Number(subID),+ const res = await fetch(url, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify({+ vendor_id: Number(PADDLE_VENDOR_ID),+ vendor_auth_code: PADDLE_API_KEY,+ subscription_id: Number(subID),+ }),})- if (!result.data?.success) {- console.error(- '[ERROR] (cancelSubscription) success -> false:',- result.data,- )+ const data = await res.json()++ if (!data?.success) {+ console.error('[ERROR] (cancelSubscription) success -> false:', data)throw new InternalServerErrorException('Failed to cancel subscription with payment provider',)@@ -476,10 +481,7 @@ export class UserService {} catch (error) {if (error instanceof InternalServerErrorException) throw error- console.error(- '[ERROR] (cancelSubscription):',- error?.response?.data?.error?.message || error,- )+ console.error('[ERROR] (cancelSubscription):', error)throw new BadRequestException('Failed to cancel subscription. Please try again or contact support.',)@@ -514,24 +516,26 @@ export class UserService {let result: any = {}try {- result = await axios.post(url, {- vendor_id: Number(PADDLE_VENDOR_ID),- vendor_auth_code: PADDLE_API_KEY,- subscription_id: Number(user.subID),- plan_id: planID,- prorate: true,- bill_immediately: true,- currency: user.tierCurrency,- keep_modifiers: false,- passthrough: JSON.stringify({- uid: id,+ const res = await fetch(url, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify({+ vendor_id: Number(PADDLE_VENDOR_ID),+ vendor_auth_code: PADDLE_API_KEY,+ subscription_id: Number(user.subID),+ plan_id: planID,+ prorate: true,+ bill_immediately: true,+ currency: user.tierCurrency,+ keep_modifiers: false,+ passthrough: JSON.stringify({+ uid: id,+ }),}),})+ result = { data: await res.json() }} catch (error) {- console.error(- '[ERROR] (updateSubscription):',- error?.response?.data?.error?.message || error,- )+ console.error('[ERROR] (updateSubscription):', error)throw new BadRequestException('Something went wrong')}@@ -573,24 +577,26 @@ export class UserService {try {const isTrial = !user.trialEndDate- result = await axios.post(url, {- vendor_id: Number(PADDLE_VENDOR_ID),- vendor_auth_code: PADDLE_API_KEY,- product_id: productId,- customer_email: user.email,- passthrough: JSON.stringify({ uid: id }),- ...(isTrial- ? {- trial_days: TRIAL_DURATION,- prices: ['USD:0', 'EUR:0', 'GBP:0'],- }- : {}),+ const res = await fetch(url, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify({+ vendor_id: Number(PADDLE_VENDOR_ID),+ vendor_auth_code: PADDLE_API_KEY,+ product_id: productId,+ customer_email: user.email,+ passthrough: JSON.stringify({ uid: id }),+ ...(isTrial+ ? {+ trial_days: TRIAL_DURATION,+ prices: ['USD:0', 'EUR:0', 'GBP:0'],+ }+ : {}),+ }),})+ result = { data: await res.json() }} catch (error) {- console.error(- '[ERROR] (generatePayLink):',- error?.response?.data?.error?.message || error,- )+ console.error('[ERROR] (generatePayLink):', error)throw new BadRequestException('Something went wrong')}diff --git a/backend/apps/community/src/auth/auth.service.ts b/backend/apps/community/src/auth/auth.service.tsindex 7dc6123e6..e2b338248 100644--- a/backend/apps/community/src/auth/auth.service.ts+++ b/backend/apps/community/src/auth/auth.service.ts@@ -8,7 +8,7 @@ import {import { ConfigService } from '@nestjs/config'import { JwtService } from '@nestjs/jwt'import { genSalt, hash, compare } from 'bcrypt'-import axios from 'axios'+import _isEmpty from 'lodash/isEmpty'import { decode, JwtPayload, verify } from 'jsonwebtoken'import jwksClient from 'jwks-rsa'@@ -62,18 +62,19 @@ export class AuthService {const firstFiveChars = sha1Hash.slice(0, 5)const lastChars = sha1Hash.slice(5)- const response = await axios.get(+ const response = await fetch(`https://api.pwnedpasswords.com/range/${firstFiveChars}`,)- if (response.status !== 200) {+ if (!response.ok) {console.error(`[ERROR][AuthService -> checkIfLeaked]: Failed to get pwned passwords for ${firstFiveChars}: ${response.status}`,)return false}- return response.data.includes(lastChars)+ const body = await response.text()+ return body.includes(lastChars)}public async hashPassword(password: string): Promise<string> {diff --git a/backend/package-lock.json b/backend/package-lock.jsonindex 93d72276e..bff73d887 100644--- a/backend/package-lock.json+++ b/backend/package-lock.json@@ -11,7 +11,6 @@"@faker-js/faker": "^10.4.0","@googleapis/searchconsole": "^6.0.1","@nestjs-modules/mailer": "^2.3.4",- "@nestjs/axios": "^4.0.1","@nestjs/bullmq": "^11.0.4","@nestjs/common": "^11.1.18","@nestjs/config": "^4.0.3",@@ -33,7 +32,6 @@"@swetrix/node": "^3.1.1","@ua-parser-js/pro-business": "^2.0.9","ai": "^6.0.153",- "axios": "^1.14.0","bcrypt": "^6.0.0","body-parser": "^2.2.2","bullmq": "^5.73.1",@@ -1515,17 +1513,6 @@"url": "https://github.com/sponsors/isaacs"}},- "node_modules/@nestjs/axios": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/@nestjs/axios/-/axios-4.0.1.tgz",- "integrity": "sha512-68pFJgu+/AZbWkGu65Z3r55bTsCPlgyKaV4BSG8yUAD72q1PPuyVRgUwFv6BxdnibTUHlyxm06FmYWNC+bjN7A==",- "license": "MIT",- "peerDependencies": {- "@nestjs/common": "^10.0.0 || ^11.0.0",- "axios": "^1.3.1",- "rxjs": "^7.0.0"- }- },"node_modules/@nestjs/bull-shared": {"version": "11.0.4","resolved": "https://registry.npmjs.org/@nestjs/bull-shared/-/bull-shared-11.0.4.tgz",@@ -5489,12 +5476,6 @@"license": "MIT","optional": true},- "node_modules/asynckit": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",- "license": "MIT"- },"node_modules/available-typed-arrays": {"version": "1.0.7","resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",@@ -5519,26 +5500,6 @@"node": ">= 6.0.0"}},- "node_modules/axios": {- "version": "1.14.0",- "resolved": "https://registry.npmjs.org/axios/-/axios-1.14.0.tgz",- "integrity": "sha512-3Y8yrqLSwjuzpXuZ0oIYZ/XGgLwUIBU3uLvbcpb0pidD9ctpShJd43KSlEEkVQg6DS0G9NKyzOvBfUtDKEyHvQ==",- "license": "MIT",- "dependencies": {- "follow-redirects": "^1.15.11",- "form-data": "^4.0.5",- "proxy-from-env": "^2.1.0"- }- },- "node_modules/axios/node_modules/proxy-from-env": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz",- "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==",- "license": "MIT",- "engines": {- "node": ">=10"- }- },"node_modules/babel-walk": {"version": "3.0.0-canary-5","resolved": "https://registry.npmjs.org/babel-walk/-/babel-walk-3.0.0-canary-5.tgz",@@ -6331,18 +6292,6 @@"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==","license": "MIT"},- "node_modules/combined-stream": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",- "license": "MIT",- "dependencies": {- "delayed-stream": "~1.0.0"- },- "engines": {- "node": ">= 0.8"- }- },"node_modules/commander": {"version": "4.1.1","resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",@@ -6876,15 +6825,6 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/delayed-stream": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",- "license": "MIT",- "engines": {- "node": ">=0.4.0"- }- },"node_modules/denque": {"version": "2.1.0","resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz",@@ -7347,21 +7287,6 @@"node": ">= 0.4"}},- "node_modules/es-set-tostringtag": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",- "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",- "license": "MIT",- "dependencies": {- "es-errors": "^1.3.0",- "get-intrinsic": "^1.2.6",- "has-tostringtag": "^1.0.2",- "hasown": "^2.0.2"- },- "engines": {- "node": ">= 0.4"- }- },"node_modules/escalade": {"version": "3.2.0","resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",@@ -7833,26 +7758,6 @@"node": ">=8"}},- "node_modules/follow-redirects": {- "version": "1.15.11",- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz",- "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",- "funding": [- {- "type": "individual",- "url": "https://github.com/sponsors/RubenVerborgh"- }- ],- "license": "MIT",- "engines": {- "node": ">=4.0"- },- "peerDependenciesMeta": {- "debug": {- "optional": true- }- }- },"node_modules/for-each": {"version": "0.3.5","resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz",@@ -7936,43 +7841,6 @@"node": "*"}},- "node_modules/form-data": {- "version": "4.0.5",- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",- "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",- "license": "MIT",- "dependencies": {- "asynckit": "^0.4.0",- "combined-stream": "^1.0.8",- "es-set-tostringtag": "^2.1.0",- "hasown": "^2.0.2",- "mime-types": "^2.1.12"- },- "engines": {- "node": ">= 6"- }- },- "node_modules/form-data/node_modules/mime-db": {- "version": "1.52.0",- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",- "license": "MIT",- "engines": {- "node": ">= 0.6"- }- },- "node_modules/form-data/node_modules/mime-types": {- "version": "2.1.35",- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",- "license": "MIT",- "dependencies": {- "mime-db": "1.52.0"- },- "engines": {- "node": ">= 0.6"- }- },"node_modules/formatly": {"version": "0.3.0","resolved": "https://registry.npmjs.org/formatly/-/formatly-0.3.0.tgz",diff --git a/backend/package.json b/backend/package.jsonindex 499cdabb5..c6258fa9b 100644--- a/backend/package.json+++ b/backend/package.json@@ -32,7 +32,7 @@"@faker-js/faker": "^10.4.0","@googleapis/searchconsole": "^6.0.1","@nestjs-modules/mailer": "^2.3.4",- "@nestjs/axios": "^4.0.1",+"@nestjs/bullmq": "^11.0.4","@nestjs/common": "^11.1.18","@nestjs/config": "^4.0.3",@@ -54,7 +54,7 @@"@swetrix/node": "^3.1.1","@ua-parser-js/pro-business": "^2.0.9","ai": "^6.0.153",- "axios": "^1.14.0",+"bcrypt": "^6.0.0","body-parser": "^2.2.2","bullmq": "^5.73.1",