From 2fba0e8d585aead43eaeb73fa49dc9b613900675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Fri, 26 Jan 2024 16:58:44 +0100 Subject: [PATCH] feat(core): Upgrade Rudderstack SDK to address CVE-2023-45857 (#8368) --- package.json | 1 + packages/@n8n/client-oauth2/package.json | 2 +- packages/cli/package.json | 4 +- packages/cli/src/config/schema.ts | 2 +- packages/cli/src/telemetry/index.ts | 35 +-- packages/core/package.json | 2 +- packages/editor-ui/package.json | 2 +- pnpm-lock.yaml | 300 +++++------------------ 8 files changed, 85 insertions(+), 263 deletions(-) diff --git a/package.json b/package.json index 61d38d4c9a..9fa3795059 100644 --- a/package.json +++ b/package.json @@ -78,6 +78,7 @@ ], "overrides": { "@types/node": "^18.16.16", + "axios": "1.6.7", "chokidar": "3.5.2", "jsonwebtoken": "9.0.0", "prettier": "^3.1.0", diff --git a/packages/@n8n/client-oauth2/package.json b/packages/@n8n/client-oauth2/package.json index b1613415fc..c6e69990ae 100644 --- a/packages/@n8n/client-oauth2/package.json +++ b/packages/@n8n/client-oauth2/package.json @@ -20,6 +20,6 @@ "dist/**/*" ], "dependencies": { - "axios": "1.6.5" + "axios": "1.6.7" } } diff --git a/packages/cli/package.json b/packages/cli/package.json index 3255c3b7ca..ea619306c0 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -99,10 +99,10 @@ "@n8n/permissions": "workspace:*", "@n8n_io/license-sdk": "2.9.1", "@oclif/core": "3.18.1", - "@rudderstack/rudder-sdk-node": "1.0.6", + "@rudderstack/rudder-sdk-node": "2.0.6", "@sentry/integrations": "7.87.0", "@sentry/node": "7.87.0", - "axios": "1.6.5", + "axios": "1.6.7", "basic-auth": "2.0.1", "bcryptjs": "2.4.3", "bull": "4.12.1", diff --git a/packages/cli/src/config/schema.ts b/packages/cli/src/config/schema.ts index 2df8eafb25..56728aecb9 100644 --- a/packages/cli/src/config/schema.ts +++ b/packages/cli/src/config/schema.ts @@ -1179,7 +1179,7 @@ export const schema = { backend: { doc: 'Diagnostics config for backend.', format: String, - default: '1zPn7YoGC3ZXE9zLeTKLuQCB4F6;https://telemetry.n8n.io/v1/batch', + default: '1zPn7YoGC3ZXE9zLeTKLuQCB4F6;https://telemetry.n8n.io', env: 'N8N_DIAGNOSTICS_CONFIG_BACKEND', }, }, diff --git a/packages/cli/src/telemetry/index.ts b/packages/cli/src/telemetry/index.ts index 373fc20150..697cd1f03b 100644 --- a/packages/cli/src/telemetry/index.ts +++ b/packages/cli/src/telemetry/index.ts @@ -1,3 +1,4 @@ +import axios from 'axios'; import type RudderStack from '@rudderstack/rudder-sdk-node'; import { PostHogClient } from '@/posthog'; import { Container, Service } from 'typedi'; @@ -40,8 +41,8 @@ export class Telemetry { constructor( private readonly logger: Logger, - private postHog: PostHogClient, - private license: License, + private readonly postHog: PostHogClient, + private readonly license: License, private readonly instanceSettings: InstanceSettings, private readonly workflowRepository: WorkflowRepository, ) {} @@ -50,9 +51,9 @@ export class Telemetry { const enabled = config.getEnv('diagnostics.enabled'); if (enabled) { const conf = config.getEnv('diagnostics.config.backend'); - const [key, url] = conf.split(';'); + const [key, dataPlaneUrl] = conf.split(';'); - if (!key || !url) { + if (!key || !dataPlaneUrl) { this.logger.warn('Diagnostics backend config is invalid'); return; } @@ -60,7 +61,17 @@ export class Telemetry { const logLevel = config.getEnv('logs.level'); const { default: RudderStack } = await import('@rudderstack/rudder-sdk-node'); - this.rudderStack = new RudderStack(key, url, { logLevel }); + const axiosInstance = axios.create(); + axiosInstance.interceptors.request.use((cfg) => { + cfg.headers.setContentType('application/json', false); + return cfg; + }); + this.rudderStack = new RudderStack(key, { + axiosInstance, + logLevel, + dataPlaneUrl, + gzip: false, + }); this.startPulse(); } @@ -154,16 +165,8 @@ export class Telemetry { async trackN8nStop(): Promise { clearInterval(this.pulseIntervalReference); - void this.track('User instance stopped'); - return await new Promise(async (resolve) => { - await this.postHog.stop(); - - if (this.rudderStack) { - this.rudderStack.flush(resolve); - } else { - resolve(); - } - }); + await this.track('User instance stopped'); + void Promise.all([this.postHog.stop(), this.rudderStack?.flush()]); } async identify(traits?: { @@ -194,7 +197,7 @@ export class Telemetry { return await new Promise((resolve) => { if (this.rudderStack) { const { user_id } = properties; - const updatedProperties: ITelemetryTrackProperties = { + const updatedProperties = { ...properties, instance_id: instanceId, version_cli: N8N_VERSION, diff --git a/packages/core/package.json b/packages/core/package.json index 2f253c8ca2..69cdc05f9a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -50,7 +50,7 @@ "dependencies": { "@n8n/client-oauth2": "workspace:*", "aws4": "1.11.0", - "axios": "1.6.5", + "axios": "1.6.7", "concat-stream": "2.0.0", "cron": "1.7.2", "fast-glob": "3.2.12", diff --git a/packages/editor-ui/package.json b/packages/editor-ui/package.json index aaa76f7da2..a556b3af40 100644 --- a/packages/editor-ui/package.json +++ b/packages/editor-ui/package.json @@ -47,7 +47,7 @@ "@n8n/permissions": "workspace:*", "@vueuse/components": "^10.5.0", "@vueuse/core": "^10.5.0", - "axios": "1.6.5", + "axios": "1.6.7", "chart.js": "^4.4.0", "codemirror-lang-html-n8n": "^1.0.0", "codemirror-lang-n8n-expression": "^0.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 34366b0f2b..8ae7586806 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,6 +9,7 @@ onlyBuiltDependencies: overrides: '@types/node': ^18.16.16 + axios: 1.6.7 chokidar: 3.5.2 jsonwebtoken: 9.0.0 prettier: ^3.1.0 @@ -170,8 +171,8 @@ importers: packages/@n8n/client-oauth2: dependencies: axios: - specifier: 1.6.5 - version: 1.6.5(debug@4.3.4) + specifier: 1.6.7 + version: 1.6.7(debug@3.2.7) packages/@n8n/nodes-langchain: dependencies: @@ -231,7 +232,7 @@ importers: version: 1.2.0 langchain: specifier: 0.0.198 - version: 0.0.198(@aws-sdk/client-bedrock-runtime@3.454.0)(@aws-sdk/credential-provider-node@3.451.0)(@getzep/zep-js@0.9.0)(@google-ai/generativelanguage@0.2.1)(@huggingface/inference@2.6.4)(@pinecone-database/pinecone@1.1.2)(@qdrant/js-client-rest@1.7.0)(@supabase/supabase-js@2.38.5)(@xata.io/client@0.25.3)(axios@1.6.5)(cohere-ai@6.2.2)(d3-dsv@2.0.0)(epub2@3.0.1)(html-to-text@9.0.5)(lodash@4.17.21)(mammoth@1.6.0)(pdf-parse@1.1.1)(pg@8.11.3)(redis@4.6.12)(typeorm@0.3.17) + version: 0.0.198(@aws-sdk/client-bedrock-runtime@3.454.0)(@aws-sdk/credential-provider-node@3.451.0)(@getzep/zep-js@0.9.0)(@google-ai/generativelanguage@0.2.1)(@huggingface/inference@2.6.4)(@pinecone-database/pinecone@1.1.2)(@qdrant/js-client-rest@1.7.0)(@supabase/supabase-js@2.38.5)(@xata.io/client@0.25.3)(axios@1.6.7)(cohere-ai@6.2.2)(d3-dsv@2.0.0)(epub2@3.0.1)(html-to-text@9.0.5)(lodash@4.17.21)(mammoth@1.6.0)(pdf-parse@1.1.1)(pg@8.11.3)(redis@4.6.12)(typeorm@0.3.17) lodash: specifier: 4.17.21 version: 4.17.21 @@ -380,8 +381,8 @@ importers: specifier: 3.18.1 version: 3.18.1 '@rudderstack/rudder-sdk-node': - specifier: 1.0.6 - version: 1.0.6 + specifier: 2.0.6 + version: 2.0.6(tslib@2.6.1) '@sentry/integrations': specifier: 7.87.0 version: 7.87.0 @@ -389,8 +390,8 @@ importers: specifier: 7.87.0 version: 7.87.0 axios: - specifier: 1.6.5 - version: 1.6.5(debug@4.3.4) + specifier: 1.6.7 + version: 1.6.7(debug@3.2.7) basic-auth: specifier: 2.0.1 version: 2.0.1 @@ -735,8 +736,8 @@ importers: specifier: 1.11.0 version: 1.11.0 axios: - specifier: 1.6.5 - version: 1.6.5(debug@4.3.4) + specifier: 1.6.7 + version: 1.6.7(debug@3.2.7) concat-stream: specifier: 2.0.0 version: 2.0.0 @@ -1040,8 +1041,8 @@ importers: specifier: ^10.5.0 version: 10.5.0(vue@3.3.4) axios: - specifier: 1.6.5 - version: 1.6.5(debug@4.3.4) + specifier: 1.6.7 + version: 1.6.7(debug@3.2.7) chart.js: specifier: ^4.4.0 version: 4.4.0 @@ -6056,8 +6057,8 @@ packages: /@mistralai/mistralai@0.0.7: resolution: {integrity: sha512-47FiV/GBnt6gug99ZfDBcBofYuYvqT5AyhUDdtktUbCN+gq52tmiAbtwc88k7hlyUWHzJ28VpHRDfNTRfaWKxA==} dependencies: - axios: 1.6.5 - axios-retry: 4.0.0(axios@1.6.5) + axios: 1.6.7 + axios-retry: 4.0.0(axios@1.6.7) transitivePeerDependencies: - debug dev: false @@ -6129,7 +6130,7 @@ packages: engines: {node: '>=18.0.0'} hasBin: true dependencies: - axios: 1.6.2(debug@4.3.4) + axios: 1.6.7(debug@4.3.4) debug: 4.3.4(supports-color@8.1.1) openurl: 1.1.1 yargs: 17.7.2 @@ -7221,26 +7222,28 @@ packages: dev: true optional: true - /@rudderstack/rudder-sdk-node@1.0.6: - resolution: {integrity: sha512-kJYCXv6fRFbQrAp3hMsgRCnAa7RUBdbiGLBT9PcpQURi0VwHmD7mk3Ja7U4HDnL0EHXYJpPyx3oSonkklmPJ9Q==} - engines: {node: '>=4'} + /@rudderstack/rudder-sdk-node@2.0.6(tslib@2.6.1): + resolution: {integrity: sha512-WTYBbFk990w/k3VFJtns04EyhQZm1rTchaweJdBWVH3Owy63JczPJ+B340VulkV+I0IzzdUmlmuhv4ler/fWSg==} + engines: {node: '>=12'} + peerDependencies: + tslib: ^2.6.1 dependencies: - '@segment/loosely-validate-event': 2.0.0 - auto-changelog: 1.16.4 - axios: 0.21.4 + axios: 1.6.7 axios-retry: 3.7.0 - bull: 3.29.3 + component-type: 1.2.1 + join-component: 1.1.0 lodash.clonedeep: 4.5.0 lodash.isstring: 4.0.1 md5: 2.3.0 ms: 2.1.3 remove-trailing-slash: 0.1.1 - serialize-javascript: 5.0.1 + serialize-javascript: 6.0.1 + tslib: 2.6.1 uuid: 8.3.2 - winston: 3.8.2 + optionalDependencies: + bull: 4.11.3 transitivePeerDependencies: - debug - - encoding - supports-color dev: false @@ -7277,13 +7280,6 @@ packages: string-argv: 0.3.1 dev: true - /@segment/loosely-validate-event@2.0.0: - resolution: {integrity: sha512-ZMCSfztDBqwotkl848ODgVcAmN4OItEWDCkshcKz0/W6gGSQayuuCtWV/MlodFivAZD793d6UgANd6wCXUfrIw==} - dependencies: - component-type: 1.2.1 - join-component: 1.1.0 - dev: false - /@selderee/plugin-htmlparser2@0.11.0: resolution: {integrity: sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ==} dependencies: @@ -11861,17 +11857,6 @@ packages: es-shim-unscopables: 1.0.0 dev: true - /array.prototype.reduce@1.0.6: - resolution: {integrity: sha512-UW+Mz8LG/sPSU8jRDCjVr6J/ZKAGpHfwrZ6kWTG5qCxIEiXdVshqGnu5vEZA8S1y6X4aCSbQZ0/EEsfvEvBiSg==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.22.1 - es-array-method-boxes-properly: 1.0.0 - is-string: 1.0.7 - dev: false - /arraybuffer.prototype.slice@1.0.1: resolution: {integrity: sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==} engines: {node: '>= 0.4'} @@ -12021,22 +12006,6 @@ packages: hasBin: true dev: true - /auto-changelog@1.16.4: - resolution: {integrity: sha512-h7diyELoq692AA4oqO50ULoYKIomUdzuQ+NW+eFPwIX0xzVbXEu9cIcgzZ3TYNVbpkGtcNKh51aRfAQNef7HVA==} - hasBin: true - dependencies: - commander: 5.1.0 - core-js: 3.31.0 - handlebars: 4.7.7 - lodash.uniqby: 4.7.0 - node-fetch: 2.7.0(encoding@0.1.13) - parse-github-url: 1.0.2 - regenerator-runtime: 0.13.11 - semver: 7.5.4 - transitivePeerDependencies: - - encoding - dev: false - /autoprefixer@10.4.14(postcss@8.4.32): resolution: {integrity: sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==} engines: {node: ^10 || ^12 || >=14} @@ -12081,45 +12050,17 @@ packages: is-retry-allowed: 2.2.0 dev: false - /axios-retry@4.0.0(axios@1.6.5): + /axios-retry@4.0.0(axios@1.6.7): resolution: {integrity: sha512-F6P4HVGITD/v4z9Lw2mIA24IabTajvpDZmKa6zq/gGwn57wN5j1P3uWrAV0+diqnW6kTM2fTqmWNfgYWGmMuiA==} peerDependencies: - axios: 0.x || 1.x + axios: 1.6.7 dependencies: - axios: 1.6.5 + axios: 1.6.7 is-retry-allowed: 2.2.0 dev: false - /axios@0.21.4: - resolution: {integrity: sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==} - dependencies: - follow-redirects: 1.15.5(debug@4.3.4) - transitivePeerDependencies: - - debug - dev: false - - /axios@1.6.2(debug@4.3.4): - resolution: {integrity: sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==} - dependencies: - follow-redirects: 1.15.5(debug@4.3.4) - form-data: 4.0.0 - proxy-from-env: 1.1.0 - transitivePeerDependencies: - - debug - dev: false - - /axios@1.6.5: - resolution: {integrity: sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==} - dependencies: - follow-redirects: 1.15.5(debug@4.3.4) - form-data: 4.0.0 - proxy-from-env: 1.1.0 - transitivePeerDependencies: - - debug - dev: false - - /axios@1.6.5(debug@3.2.7): - resolution: {integrity: sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==} + /axios@1.6.7: + resolution: {integrity: sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==} dependencies: follow-redirects: 1.15.5(debug@3.2.7) form-data: 4.0.0 @@ -12128,8 +12069,18 @@ packages: - debug dev: false - /axios@1.6.5(debug@4.3.4): - resolution: {integrity: sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==} + /axios@1.6.7(debug@3.2.7): + resolution: {integrity: sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==} + dependencies: + follow-redirects: 1.15.5(debug@3.2.7) + form-data: 4.0.0 + proxy-from-env: 1.1.0 + transitivePeerDependencies: + - debug + dev: false + + /axios@1.6.7(debug@4.3.4): + resolution: {integrity: sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==} dependencies: follow-redirects: 1.15.5(debug@4.3.4) form-data: 4.0.0 @@ -12566,23 +12517,21 @@ packages: engines: {node: '>=6'} dev: true - /bull@3.29.3: - resolution: {integrity: sha512-MOqV1dKLy1YQgP9m3lFolyMxaU+1+o4afzYYf0H4wNM+x/S0I1QPQfkgGlLiH00EyFrvSmeubeCYFP47rTfpjg==} - engines: {node: '>=10'} + /bull@4.11.3: + resolution: {integrity: sha512-DhS0XtiAuejkAY08iGOdDK35eex/yGNoezlWqGJTu9FqWFF/oBjUhpsusE9SXiI4culyDbOoFs+l3ar0VXhFqQ==} + engines: {node: '>=12'} dependencies: - cron-parser: 2.18.0 - debuglog: 1.0.1 + cron-parser: 4.9.0 get-port: 5.1.1 - ioredis: 4.28.5 + ioredis: 5.3.2 lodash: 4.17.21 - p-timeout: 3.2.0 - promise.prototype.finally: 3.1.7 + msgpackr: 1.10.1 semver: 7.5.4 - util.promisify: 1.1.2 uuid: 8.3.2 transitivePeerDependencies: - supports-color dev: false + optional: true /bull@4.12.1: resolution: {integrity: sha512-ft4hTmex7WGSHt56mydw9uRKskkvgiNwqTYiV9b6q3ubhplglQmjo9OZrHlcUVNwBqSBhnzlsJQ9N/Wd7nhENA==} @@ -13443,6 +13392,7 @@ packages: /core-js@3.31.0: resolution: {integrity: sha512-NIp2TQSGfR6ba5aalZD+ZQ1fSxGhDo/s1w0nx3RYzf2pnJxt7YynxFlFScP6eV7+GZsKO95NSjGxyJsU3DZgeQ==} + dev: true /core-js@3.35.0: resolution: {integrity: sha512-ntakECeqg81KqMueeGJ79Q5ZgQNR+6eaE8sxGCx62zMbAIj65q+uYvatToew3m6eAGdU4gNZwpZ34NMe4GYswg==} @@ -13487,14 +13437,6 @@ packages: - ts-toolbelt dev: false - /cron-parser@2.18.0: - resolution: {integrity: sha512-s4odpheTyydAbTBQepsqd2rNWGa2iV3cyo8g7zbI2QQYGLVsfbhmwukayS1XHppe02Oy1fg7mg6xoaraVJeEcg==} - engines: {node: '>=0.8'} - dependencies: - is-nan: 1.3.2 - moment-timezone: 0.5.37 - dev: false - /cron-parser@4.9.0: resolution: {integrity: sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q==} engines: {node: '>=12.0.0'} @@ -13951,11 +13893,6 @@ packages: ms: 2.1.2 supports-color: 8.1.1 - /debuglog@1.0.1: - resolution: {integrity: sha512-syBZ+rnAK3EgMsH2aYEOLUW7mZSY9Gb+0wUMCFsZvcmiz+HigA0LOcq/HoQqVuGG+EKykunc7QG2bzrponfaSw==} - deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. - dev: false - /decamelize@1.2.0: resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} engines: {node: '>=0.10.0'} @@ -14053,15 +13990,6 @@ packages: clone: 1.0.4 dev: true - /define-data-property@1.1.1: - resolution: {integrity: sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==} - engines: {node: '>= 0.4'} - dependencies: - get-intrinsic: 1.2.1 - gopd: 1.0.1 - has-property-descriptors: 1.0.0 - dev: false - /define-lazy-prop@2.0.0: resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==} engines: {node: '>=8'} @@ -14073,15 +14001,6 @@ packages: has-property-descriptors: 1.0.0 object-keys: 1.1.1 - /define-properties@1.2.1: - resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} - engines: {node: '>= 0.4'} - dependencies: - define-data-property: 1.1.1 - has-property-descriptors: 1.0.0 - object-keys: 1.1.1 - dev: false - /define-property@0.2.5: resolution: {integrity: sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==} engines: {node: '>=0.10.0'} @@ -14133,11 +14052,6 @@ packages: /delegates@1.0.0: resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==} - /denque@1.5.1: - resolution: {integrity: sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw==} - engines: {node: '>=0.10'} - dev: false - /denque@2.1.0: resolution: {integrity: sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==} engines: {node: '>=0.10'} @@ -14637,10 +14551,6 @@ packages: has-property-descriptors: 1.0.0 dev: false - /es-array-method-boxes-properly@1.0.0: - resolution: {integrity: sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==} - dev: false - /es-get-iterator@1.1.3: resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==} dependencies: @@ -17041,7 +16951,7 @@ packages: /infisical-node@1.3.0: resolution: {integrity: sha512-tTnnExRAO/ZyqiRdnSlBisErNToYWgtunMWh+8opClEt5qjX7l6HC/b4oGo2AuR2Pf41IR+oqo+dzkM1TCvlUA==} dependencies: - axios: 1.6.5 + axios: 1.6.7 dotenv: 16.3.1 tweetnacl: 1.0.3 tweetnacl-util: 0.15.1 @@ -17129,25 +17039,6 @@ packages: semver: 7.5.4 dev: true - /ioredis@4.28.5: - resolution: {integrity: sha512-3GYo0GJtLqgNXj4YhrisLaNNvWSNwSS2wS4OELGfGxH8I69+XfNdnmV1AyN+ZqMh0i7eX+SWjrwFKDBDgfBC1A==} - engines: {node: '>=6'} - dependencies: - cluster-key-slot: 1.1.2 - debug: 4.3.4(supports-color@8.1.1) - denque: 1.5.1 - lodash.defaults: 4.2.0 - lodash.flatten: 4.4.0 - lodash.isarguments: 3.1.0 - p-map: 2.1.0 - redis-commands: 1.7.0 - redis-errors: 1.2.0 - redis-parser: 3.0.0 - standard-as-callback: 2.1.0 - transitivePeerDependencies: - - supports-color - dev: false - /ioredis@5.3.2: resolution: {integrity: sha512-1DKMMzlIHM02eBBVOFQ1+AolGjs6+xEcM4PDL7NqOS6szq7H9jSaEkIUH6/a5Hl241LzW6JLSiAbNvTQjUupUA==} engines: {node: '>=12.22.0'} @@ -18762,7 +18653,7 @@ packages: resolution: {integrity: sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==} dev: false - /langchain@0.0.198(@aws-sdk/client-bedrock-runtime@3.454.0)(@aws-sdk/credential-provider-node@3.451.0)(@getzep/zep-js@0.9.0)(@google-ai/generativelanguage@0.2.1)(@huggingface/inference@2.6.4)(@pinecone-database/pinecone@1.1.2)(@qdrant/js-client-rest@1.7.0)(@supabase/supabase-js@2.38.5)(@xata.io/client@0.25.3)(axios@1.6.5)(cohere-ai@6.2.2)(d3-dsv@2.0.0)(epub2@3.0.1)(html-to-text@9.0.5)(lodash@4.17.21)(mammoth@1.6.0)(pdf-parse@1.1.1)(pg@8.11.3)(redis@4.6.12)(typeorm@0.3.17): + /langchain@0.0.198(@aws-sdk/client-bedrock-runtime@3.454.0)(@aws-sdk/credential-provider-node@3.451.0)(@getzep/zep-js@0.9.0)(@google-ai/generativelanguage@0.2.1)(@huggingface/inference@2.6.4)(@pinecone-database/pinecone@1.1.2)(@qdrant/js-client-rest@1.7.0)(@supabase/supabase-js@2.38.5)(@xata.io/client@0.25.3)(axios@1.6.7)(cohere-ai@6.2.2)(d3-dsv@2.0.0)(epub2@3.0.1)(html-to-text@9.0.5)(lodash@4.17.21)(mammoth@1.6.0)(pdf-parse@1.1.1)(pg@8.11.3)(redis@4.6.12)(typeorm@0.3.17): resolution: {integrity: sha512-YC0O1g8r61InCWyF5NmiQjdghdq6LKcgMrDZtqLbgDxAe4RoSldonm+5oNXS3yjCISG0j3s5Cty+yB7klqvUpg==} engines: {node: '>=18'} peerDependencies: @@ -18813,7 +18704,7 @@ packages: '@zilliz/milvus2-sdk-node': '>=2.2.7' apify-client: ^2.7.1 assemblyai: ^2.0.2 - axios: '*' + axios: 1.6.7 cassandra-driver: ^4.7.2 cheerio: ^1.0.0-rc.12 chromadb: '*' @@ -19079,7 +18970,7 @@ packages: '@qdrant/js-client-rest': 1.7.0(typescript@5.3.2) '@supabase/supabase-js': 2.38.5 '@xata.io/client': 0.25.3(typescript@5.3.2) - axios: 1.6.5 + axios: 1.6.7 binary-extensions: 2.2.0 cohere-ai: 6.2.2 d3-dsv: 2.0.0 @@ -19414,10 +19305,6 @@ packages: /lodash.defaults@4.2.0: resolution: {integrity: sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==} - /lodash.flatten@4.4.0: - resolution: {integrity: sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==} - dev: false - /lodash.get@4.4.2: resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} @@ -19455,10 +19342,6 @@ packages: /lodash.uniq@4.5.0: resolution: {integrity: sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==} - /lodash.uniqby@4.7.0: - resolution: {integrity: sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww==} - dev: false - /lodash.zipobject@4.1.3: resolution: {integrity: sha512-A9SzX4hMKWS25MyalwcOnNoplyHbkNVsjidhTp8ru0Sj23wY9GWBKS8gAIGDSAqeWjIjvE4KBEl24XXAs+v4wQ==} dev: false @@ -20967,17 +20850,6 @@ packages: es-abstract: 1.22.1 dev: true - /object.getownpropertydescriptors@2.1.7: - resolution: {integrity: sha512-PrJz0C2xJ58FNn11XV2lr4Jt5Gzl94qpy9Lu0JlfEj14z88sqbSBJCBEzdlNUCzY2gburhbrwOZ5BHCmuNUy0g==} - engines: {node: '>= 0.8'} - dependencies: - array.prototype.reduce: 1.0.6 - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.22.1 - safe-array-concat: 1.0.0 - dev: false - /object.groupby@1.0.1: resolution: {integrity: sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==} dependencies: @@ -21245,11 +21117,6 @@ packages: p-limit: 3.1.0 dev: true - /p-map@2.1.0: - resolution: {integrity: sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==} - engines: {node: '>=6'} - dev: false - /p-map@4.0.0: resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==} engines: {node: '>=10'} @@ -21319,12 +21186,6 @@ packages: path-root: 0.1.1 dev: true - /parse-github-url@1.0.2: - resolution: {integrity: sha512-kgBf6avCbO3Cn6+RnzRGLkUsv4ZVqv/VfAYkRsyBcgkshNvVBkRn1FEZcW0Jb+npXQWm2vHPnnOqFteZxRRGNw==} - engines: {node: '>=0.10.0'} - hasBin: true - dev: false - /parse-json@2.2.0: resolution: {integrity: sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==} engines: {node: '>=0.10.0'} @@ -22244,7 +22105,7 @@ packages: resolution: {integrity: sha512-ofNX3TPfZPlWErVc2EDk66cIrfp9EXeKBsXFxf8ISXK57b10ANwRnKAlf5rQjxjRKqcUWmV0d3ZfOeVeYracMw==} engines: {node: '>=15.0.0'} dependencies: - axios: 1.6.5 + axios: 1.6.7 rusha: 0.8.14 transitivePeerDependencies: - debug @@ -22385,17 +22246,6 @@ packages: retry: 0.12.0 dev: false - /promise.prototype.finally@3.1.7: - resolution: {integrity: sha512-iL9OcJRUZcCE5xn6IwhZxO+eMM0VEXjkETHy+Nk+d9q3s7kxVtPg+mBlMO+ZGxNKNMODyKmy/bOyt/yhxTnvEw==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.2 - define-properties: 1.2.1 - es-abstract: 1.22.1 - get-intrinsic: 1.2.1 - set-function-name: 2.0.1 - dev: false - /promise@1.3.0: resolution: {integrity: sha512-R9WrbTF3EPkVtWjp7B7umQGVndpsi+rsDAfrR4xAALQpFLa/+2OriecLhawxzvii2gd9+DZFwROWDuUUaqS5yA==} dependencies: @@ -23026,10 +22876,6 @@ packages: esprima: 4.0.1 dev: false - /redis-commands@1.7.0: - resolution: {integrity: sha512-nJWqw3bTFy21hX/CPKHth6sfhZbdiHP6bTawSgQBlKOVRG7EZkfHbbHwQJnrE4vsQf0CMNE+3gJ4Fmm16vdVlQ==} - dev: false - /redis-errors@1.2.0: resolution: {integrity: sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==} engines: {node: '>=4'} @@ -23749,17 +23595,10 @@ packages: resolution: {integrity: sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q==} dev: false - /serialize-javascript@5.0.1: - resolution: {integrity: sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==} - dependencies: - randombytes: 2.1.0 - dev: false - /serialize-javascript@6.0.1: resolution: {integrity: sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==} dependencies: randombytes: 2.1.0 - dev: true /serve-static@1.15.0: resolution: {integrity: sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==} @@ -23775,15 +23614,6 @@ packages: /set-blocking@2.0.0: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} - /set-function-name@2.0.1: - resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==} - engines: {node: '>= 0.4'} - dependencies: - define-data-property: 1.1.1 - functions-have-names: 1.2.3 - has-property-descriptors: 1.0.0 - dev: false - /set-value@2.0.1: resolution: {integrity: sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==} engines: {node: '>=0.10.0'} @@ -24044,7 +23874,7 @@ packages: asn1.js: 5.4.1 asn1.js-rfc2560: 5.0.1(asn1.js@5.4.1) asn1.js-rfc5280: 3.0.0 - axios: 1.6.5(debug@3.2.7) + axios: 1.6.7(debug@3.2.7) big-integer: 1.6.51 bignumber.js: 9.1.2 binascii: 0.0.2 @@ -26162,18 +25992,6 @@ packages: /util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - /util.promisify@1.1.2: - resolution: {integrity: sha512-PBdZ03m1kBnQ5cjjO0ZvJMJS+QsbyIcFwi4hY4U76OQsCO9JrOYjbCFgIF76ccFg9xnJo7ZHPkqyj1GqmdS7MA==} - dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - for-each: 0.3.3 - has-proto: 1.0.1 - has-symbols: 1.0.3 - object.getownpropertydescriptors: 2.1.7 - safe-array-concat: 1.0.0 - dev: false - /util@0.12.5: resolution: {integrity: sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==} dependencies: @@ -26656,7 +26474,7 @@ packages: engines: {node: '>=12.0.0'} hasBin: true dependencies: - axios: 1.6.5(debug@4.3.4) + axios: 1.6.7(debug@4.3.4) joi: 17.11.0 lodash: 4.17.21 minimist: 1.2.8