📈 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
replace googleapis with google-auth-library and @googleapis/searchconsole
Blue Mouse596d7902b55b
diff --git a/backend/apps/cloud/src/auth/auth.service.ts b/backend/apps/cloud/src/auth/auth.service.tsindex 2a431ac3e..3aeffdd13 100644--- a/backend/apps/cloud/src/auth/auth.service.ts+++ b/backend/apps/cloud/src/auth/auth.service.ts@@ -10,7 +10,7 @@ import { JwtService } from '@nestjs/jwt'import axios from 'axios'import { genSalt, hash, compare } from 'bcrypt'import { getCountry } from 'countries-and-timezones'-import { Auth } from 'googleapis'+import { OAuth2Client } from 'google-auth-library'import dayjs from 'dayjs'import { UAParser } from '@ua-parser-js/pro-business'import _pick from 'lodash/pick'@@ -70,7 +70,7 @@ const { GITHUB_OAUTH2_CLIENT_SECRET } = process.env@Injectable()export class AuthService {- oauth2Client: Auth.OAuth2Client+ oauth2Client: OAuth2ClientgithubOAuthClientID: string@@ -85,7 +85,7 @@ export class AuthService {private readonly projectService: ProjectService,private readonly telegramService: TelegramService,) {- this.oauth2Client = new Auth.OAuth2Client(+ this.oauth2Client = new OAuth2Client(this.configService.get('GOOGLE_OAUTH2_CLIENT_ID'),this.configService.get('GOOGLE_OAUTH2_CLIENT_SECRET'),)diff --git a/backend/apps/cloud/src/project/gsc.service.ts b/backend/apps/cloud/src/project/gsc.service.tsindex 2cf3111ff..a1e8432a6 100644--- a/backend/apps/cloud/src/project/gsc.service.ts+++ b/backend/apps/cloud/src/project/gsc.service.ts@@ -6,7 +6,9 @@ import {InternalServerErrorException,} from '@nestjs/common'import { ConfigService } from '@nestjs/config'-import { google } from 'googleapis'+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'@@ -48,7 +50,7 @@ export class GSCService {)}- return new google.auth.OAuth2(clientId, clientSecret, GSC_REDIRECT_URL)+ return new OAuth2Client(clientId, clientSecret, GSC_REDIRECT_URL)}async generateConnectURL(uid: string, pid: string): Promise<{ url: string }> {@@ -96,9 +98,15 @@ export class GSCService {let accountEmail: string | null = nulltry {- const oauth2 = google.oauth2({ version: 'v2', auth: oauth2Client })- const { data } = await oauth2.userinfo.get({})- accountEmail = (data as any)?.email || null+ const { data } = await axios.get(+ 'https://www.googleapis.com/oauth2/v2/userinfo',+ {+ headers: {+ Authorization: `Bearer ${tokens.access_token}`,+ },+ },+ )+ accountEmail = data?.email || null} catch {//}@@ -234,7 +242,7 @@ export class GSCService {pid: string,): Promise<{ siteUrl: string; permissionLevel?: string }[]> {const auth = await this.getAuthedClientForPid(pid)- const sc = google.searchconsole({ version: 'v1', auth })+ const sc = searchconsole({ version: 'v1', auth })try {const { data } = await sc.sites.list({})// @ts-ignore@@ -283,7 +291,7 @@ export class GSCService {}const auth = await this.getAuthedClientForPid(pid)- const sc = google.searchconsole({ version: 'v1', auth })+ const sc = searchconsole({ version: 'v1', auth })// Dates must be YYYY-MM-DDconst startDate = dayjs(from).format('YYYY-MM-DD')diff --git a/backend/package-lock.json b/backend/package-lock.jsonindex 60d508585..f314dfadb 100644--- a/backend/package-lock.json+++ b/backend/package-lock.json@@ -9,6 +9,7 @@"@ai-sdk/openai": "^1.3.22","@clickhouse/client": "^1.14.0","@faker-js/faker": "^10.1.0",+ "@googleapis/searchconsole": "^1.0.3","@nestjs-modules/mailer": "^2.0.2","@nestjs/axios": "^4.0.1","@nestjs/common": "^11.1.9",@@ -44,7 +45,7 @@"dotenv": "^17.2.3","express": "^5.1.0","front-matter": "^4.0.2",- "googleapis": "^166.0.0",+ "google-auth-library": "^9.15.1","handlebars": "^4.7.8","ioredis": "^5.8.2","ip-range-check": "^0.2.0",@@ -1532,6 +1533,86 @@"npm": ">=10"}},+ "node_modules/@googleapis/searchconsole": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/@googleapis/searchconsole/-/searchconsole-1.0.5.tgz",+ "integrity": "sha512-Pr8MUK9fd7vFRZsE1q6CUDkARHwoojRJyTkBEWHlzt6xobUBYTC5u1vvwOe7SIW+tfobNJzJV1qRD5MT0RHnDA==",+ "license": "Apache-2.0",+ "dependencies": {+ "googleapis-common": "^7.0.0"+ },+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/@googleapis/searchconsole/node_modules/agent-base": {+ "version": "7.1.4",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/@googleapis/searchconsole/node_modules/gaxios": {+ "version": "6.7.1",+ "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz",+ "integrity": "sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "extend": "^3.0.2",+ "https-proxy-agent": "^7.0.1",+ "is-stream": "^2.0.0",+ "node-fetch": "^2.6.9",+ "uuid": "^9.0.1"+ },+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@googleapis/searchconsole/node_modules/googleapis-common": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/googleapis-common/-/googleapis-common-7.2.0.tgz",+ "integrity": "sha512-/fhDZEJZvOV3X5jmD+fKxMqma5q2Q9nZNSF3kn1F18tpxmA86BcTxAGBQdM0N89Z3bEaIs+HVznSmFJEAmMTjA==",+ "license": "Apache-2.0",+ "dependencies": {+ "extend": "^3.0.2",+ "gaxios": "^6.0.3",+ "google-auth-library": "^9.7.0",+ "qs": "^6.7.0",+ "url-template": "^2.0.8",+ "uuid": "^9.0.0"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@googleapis/searchconsole/node_modules/https-proxy-agent": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.2",+ "debug": "4"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/@googleapis/searchconsole/node_modules/uuid": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",+ "funding": [+ "https://github.com/sponsors/broofa",+ "https://github.com/sponsors/ctavan"+ ],+ "license": "MIT",+ "bin": {+ "uuid": "dist/bin/uuid"+ }+ },"node_modules/@humanfs/core": {"version": "0.19.1","resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",@@ -8680,29 +8761,6 @@}}},- "node_modules/fetch-blob": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",- "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==",- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/jimmywarting"- },- {- "type": "paypal",- "url": "https://paypal.me/jimmywarting"- }- ],- "license": "MIT",- "dependencies": {- "node-domexception": "^1.0.0",- "web-streams-polyfill": "^3.0.3"- },- "engines": {- "node": "^12.20 || >= 14.13"- }- },"node_modules/fflate": {"version": "0.8.2","resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz",@@ -9013,18 +9071,6 @@"node": ">=18.3.0"}},- "node_modules/formdata-polyfill": {- "version": "4.0.10",- "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",- "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==",- "license": "MIT",- "dependencies": {- "fetch-blob": "^3.1.2"- },- "engines": {- "node": ">=12.20.0"- }- },"node_modules/forwarded": {"version": "0.2.0","resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",@@ -9131,21 +9177,21 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/gaxios": {- "version": "7.1.2",- "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.2.tgz",- "integrity": "sha512-/Szrn8nr+2TsQT1Gp8iIe/BEytJmbyfrbFh419DfGQSkEgNEhbPi7JRJuughjkTzPWgU9gBQf5AVu3DbHt0OXA==",+ "node_modules/gcp-metadata": {+ "version": "6.1.1",+ "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.1.1.tgz",+ "integrity": "sha512-a4tiq7E0/5fTjxPAaH4jpjkSv/uCaU2p5KC6HVGrvl0cDjA8iBZv4vv1gyzlmK0ZUKqwpOyQMKzZQe3lTit77A==","license": "Apache-2.0","dependencies": {- "extend": "^3.0.2",- "https-proxy-agent": "^7.0.1",- "node-fetch": "^3.3.2"+ "gaxios": "^6.1.1",+ "google-logging-utils": "^0.0.2",+ "json-bigint": "^1.0.0"},"engines": {- "node": ">=18"+ "node": ">=14"}},- "node_modules/gaxios/node_modules/agent-base": {+ "node_modules/gcp-metadata/node_modules/agent-base": {"version": "7.1.4","resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz","integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",@@ -9154,16 +9200,23 @@"node": ">= 14"}},- "node_modules/gaxios/node_modules/data-uri-to-buffer": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",- "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==",- "license": "MIT",+ "node_modules/gcp-metadata/node_modules/gaxios": {+ "version": "6.7.1",+ "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz",+ "integrity": "sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "extend": "^3.0.2",+ "https-proxy-agent": "^7.0.1",+ "is-stream": "^2.0.0",+ "node-fetch": "^2.6.9",+ "uuid": "^9.0.1"+ },"engines": {- "node": ">= 12"+ "node": ">=14"}},- "node_modules/gaxios/node_modules/https-proxy-agent": {+ "node_modules/gcp-metadata/node_modules/https-proxy-agent": {"version": "7.0.6","resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz","integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",@@ -9176,36 +9229,17 @@"node": ">= 14"}},- "node_modules/gaxios/node_modules/node-fetch": {- "version": "3.3.2",- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",- "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",+ "node_modules/gcp-metadata/node_modules/uuid": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",+ "funding": [+ "https://github.com/sponsors/broofa",+ "https://github.com/sponsors/ctavan"+ ],"license": "MIT",- "dependencies": {- "data-uri-to-buffer": "^4.0.0",- "fetch-blob": "^3.1.4",- "formdata-polyfill": "^4.0.10"- },- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/node-fetch"- }- },- "node_modules/gcp-metadata": {- "version": "7.0.1",- "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-7.0.1.tgz",- "integrity": "sha512-UcO3kefx6dCcZkgcTGgVOTFb7b1LlQ02hY1omMjjrrBzkajRMCFgYOjs7J71WqnuG1k2b+9ppGL7FsOfhZMQKQ==",- "license": "Apache-2.0",- "dependencies": {- "gaxios": "^7.0.0",- "google-logging-utils": "^1.0.0",- "json-bigint": "^1.0.0"- },- "engines": {- "node": ">=18"+ "bin": {+ "uuid": "dist/bin/uuid"}},"node_modules/generate-function": {@@ -9361,59 +9395,80 @@}},"node_modules/google-auth-library": {- "version": "10.3.0",- "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.3.0.tgz",- "integrity": "sha512-ylSE3RlCRZfZB56PFJSfUCuiuPq83Fx8hqu1KPWGK8FVdSaxlp/qkeMMX/DT/18xkwXIHvXEXkZsljRwfrdEfQ==",+ "version": "9.15.1",+ "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.15.1.tgz",+ "integrity": "sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng==","license": "Apache-2.0","dependencies": {"base64-js": "^1.3.0","ecdsa-sig-formatter": "^1.0.11",- "gaxios": "^7.0.0",- "gcp-metadata": "^7.0.0",- "google-logging-utils": "^1.0.0",- "gtoken": "^8.0.0",+ "gaxios": "^6.1.1",+ "gcp-metadata": "^6.1.0",+ "gtoken": "^7.0.0","jws": "^4.0.0"},"engines": {- "node": ">=18"+ "node": ">=14"}},- "node_modules/google-logging-utils": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.1.tgz",- "integrity": "sha512-rcX58I7nqpu4mbKztFeOAObbomBbHU2oIb/d3tJfF3dizGSApqtSwYJigGCooHdnMyQBIw8BrWyK96w3YXgr6A==",- "license": "Apache-2.0",+ "node_modules/google-auth-library/node_modules/agent-base": {+ "version": "7.1.4",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",+ "license": "MIT","engines": {- "node": ">=14"+ "node": ">= 14"}},- "node_modules/googleapis": {- "version": "166.0.0",- "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-166.0.0.tgz",- "integrity": "sha512-Xz7yG+ihVvYMwSULKIMeTp6vDX95rrSbsaR3xUmgYjwQdAkchMQ5ndFeG5QZwcBOIyvJFvG7ZLIZE7mKW2X/hw==",+ "node_modules/google-auth-library/node_modules/gaxios": {+ "version": "6.7.1",+ "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz",+ "integrity": "sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==","license": "Apache-2.0","dependencies": {- "google-auth-library": "^10.2.0",- "googleapis-common": "^8.0.0"+ "extend": "^3.0.2",+ "https-proxy-agent": "^7.0.1",+ "is-stream": "^2.0.0",+ "node-fetch": "^2.6.9",+ "uuid": "^9.0.1"},"engines": {- "node": ">=18"+ "node": ">=14"}},- "node_modules/googleapis-common": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/googleapis-common/-/googleapis-common-8.0.0.tgz",- "integrity": "sha512-66if47It7y+Sab3HMkwEXx1kCq9qUC9px8ZXoj1CMrmLmUw81GpbnsNlXnlyZyGbGPGcj+tDD9XsZ23m7GLaJQ==",- "license": "Apache-2.0",+ "node_modules/google-auth-library/node_modules/https-proxy-agent": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "license": "MIT","dependencies": {- "extend": "^3.0.2",- "gaxios": "^7.0.0-rc.4",- "google-auth-library": "^10.1.0",- "qs": "^6.7.0",- "url-template": "^2.0.8"+ "agent-base": "^7.1.2",+ "debug": "4"},"engines": {- "node": ">=18.0.0"+ "node": ">= 14"+ }+ },+ "node_modules/google-auth-library/node_modules/uuid": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",+ "funding": [+ "https://github.com/sponsors/broofa",+ "https://github.com/sponsors/ctavan"+ ],+ "license": "MIT",+ "bin": {+ "uuid": "dist/bin/uuid"+ }+ },+ "node_modules/google-logging-utils": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-0.0.2.tgz",+ "integrity": "sha512-NEgUnEcBiP5HrPzufUkBzJOD/Sxsco3rLNo1F1TNf7ieU8ryUzBhqba8r756CjLX7rn3fHl6iLEwPYuqpoKgQQ==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=14"}},"node_modules/gopd": {@@ -9443,16 +9498,67 @@"license": "MIT"},"node_modules/gtoken": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-8.0.0.tgz",- "integrity": "sha512-+CqsMbHPiSTdtSO14O51eMNlrp9N79gmeqmXeouJOhfucAedHw9noVe/n5uJk3tbKE6a+6ZCQg3RPhVhHByAIw==",+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-7.1.0.tgz",+ "integrity": "sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==","license": "MIT","dependencies": {- "gaxios": "^7.0.0",+ "gaxios": "^6.0.0","jws": "^4.0.0"},"engines": {- "node": ">=18"+ "node": ">=14.0.0"+ }+ },+ "node_modules/gtoken/node_modules/agent-base": {+ "version": "7.1.4",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/gtoken/node_modules/gaxios": {+ "version": "6.7.1",+ "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz",+ "integrity": "sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "extend": "^3.0.2",+ "https-proxy-agent": "^7.0.1",+ "is-stream": "^2.0.0",+ "node-fetch": "^2.6.9",+ "uuid": "^9.0.1"+ },+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/gtoken/node_modules/https-proxy-agent": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.2",+ "debug": "4"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/gtoken/node_modules/uuid": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",+ "funding": [+ "https://github.com/sponsors/broofa",+ "https://github.com/sponsors/ctavan"+ ],+ "license": "MIT",+ "bin": {+ "uuid": "dist/bin/uuid"}},"node_modules/handlebars": {@@ -10011,6 +10117,18 @@],"license": "MIT"},+ "node_modules/is-stream": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",+ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/is-typed-array": {"version": "1.1.15","resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz",@@ -10532,12 +10650,12 @@}},"node_modules/jws": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz",- "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==",+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz",+ "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==","license": "MIT","dependencies": {- "jwa": "^2.0.0",+ "jwa": "^2.0.1","safe-buffer": "^5.0.1"}},@@ -12154,26 +12272,6 @@"node": "^18 || ^20 || >= 21"}},- "node_modules/node-domexception": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",- "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",- "deprecated": "Use your platform's native DOMException instead",- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/jimmywarting"- },- {- "type": "github",- "url": "https://paypal.me/jimmywarting"- }- ],- "license": "MIT",- "engines": {- "node": ">=10.5.0"- }- },"node_modules/node-emoji": {"version": "1.11.0","resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz",@@ -15827,15 +15925,6 @@"url": "https://github.com/fb55/htmlparser2?sponsor=1"}},- "node_modules/web-streams-polyfill": {- "version": "3.3.3",- "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",- "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==",- "license": "MIT",- "engines": {- "node": ">= 8"- }- },"node_modules/webdriver-bidi-protocol": {"version": "0.3.9","resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.3.9.tgz",diff --git a/backend/package.json b/backend/package.jsonindex b539dee11..2799e21aa 100644--- a/backend/package.json+++ b/backend/package.json@@ -64,7 +64,8 @@"dotenv": "^17.2.3","express": "^5.1.0","front-matter": "^4.0.2",- "googleapis": "^166.0.0",+ "@googleapis/searchconsole": "^1.0.3",+ "google-auth-library": "^9.15.1","handlebars": "^4.7.8","ioredis": "^5.8.2","ip-range-check": "^0.2.0",