From e936494e3d9eddbb82c04529b21d254669b9573c 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: Wed, 21 Aug 2024 12:11:24 +0200 Subject: [PATCH 1/7] feat(core): Upgrade axios to address CVE-2024-39338 (no-changelog) (#10494) --- cypress/package.json | 2 +- package.json | 1 - packages/cli/package.json | 2 +- packages/nodes-base/package.json | 4 +- pnpm-lock.yaml | 666 +++++++++++++++++-------------- pnpm-workspace.yaml | 2 +- 6 files changed, 370 insertions(+), 307 deletions(-) diff --git a/cypress/package.json b/cypress/package.json index 0e1ce734c02cf..5084e0b10c8a8 100644 --- a/cypress/package.json +++ b/cypress/package.json @@ -26,6 +26,6 @@ "cypress-real-events": "^1.12.0", "lodash": "catalog:", "nanoid": "catalog:", - "start-server-and-test": "^2.0.3" + "start-server-and-test": "^2.0.5" } } diff --git a/package.json b/package.json index e7d55c64455ad..f6fb54778e274 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,6 @@ ], "overrides": { "@types/node": "^18.16.16", - "axios": "1.7.3", "chokidar": "3.5.2", "esbuild": "^0.20.2", "formidable": "3.5.1", diff --git a/packages/cli/package.json b/packages/cli/package.json index cd03e0e19b119..97b9373ab540e 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -93,7 +93,7 @@ "@n8n_io/ai-assistant-sdk": "1.9.4", "@n8n_io/license-sdk": "2.13.1", "@oclif/core": "4.0.7", - "@rudderstack/rudder-sdk-node": "2.0.7", + "@rudderstack/rudder-sdk-node": "2.0.9", "@sentry/integrations": "7.87.0", "@sentry/node": "7.87.0", "aws4": "1.11.0", diff --git a/packages/nodes-base/package.json b/packages/nodes-base/package.json index b4c524520b1c3..4056861f01b5a 100644 --- a/packages/nodes-base/package.json +++ b/packages/nodes-base/package.json @@ -822,7 +822,7 @@ "@types/promise-ftp": "^1.3.4", "@types/rfc2047": "^2.0.1", "@types/showdown": "^1.9.4", - "@types/snowflake-sdk": "^1.6.20", + "@types/snowflake-sdk": "^1.6.24", "@types/ssh2-sftp-client": "^5.1.0", "@types/uuid": "catalog:", "@types/xml2js": "catalog:", @@ -885,7 +885,7 @@ "semver": "7.5.4", "showdown": "2.1.0", "simple-git": "3.17.0", - "snowflake-sdk": "1.9.2", + "snowflake-sdk": "1.12.0", "ssh2-sftp-client": "7.2.3", "tmp-promise": "3.0.3", "ts-ics": "^1.2.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eb776bc5ed393..f77ec66a97b23 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,6 +6,9 @@ settings: catalogs: default: + '@types/basic-auth': + specifier: ^1.1.3 + version: 1.1.3 '@types/express': specifier: ^4.17.21 version: 4.17.21 @@ -18,9 +21,18 @@ catalogs: '@types/xml2js': specifier: ^0.4.14 version: 0.4.14 + axios: + specifier: 1.7.4 + version: 1.7.4 + basic-auth: + specifier: 2.0.1 + version: 2.0.1 fast-glob: specifier: 3.2.12 version: 3.2.12 + form-data: + specifier: 4.0.0 + version: 4.0.0 lodash: specifier: 4.17.21 version: 4.17.21 @@ -39,10 +51,31 @@ catalogs: xml2js: specifier: 0.6.2 version: 0.6.2 + frontend: + '@vitest/coverage-v8': + specifier: ^1.6.0 + version: 1.6.0 + vite: + specifier: ^5.2.12 + version: 5.2.12 + vitest: + specifier: ^1.6.0 + version: 1.6.0 + vitest-mock-extended: + specifier: ^1.3.1 + version: 1.3.1 + vue: + specifier: ^3.4.21 + version: 3.4.21 + vue-markdown-render: + specifier: ^2.2.1 + version: 2.2.1 + vue-tsc: + specifier: ^2.0.19 + version: 2.0.19 overrides: '@types/node': ^18.16.16 - axios: 1.7.3 chokidar: 3.5.2 esbuild: ^0.20.2 formidable: 3.5.1 @@ -163,8 +196,8 @@ importers: specifier: 'catalog:' version: 3.3.6 start-server-and-test: - specifier: ^2.0.3 - version: 2.0.3 + specifier: ^2.0.5 + version: 2.0.5 devDependencies: '@types/lodash': specifier: 'catalog:' @@ -225,8 +258,8 @@ importers: packages/@n8n/client-oauth2: dependencies: axios: - specifier: 1.7.3 - version: 1.7.3(debug@3.2.7) + specifier: 'catalog:' + version: 1.7.4(debug@4.3.6) packages/@n8n/codemirror-lang: dependencies: @@ -318,10 +351,10 @@ importers: version: 0.0.10(encoding@0.1.13)(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13)) '@langchain/community': specifier: 0.2.20 - version: 0.2.20(32xju6nqoe2wrsbntqq2x5vcke) + version: 0.2.20(a4iyb3banmlkrbqqp5ye37i4cm) '@langchain/core': specifier: 0.2.18 - version: 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + version: 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) '@langchain/google-genai': specifier: 0.0.23 version: 0.0.23(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13))(zod@3.23.8) @@ -339,19 +372,19 @@ importers: version: 0.0.2(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13)) '@langchain/openai': specifier: 0.2.5 - version: 0.2.5(encoding@0.1.13)(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4)) + version: 0.2.5(encoding@0.1.13)(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u)) '@langchain/pinecone': specifier: 0.0.8 - version: 0.0.8(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + version: 0.0.8(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) '@langchain/qdrant': specifier: ^0.0.5 - version: 0.0.5(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13))(typescript@5.5.2) + version: 0.0.5(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13))(typescript@5.5.2) '@langchain/redis': specifier: 0.0.5 - version: 0.0.5(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + version: 0.0.5(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) '@langchain/textsplitters': specifier: 0.0.3 - version: 0.0.3(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + version: 0.0.3(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) '@mozilla/readability': specifier: ^0.5.0 version: 0.5.0 @@ -408,7 +441,7 @@ importers: version: 2.1.0 langchain: specifier: 0.2.11 - version: 0.2.11(6hdkxymucpmkiknmt5geracdu4) + version: 0.2.11(m7otbkpxyspoz5trt2pa3dcs6u) lodash: specifier: 'catalog:' version: 4.17.21 @@ -608,8 +641,8 @@ importers: specifier: 4.0.7 version: 4.0.7 '@rudderstack/rudder-sdk-node': - specifier: 2.0.7 - version: 2.0.7(tslib@2.6.2) + specifier: 2.0.9 + version: 2.0.9(tslib@2.6.2) '@sentry/integrations': specifier: 7.87.0 version: 7.87.0 @@ -620,8 +653,8 @@ importers: specifier: 1.11.0 version: 1.11.0 axios: - specifier: 1.7.3 - version: 1.7.3(debug@4.3.6) + specifier: 'catalog:' + version: 1.7.4(debug@4.3.6) bcryptjs: specifier: 2.4.3 version: 2.4.3 @@ -948,8 +981,8 @@ importers: specifier: 1.11.0 version: 1.11.0 axios: - specifier: 1.7.3 - version: 1.7.3(debug@3.2.7) + specifier: 'catalog:' + version: 1.7.4(debug@4.3.6) concat-stream: specifier: 2.0.0 version: 2.0.0 @@ -1229,8 +1262,8 @@ importers: specifier: ^10.11.0 version: 10.11.0(vue@3.4.21(typescript@5.5.2)) axios: - specifier: 1.7.3 - version: 1.7.3(debug@3.2.7) + specifier: 'catalog:' + version: 1.7.4(debug@4.3.6) chart.js: specifier: ^4.4.0 version: 4.4.0 @@ -1585,8 +1618,8 @@ importers: specifier: 3.17.0 version: 3.17.0 snowflake-sdk: - specifier: 1.9.2 - version: 1.9.2(asn1.js@5.4.1)(encoding@0.1.13) + specifier: 1.12.0 + version: 1.12.0(asn1.js@5.4.1)(encoding@0.1.13) ssh2-sftp-client: specifier: 7.2.3 version: 7.2.3 @@ -1667,8 +1700,8 @@ importers: specifier: ^1.9.4 version: 1.9.4 '@types/snowflake-sdk': - specifier: ^1.6.20 - version: 1.6.20 + specifier: ^1.6.24 + version: 1.6.24 '@types/ssh2-sftp-client': specifier: ^5.1.0 version: 5.3.2 @@ -1697,8 +1730,8 @@ importers: specifier: 0.15.2 version: 0.15.2 axios: - specifier: 1.7.3 - version: 1.7.3(debug@3.2.7) + specifier: 'catalog:' + version: 1.7.4(debug@4.3.6) callsites: specifier: 3.1.0 version: 3.1.0 @@ -1744,7 +1777,7 @@ importers: devDependencies: '@langchain/core': specifier: ^0.2.18 - version: 0.2.18(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0) + version: 0.2.18(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0) '@types/deep-equal': specifier: ^1.0.1 version: 1.0.1 @@ -1988,6 +2021,11 @@ packages: resolution: {integrity: sha512-Uvb2WJ+zdHdCOtsWVPI/M0BcfNrjOYsicDZWtaljucRJKLclY5gNWwD+RwIC+8b5TvfnVOlH+N5jhvpi5Impog==} engines: {node: '>=14.0.0'} + '@aws-sdk/node-http-handler@3.374.0': + resolution: {integrity: sha512-v1Z6m0wwkf65/tKuhwrtPRqVoOtNkDTRn2MBMtxCwEw+8V8Q+YRFqVgGN+J1n53ktE0G5OYVBux/NHiAjJHReQ==} + engines: {node: '>=14.0.0'} + deprecated: This package has moved to @smithy/node-http-handler + '@aws-sdk/region-config-resolver@3.470.0': resolution: {integrity: sha512-C1o1J06iIw8cyAAOvHqT4Bbqf+PgQ/RDlSyjt2gFfP2OovDpc2o2S90dE8f8iZdSGpg70N5MikT1DBhW9NbhtQ==} engines: {node: '>=14.0.0'} @@ -2087,9 +2125,10 @@ packages: resolution: {integrity: sha512-5MnV1yqzZwgNLLjlizsU3QqOeQChkIXw781Fwh1xdAqJR5AA32IUaq6xv1BICJvfbHoa+JYcaij2HFkhLbNTJQ==} engines: {node: '>=18.0.0'} - '@azure/core-http@2.3.2': - resolution: {integrity: sha512-Z4dfbglV9kNZO177CNx4bo5ekFuYwwsvjLiKdZI4r84bYGv3irrbQz7JC3/rUfFH2l4T/W6OFleJaa2X0IaQqw==} + '@azure/core-http@3.0.4': + resolution: {integrity: sha512-Fok9VVhMdxAFOtqiiAtg74fL0UJkt0z3D+ouUUxcRLzZNBioPRAMJFVxiWoJljYpXsRi4GDQHzQHDc9AiYaIUQ==} engines: {node: '>=14.0.0'} + deprecated: deprecating as we migrated to core v2 '@azure/core-lro@2.4.0': resolution: {integrity: sha512-F65+rYkll1dpw3RGm8/SSiSj+/QkMeYDanzS/QKlM1dmuneVyXbO46C88V1MRHluLGdMP6qfD3vDRYALn0z0tQ==} @@ -2147,9 +2186,9 @@ packages: resolution: {integrity: sha512-yNRCp4Do4CGSBe1WXq4DWhfa/vYZCUgGrweYLC5my/6eDnYMt0fYGPHuTMw0iRslQGXF3CecGAxXp7ab57V4zg==} engines: {node: '>=16'} - '@azure/storage-blob@12.11.0': - resolution: {integrity: sha512-na+FisoARuaOWaHWpmdtk3FeuTWf2VWamdJ9/TJJzj5ZdXPLC3juoDgFs6XVuJIoK30yuBpyFBEDXVRK4pB7Tg==} - engines: {node: '>=12.0.0'} + '@azure/storage-blob@12.18.0': + resolution: {integrity: sha512-BzBZJobMoDyjJsPRMLNHvqHycTGrT8R/dtcTx9qUFcqwSRfGVK9A/cZ7Nx38UQydT9usZGbaDCN75QRNjezSAA==} + engines: {node: '>=14.0.0'} '@babel/code-frame@7.22.5': resolution: {integrity: sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==} @@ -3314,17 +3353,17 @@ packages: resolution: {integrity: sha512-M3ihN10el2mfoDWdnpzWNv8vcoqKFNmDaY7IviujAv5c+/p8kSwvjk2haTcOQ8lQOiihAWX3I7YtP1K4UaGnyA==} engines: {node: '>=14.0.0'} - '@google-cloud/paginator@3.0.7': - resolution: {integrity: sha512-jJNutk0arIQhmpUUQJPJErsojqo834KcyB6X7a1mxuic8i1tKXxde8E69IZxNZawRIlZdIK2QY4WALvlK5MzYQ==} - engines: {node: '>=10'} + '@google-cloud/paginator@5.0.2': + resolution: {integrity: sha512-DJS3s0OVH4zFDB1PzjxAsHqJT6sKVbRwwML0ZBP9PbU7Yebtu/7SWMRzvO2J3nUi9pRNITCfu4LJeooM2w4pjg==} + engines: {node: '>=14.0.0'} - '@google-cloud/projectify@3.0.0': - resolution: {integrity: sha512-HRkZsNmjScY6Li8/kb70wjGlDDyLkVk3KvoEo9uIoxSjYLJasGiCch9+PqRVDOCGUFvEIqyogl+BeqILL4OJHA==} - engines: {node: '>=12.0.0'} + '@google-cloud/projectify@4.0.0': + resolution: {integrity: sha512-MmaX6HeSvyPbWGwFq7mXdo0uQZLGBYCwziiLIGq5JVX+/bdI3SAq6bP98trV5eTWfLuvsMcIC1YJOF2vfteLFA==} + engines: {node: '>=14.0.0'} - '@google-cloud/promisify@3.0.1': - resolution: {integrity: sha512-z1CjRjtQyBOYL+5Qr9DdYIfrdLBe746jRTYfaYU6MeXkqp7UfYs/jX16lFFVzZ7PGEJvqZNqYUEtb1mvDww4pA==} - engines: {node: '>=12'} + '@google-cloud/promisify@4.0.0': + resolution: {integrity: sha512-Orxzlfb9c67A15cq2JQEyVc7wEsmFBmHjZWZYQMUyJ1qivXyMwdyNOs9odi79hze+2zqdTtu1E19IM/FtqZ10g==} + engines: {node: '>=14'} '@google-cloud/resource-manager@5.3.0': resolution: {integrity: sha512-uWJJf6S2PJL7oZ4ezv16aZl9+IJqPo5GzUv1pZ3/qRiMj13p0ylEgX1+LxBpX71eEPKTwMHoJV2IBBe3EAq7Xw==} @@ -3334,9 +3373,9 @@ packages: resolution: {integrity: sha512-0daW/OXQEVc6VQKPyJTQNyD+563I/TYQ7GCQJx4dq3lB666R9FUPvqHx9b/o/qQtZ5pfuoCbGZl3krpxgTSW8Q==} engines: {node: '>=14.0.0'} - '@google-cloud/storage@6.11.0': - resolution: {integrity: sha512-p5VX5K2zLTrMXlKdS1CiQNkKpygyn7CBFm5ZvfhVj6+7QUsjWvYx9YDMkYXdarZ6JDt4cxiu451y9QUIH82ZTw==} - engines: {node: '>=12'} + '@google-cloud/storage@7.12.1': + resolution: {integrity: sha512-Z3ZzOnF3YKLuvpkvF+TjQ6lztxcAyTILp+FjKonmVpEwPa9vFvxpZjubLR4sB6bf19i/8HL2AXRjA0YFgHFRmQ==} + engines: {node: '>=14'} '@google/generative-ai@0.11.4': resolution: {integrity: sha512-hlw+E9Prv9aUIQISRnLSXi4rukFqKe5WhxPvzBccTvIvXjw2BHMFOJWSC/Gq7WE0W+L/qRHGmYxopmx9qjrB9w==} @@ -4607,8 +4646,8 @@ packages: cpu: [x64] os: [win32] - '@rudderstack/rudder-sdk-node@2.0.7': - resolution: {integrity: sha512-V8SWlryHDHSleM51udW3DbmCyADa7Naa9OTtG/YjgTStxFsyLnGRYd9Mr616qR94Gi1h/zYhE/tvWio+0fiSzA==} + '@rudderstack/rudder-sdk-node@2.0.9': + resolution: {integrity: sha512-Icm7a2x+CrVM9cHsXDRaFqGyvlaRDdALsrhzLHyRE+gIXubzJT730+fHS8KNdv9/r4Et/Cy1epjbkT3Qagd1VQ==} engines: {node: '>=12'} peerDependencies: tslib: ^2.6.2 @@ -4720,6 +4759,10 @@ packages: '@sinonjs/fake-timers@11.2.2': resolution: {integrity: sha512-G2piCSxQ7oWOxwGSAyFHfPIsyeJGXYtc6mFbnFA+kRXkiEnTl8c/8jul2S329iFBnDI9HGoeWWAZvuvOkZccgw==} + '@smithy/abort-controller@1.1.0': + resolution: {integrity: sha512-5imgGUlZL4dW4YWdMYAKLmal9ny/tlenM81QZY7xYyb76z9Z/QOg7oM5Ak9HQl8QfFTlGVWwcMXl+54jroRgEQ==} + engines: {node: '>=14.0.0'} + '@smithy/abort-controller@2.2.0': resolution: {integrity: sha512-wRlta7GuLWpTqtFfGo+nZyOO1vEvewdNR1R4rTxpC8XU6vG/NDyrFBhwLZsqg1NUoR1noVaXJPC/7ZK47QCySw==} engines: {node: '>=14.0.0'} @@ -4809,6 +4852,10 @@ packages: resolution: {integrity: sha512-0elK5/03a1JPWMDPaS726Iw6LpQg80gFut1tNpPfxFuChEEklo2yL823V94SpTZTxmKlXFtFgsP55uh3dErnIg==} engines: {node: '>=14.0.0'} + '@smithy/node-http-handler@1.1.0': + resolution: {integrity: sha512-d3kRriEgaIiGXLziAM8bjnaLn1fthCJeTLZIwEIpzQqe6yPX0a+yQoLCTyjb2fvdLwkMoG4p7THIIB5cj5lkbg==} + engines: {node: '>=14.0.0'} + '@smithy/node-http-handler@2.5.0': resolution: {integrity: sha512-mVGyPBzkkGQsPoxQUbxlEfRjrj6FPyA3u3u2VXGr9hT8wilsoQdZdvKpMBFMB8Crfhv5dNkKHIW0Yyuc7eABqA==} engines: {node: '>=14.0.0'} @@ -4817,10 +4864,18 @@ packages: resolution: {integrity: sha512-+xiil2lFhtTRzXkx8F053AV46QnIw6e7MV8od5Mi68E1ICOjCeCHw2XfLnDEUHnT9WGUIkwcqavXjfwuJbGlpg==} engines: {node: '>=14.0.0'} + '@smithy/protocol-http@1.2.0': + resolution: {integrity: sha512-GfGfruksi3nXdFok5RhgtOnWe5f6BndzYfmEXISD+5gAGdayFGpjWu5pIqIweTudMtse20bGbc+7MFZXT1Tb8Q==} + engines: {node: '>=14.0.0'} + '@smithy/protocol-http@3.3.0': resolution: {integrity: sha512-Xy5XK1AFWW2nlY/biWZXu6/krgbaf2dg0q492D8M5qthsnU2H+UgFeZLbM76FnH7s6RO/xhQRkj+T6KBO3JzgQ==} engines: {node: '>=14.0.0'} + '@smithy/querystring-builder@1.1.0': + resolution: {integrity: sha512-gDEi4LxIGLbdfjrjiY45QNbuDmpkwh9DX4xzrR2AzjjXpxwGyfSpbJaYhXARw9p17VH0h9UewnNQXNwaQyYMDA==} + engines: {node: '>=14.0.0'} + '@smithy/querystring-builder@2.2.0': resolution: {integrity: sha512-L1kSeviUWL+emq3CUVSgdogoM/D9QMFaqxL/dd0X7PCNWmPXqt+ExtrBjqT0V7HLN03Vs9SuiLrG3zy3JGnE5A==} engines: {node: '>=14.0.0'} @@ -4845,6 +4900,10 @@ packages: resolution: {integrity: sha512-jrbSQrYCho0yDaaf92qWgd+7nAeap5LtHTI51KXqmpIFCceKU3K9+vIVTUH72bOJngBMqa4kyu1VJhRcSrk/CQ==} engines: {node: '>=14.0.0'} + '@smithy/types@1.2.0': + resolution: {integrity: sha512-z1r00TvBqF3dh4aHhya7nz1HhvCg4TRmw51fjMrh5do3h+ngSstt/yKlNbHeb9QxJmFbmN8KEVSWgb1bRvfEoA==} + engines: {node: '>=14.0.0'} + '@smithy/types@2.12.0': resolution: {integrity: sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==} engines: {node: '>=14.0.0'} @@ -4899,6 +4958,10 @@ packages: resolution: {integrity: sha512-17faEXbYWIRst1aU9SvPZyMdWmqIrduZjVOqCPMIsWFNxs5yQQgFrJL6b2SdiCzyW9mJoDjFtgi53xx7EH+BXA==} engines: {node: '>=14.0.0'} + '@smithy/util-uri-escape@1.1.0': + resolution: {integrity: sha512-/jL/V1xdVRt5XppwiaEU8Etp5WHZj609n0xMTuehmCqdoOFbId1M+aEeDWZsQ+8JbEB/BJ6ynY2SlYmOaKtt8w==} + engines: {node: '>=14.0.0'} + '@smithy/util-uri-escape@2.2.0': resolution: {integrity: sha512-jtmJMyt1xMD/d8OtbVJ2gFZOSKc+ueYJZPW20ULW1GOp/q/YIM0wNh+u8ZFao9UaIGz4WoPW8hC64qlWLIfoDA==} engines: {node: '>=14.0.0'} @@ -5552,8 +5615,8 @@ packages: '@types/sizzle@2.3.3': resolution: {integrity: sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ==} - '@types/snowflake-sdk@1.6.20': - resolution: {integrity: sha512-Dr7oIXrWthlk9wVWpZgpm49BT8cFFXz43u7SkJKyiZK3WHiHQo4b+m2/p3WIpkYzZCcOZZ/t1B09XMd7+u1Wjw==} + '@types/snowflake-sdk@1.6.24': + resolution: {integrity: sha512-CgRp971LQJr970YSySCeIoNfX/29s9ZUnwhVjl8uL62kC7UoTNdNRwwyGCQ7Ca/fECRu8nK47pZpw8xmVWDn9Q==} '@types/ssh2-sftp-client@5.3.2': resolution: {integrity: sha512-s5R3hsnI3/7Ar57LG++gm2kxgONHtOZY2A3AgGzEwiJlHR8j7MRPDw1n/hG6oMnOUJ4zuoLNtDXgDfmmxV4lDA==} @@ -6273,8 +6336,8 @@ packages: axios-retry@3.7.0: resolution: {integrity: sha512-ZTnCkJbRtfScvwiRnoVskFAfvU0UG3xNcsjwTR0mawSbIJoothxn67gKsMaNAFHRXJ1RmuLhmZBzvyXi3+9WyQ==} - axios@1.7.3: - resolution: {integrity: sha512-Ar7ND9pU99eJ9GpoGQKhKf58GpUOgnzuaB7ueNQ5BMi0p+LZ5oaEnfF999fAArcTIBwXTCHAmGcHOZJaWPq9Nw==} + axios@1.7.4: + resolution: {integrity: sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==} babel-core@7.0.0-bridge.0: resolution: {integrity: sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==} @@ -7381,6 +7444,9 @@ packages: duplexify@4.1.2: resolution: {integrity: sha512-fz3OjcNCHmRP12MJoZMPglx8m4rrFP8rovnk4vT8Fs+aonZoCwGg10dSsQsfP/E62eZcPTMSMP6686fu9Qlqtw==} + duplexify@4.1.3: + resolution: {integrity: sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==} + eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} @@ -7450,9 +7516,6 @@ packages: resolution: {integrity: sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==} engines: {node: '>=8.6'} - ent@2.2.0: - resolution: {integrity: sha512-GHrMyVZQWvTIdDtpiEXdHZnFQKzeO09apj8Cbl4pKWy4i0Oprcq17usfDt5aO63swf0JOeMWjWQE/LzgSRuWpA==} - entities@2.2.0: resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==} @@ -7905,14 +7968,14 @@ packages: resolution: {integrity: sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==} hasBin: true - fast-xml-parser@4.2.7: - resolution: {integrity: sha512-J8r6BriSLO1uj2miOk1NW0YVm8AGOOu3Si2HQp/cSmo6EA4m3fcwu2WKjJ4RK9wMLBtg69y1kS8baDiQBR41Ig==} - hasBin: true - fast-xml-parser@4.3.5: resolution: {integrity: sha512-sWvP1Pl8H03B8oFJpFR3HE31HUfwtX7Rlf9BNsvdpujD4n7WMhfmu8h9wOV2u+c1k0ZilTADhPqypzx2J690ZQ==} hasBin: true + fast-xml-parser@4.4.1: + resolution: {integrity: sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==} + hasBin: true + fastest-levenshtein@1.0.16: resolution: {integrity: sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==} engines: {node: '>= 4.9.1'} @@ -8463,6 +8526,9 @@ packages: resolution: {integrity: sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==} engines: {node: '>=18'} + html-entities@2.5.2: + resolution: {integrity: sha512-K//PSRMQk4FZ78Kyau+mZurHn3FH0Vwr+H36eE0rPbeYkRRi9YxceYPhuN60UwWorxyKHhqoAJl2OFKa4BVtaA==} + html-escaper@2.0.2: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} @@ -9327,7 +9393,7 @@ packages: '@xata.io/client': ^0.28.0 apify-client: ^2.7.1 assemblyai: ^4.6.0 - axios: 1.7.3 + axios: '*' cheerio: ^1.0.0-rc.12 chromadb: '*' convex: ^1.3.1 @@ -11427,10 +11493,6 @@ packages: resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==} engines: {node: '>=8'} - retry-request@5.0.2: - resolution: {integrity: sha512-wfI3pk7EE80lCIXprqh7ym48IHYdwmAAzESdbU8Q9l7pnRCk9LEhpbOTNKjz6FARLm/Bl5m+4F0ABxOkYUujSQ==} - engines: {node: '>=12'} - retry-request@7.0.2: resolution: {integrity: sha512-dUOvLMJ0/JJYEn8NrpOaGNE7X3vpI5XlZS/u0ANjqtcZVKnIxP7IgCFwrKTxENw29emmwug53awKtaMm4i9g5w==} engines: {node: '>=14'} @@ -11734,8 +11796,8 @@ packages: snake-case@3.0.4: resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==} - snowflake-sdk@1.9.2: - resolution: {integrity: sha512-pPTE8V6RHw78KBAn56rGVri3LRciuJDz/oDUmkJej3fUnOHP28YBLl3kjiW0J5bbPzDPHhSAkeeCsjrbGyAB/w==} + snowflake-sdk@1.12.0: + resolution: {integrity: sha512-ZUFYR327vh+Tgo4s/1NhZTjg24g6t7rA3VTgP13sy9WBxdgPVuKN2G4rgeoml8vYKfARPCYmQBr6ysVF/y7EKw==} peerDependencies: asn1.js: ^5.4.1 @@ -11847,8 +11909,8 @@ packages: standard-as-callback@2.1.0: resolution: {integrity: sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==} - start-server-and-test@2.0.3: - resolution: {integrity: sha512-QsVObjfjFZKJE6CS6bSKNwWZCKBG6975/jKRPPGFfFh+yOQglSeGXiNWjzgQNXdphcBI9nXbyso9tPfX4YAUhg==} + start-server-and-test@2.0.5: + resolution: {integrity: sha512-2CV4pz69NJVJKQmJeSr+O+SPtOreu0yxvhPmSXclzmAKkPREuMabyMh+Txpzemjx0RDzXOcG2XkhiUuxjztSQw==} engines: {node: '>=16'} hasBin: true @@ -11892,6 +11954,9 @@ packages: stream-shift@1.0.1: resolution: {integrity: sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==} + stream-shift@1.0.3: + resolution: {integrity: sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==} + streamsearch@1.1.0: resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} engines: {node: '>=10.0.0'} @@ -12096,10 +12161,6 @@ packages: resolution: {integrity: sha512-NmedZS0NJiTv3CoYnf1FtjxIDUgVYzEmavrc8q2WHRb+lP4deI9BpQfmNnBZZaWusDbP5FVFZCcvzb3xOlNVlQ==} engines: {node: '>=16'} - teeny-request@8.0.3: - resolution: {integrity: sha512-jJZpA5He2y52yUhA7pyAGZlgQpcB+xLjcN0eUFxr9c8hP/H7uOXbBNVo/O0C/xVfJLJs680jvkFgVJEEvk9+ww==} - engines: {node: '>=12'} - teeny-request@9.0.0: resolution: {integrity: sha512-resvxdc6Mgb7YEThw6G6bExlXKkv6+YbuzGg9xuXxSgxJF7Ozs+o8Y9+2R3sArdWdW8nOokoQb1yrpFB0pQK2g==} engines: {node: '>=14'} @@ -12218,6 +12279,9 @@ packages: resolution: {integrity: sha512-6udB24Q737UD/SDsKAHI9FCRP7Bqc9D/MQUV02ORQg5iskjtLJlZJNdN4kKtcdtwCeWIwIHDGaUsTsCCAa8sFQ==} engines: {node: '>=10'} + toml@3.0.0: + resolution: {integrity: sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==} + toposort@2.0.2: resolution: {integrity: sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==} @@ -13259,7 +13323,7 @@ snapshots: '@acuminous/bitsyntax@0.1.2': dependencies: buffer-more-ints: 1.0.0 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 safe-buffer: 5.1.2 transitivePeerDependencies: - supports-color @@ -13985,6 +14049,11 @@ snapshots: '@smithy/types': 2.12.0 tslib: 2.6.2 + '@aws-sdk/node-http-handler@3.374.0': + dependencies: + '@smithy/node-http-handler': 1.1.0 + tslib: 2.6.2 + '@aws-sdk/region-config-resolver@3.470.0': dependencies: '@smithy/node-config-provider': 2.3.0 @@ -14175,7 +14244,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@azure/core-http@2.3.2(encoding@0.1.13)': + '@azure/core-http@3.0.4(encoding@0.1.13)': dependencies: '@azure/abort-controller': 1.1.0 '@azure/core-auth': 1.6.0 @@ -14187,7 +14256,6 @@ snapshots: form-data: 4.0.0 node-fetch: 2.7.0(encoding@0.1.13) process: 0.11.10 - tough-cookie: 4.1.3 tslib: 2.6.2 tunnel: 0.0.6 uuid: 8.3.2 @@ -14320,10 +14388,10 @@ snapshots: jsonwebtoken: 9.0.2 uuid: 8.3.2 - '@azure/storage-blob@12.11.0(encoding@0.1.13)': + '@azure/storage-blob@12.18.0(encoding@0.1.13)': dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-http': 2.3.2(encoding@0.1.13) + '@azure/core-http': 3.0.4(encoding@0.1.13) '@azure/core-lro': 2.4.0 '@azure/core-paging': 1.3.0 '@azure/core-tracing': 1.0.0-preview.13 @@ -14384,7 +14452,7 @@ snapshots: '@babel/traverse': 7.24.6 '@babel/types': 7.24.6 convert-source-map: 2.0.0 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 7.6.0 @@ -15395,7 +15463,7 @@ snapshots: '@babel/helper-split-export-declaration': 7.24.6 '@babel/parser': 7.24.6 '@babel/types': 7.24.6 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -15677,7 +15745,7 @@ snapshots: '@eslint/eslintrc@2.1.4': dependencies: ajv: 6.12.6 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 espree: 9.6.1 globals: 13.20.0 ignore: 5.2.4 @@ -15742,8 +15810,8 @@ snapshots: url-join: 4.0.1 zod: 3.23.8 optionalDependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) - langchain: 0.2.11(6hdkxymucpmkiknmt5geracdu4) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) + langchain: 0.2.11(m7otbkpxyspoz5trt2pa3dcs6u) transitivePeerDependencies: - encoding @@ -15760,14 +15828,14 @@ snapshots: - encoding - supports-color - '@google-cloud/paginator@3.0.7': + '@google-cloud/paginator@5.0.2': dependencies: arrify: 2.0.1 extend: 3.0.2 - '@google-cloud/projectify@3.0.0': {} + '@google-cloud/projectify@4.0.0': {} - '@google-cloud/promisify@3.0.1': {} + '@google-cloud/promisify@4.0.0': {} '@google-cloud/resource-manager@5.3.0(encoding@0.1.13)': dependencies: @@ -15783,24 +15851,22 @@ snapshots: - encoding - supports-color - '@google-cloud/storage@6.11.0(encoding@0.1.13)': + '@google-cloud/storage@7.12.1(encoding@0.1.13)': dependencies: - '@google-cloud/paginator': 3.0.7 - '@google-cloud/projectify': 3.0.0 - '@google-cloud/promisify': 3.0.1 + '@google-cloud/paginator': 5.0.2 + '@google-cloud/projectify': 4.0.0 + '@google-cloud/promisify': 4.0.0 abort-controller: 3.0.0 async-retry: 1.3.3 - compressible: 2.0.18 - duplexify: 4.1.2 - ent: 2.2.0 - extend: 3.0.2 - gaxios: 5.1.0(encoding@0.1.13) - google-auth-library: 8.9.0(encoding@0.1.13) + duplexify: 4.1.3 + fast-xml-parser: 4.4.1 + gaxios: 6.6.0(encoding@0.1.13) + google-auth-library: 9.10.0(encoding@0.1.13) + html-entities: 2.5.2 mime: 3.0.0 - mime-types: 2.1.35 p-limit: 3.1.0 - retry-request: 5.0.2 - teeny-request: 8.0.3(encoding@0.1.13) + retry-request: 7.0.2(encoding@0.1.13) + teeny-request: 9.0.0(encoding@0.1.13) uuid: 8.3.2 transitivePeerDependencies: - encoding @@ -15837,7 +15903,7 @@ snapshots: '@humanwhocodes/config-array@0.11.14': dependencies: '@humanwhocodes/object-schema': 2.0.2 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -16161,7 +16227,7 @@ snapshots: '@kwsites/file-exists@1.1.1': dependencies: - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 transitivePeerDependencies: - supports-color @@ -16170,7 +16236,7 @@ snapshots: '@langchain/anthropic@0.2.9(encoding@0.1.13)(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13))': dependencies: '@anthropic-ai/sdk': 0.22.0(encoding@0.1.13) - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) fast-xml-parser: 4.3.5 zod: 3.23.8 zod-to-json-schema: 3.23.0(zod@3.23.8) @@ -16182,23 +16248,23 @@ snapshots: '@langchain/cohere@0.0.10(encoding@0.1.13)(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13))': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) cohere-ai: 7.10.1(encoding@0.1.13) transitivePeerDependencies: - encoding - langchain - openai - '@langchain/community@0.2.20(32xju6nqoe2wrsbntqq2x5vcke)': + '@langchain/community@0.2.20(a4iyb3banmlkrbqqp5ye37i4cm)': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) - '@langchain/openai': 0.2.5(encoding@0.1.13)(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4)) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) + '@langchain/openai': 0.2.5(encoding@0.1.13)(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u)) binary-extensions: 2.2.0 expr-eval: 2.0.2 flat: 5.0.2 js-yaml: 4.1.0 - langchain: 0.2.11(6hdkxymucpmkiknmt5geracdu4) - langsmith: 0.1.34(@langchain/core@0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)))(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + langchain: 0.2.11(m7otbkpxyspoz5trt2pa3dcs6u) + langsmith: 0.1.34(@langchain/core@0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)))(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) uuid: 10.0.0 zod: 3.23.8 zod-to-json-schema: 3.23.0(zod@3.23.8) @@ -16206,10 +16272,11 @@ snapshots: '@aws-sdk/client-bedrock-runtime': 3.535.0 '@aws-sdk/client-s3': 3.478.0 '@aws-sdk/credential-provider-node': 3.535.0 + '@azure/storage-blob': 12.18.0(encoding@0.1.13) '@getzep/zep-cloud': 1.0.11(@langchain/core@0.2.18)(encoding@0.1.13)(langchain@0.2.11) '@getzep/zep-js': 0.9.0 '@google-ai/generativelanguage': 2.5.0(encoding@0.1.13) - '@google-cloud/storage': 6.11.0(encoding@0.1.13) + '@google-cloud/storage': 7.12.1(encoding@0.1.13) '@huggingface/inference': 2.7.0 '@mozilla/readability': 0.5.0 '@pinecone-database/pinecone': 3.0.0 @@ -16259,13 +16326,13 @@ snapshots: - pyodide - supports-color - '@langchain/core@0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13))': + '@langchain/core@0.2.18(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0)': dependencies: ansi-styles: 5.2.0 camelcase: 6.3.0 decamelize: 1.2.0 js-tiktoken: 1.0.12 - langsmith: 0.1.39(@langchain/core@0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)))(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + langsmith: 0.1.39(@langchain/core@0.2.18(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0))(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0) ml-distance: 4.0.1 mustache: 4.2.0 p-queue: 6.6.2 @@ -16277,13 +16344,13 @@ snapshots: - langchain - openai - '@langchain/core@0.2.18(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0)': + '@langchain/core@0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13))': dependencies: ansi-styles: 5.2.0 camelcase: 6.3.0 decamelize: 1.2.0 js-tiktoken: 1.0.12 - langsmith: 0.1.39(@langchain/core@0.2.18(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0))(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0) + langsmith: 0.1.39(@langchain/core@0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)))(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) ml-distance: 4.0.1 mustache: 4.2.0 p-queue: 6.6.2 @@ -16295,9 +16362,9 @@ snapshots: - langchain - openai - '@langchain/google-common@0.0.22(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13))(zod@3.23.8)': + '@langchain/google-common@0.0.22(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13))(zod@3.23.8)': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) uuid: 10.0.0 zod-to-json-schema: 3.23.0(zod@3.23.8) transitivePeerDependencies: @@ -16305,10 +16372,10 @@ snapshots: - openai - zod - '@langchain/google-gauth@0.0.21(encoding@0.1.13)(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13))(zod@3.23.8)': + '@langchain/google-gauth@0.0.21(encoding@0.1.13)(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13))(zod@3.23.8)': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) - '@langchain/google-common': 0.0.22(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13))(zod@3.23.8) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) + '@langchain/google-common': 0.0.22(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13))(zod@3.23.8) google-auth-library: 8.9.0(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -16320,7 +16387,7 @@ snapshots: '@langchain/google-genai@0.0.23(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13))(zod@3.23.8)': dependencies: '@google/generative-ai': 0.7.1 - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) zod-to-json-schema: 3.23.0(zod@3.23.8) transitivePeerDependencies: - langchain @@ -16329,8 +16396,8 @@ snapshots: '@langchain/google-vertexai@0.0.21(encoding@0.1.13)(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13))(zod@3.23.8)': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) - '@langchain/google-gauth': 0.0.21(encoding@0.1.13)(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13))(zod@3.23.8) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) + '@langchain/google-gauth': 0.0.21(encoding@0.1.13)(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13))(zod@3.23.8) transitivePeerDependencies: - encoding - langchain @@ -16340,8 +16407,8 @@ snapshots: '@langchain/groq@0.0.15(encoding@0.1.13)(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13))': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) - '@langchain/openai': 0.2.5(encoding@0.1.13)(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4)) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) + '@langchain/openai': 0.2.5(encoding@0.1.13)(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u)) groq-sdk: 0.3.2(encoding@0.1.13) zod: 3.23.8 zod-to-json-schema: 3.23.0(zod@3.23.8) @@ -16353,7 +16420,7 @@ snapshots: '@langchain/mistralai@0.0.27(encoding@0.1.13)(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13))': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) '@mistralai/mistralai': 0.4.0(encoding@0.1.13) uuid: 10.0.0 zod: 3.23.8 @@ -16365,16 +16432,16 @@ snapshots: '@langchain/ollama@0.0.2(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13))': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) ollama: 0.5.6 uuid: 10.0.0 transitivePeerDependencies: - langchain - openai - '@langchain/openai@0.2.5(encoding@0.1.13)(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))': + '@langchain/openai@0.2.5(encoding@0.1.13)(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) js-tiktoken: 1.0.12 openai: 4.53.0(encoding@0.1.13) zod: 3.23.8 @@ -16384,9 +16451,9 @@ snapshots: - langchain - supports-color - '@langchain/openai@0.2.5(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))': + '@langchain/openai@0.2.5(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0) + '@langchain/core': 0.2.18(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0) js-tiktoken: 1.0.12 openai: 4.53.0(encoding@0.1.13) zod: 3.23.8 @@ -16397,9 +16464,9 @@ snapshots: - supports-color optional: true - '@langchain/pinecone@0.0.8(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13))': + '@langchain/pinecone@0.0.8(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13))': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) '@pinecone-database/pinecone': 3.0.0 flat: 5.0.2 uuid: 10.0.0 @@ -16407,9 +16474,9 @@ snapshots: - langchain - openai - '@langchain/qdrant@0.0.5(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13))(typescript@5.5.2)': + '@langchain/qdrant@0.0.5(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13))(typescript@5.5.2)': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) '@qdrant/js-client-rest': 1.9.0(typescript@5.5.2) uuid: 9.0.1 transitivePeerDependencies: @@ -16417,30 +16484,30 @@ snapshots: - openai - typescript - '@langchain/redis@0.0.5(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13))': + '@langchain/redis@0.0.5(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13))': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) redis: 4.6.13 transitivePeerDependencies: - langchain - openai - '@langchain/textsplitters@0.0.3(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13))': + '@langchain/textsplitters@0.0.3(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0)': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + '@langchain/core': 0.2.18(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0) js-tiktoken: 1.0.12 transitivePeerDependencies: - langchain - openai + optional: true - '@langchain/textsplitters@0.0.3(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0)': + '@langchain/textsplitters@0.0.3(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13))': dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) js-tiktoken: 1.0.12 transitivePeerDependencies: - langchain - openai - optional: true '@lezer/common@1.1.0': {} @@ -16571,7 +16638,7 @@ snapshots: '@n8n/localtunnel@3.0.0': dependencies: - axios: 1.7.3(debug@4.3.6) + axios: 1.7.4(debug@4.3.6) debug: 4.3.6 transitivePeerDependencies: - supports-color @@ -16809,25 +16876,25 @@ snapshots: '@radix-ui/primitive@1.0.1': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 '@radix-ui/react-compose-refs@1.0.1(@types/react@18.0.27)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 react: 18.2.0 optionalDependencies: '@types/react': 18.0.27 '@radix-ui/react-context@1.0.1(@types/react@18.0.27)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 react: 18.2.0 optionalDependencies: '@types/react': 18.0.27 '@radix-ui/react-dialog@1.0.5(@types/react@18.0.27)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.0.27)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.0.27)(react@18.2.0) @@ -16849,7 +16916,7 @@ snapshots: '@radix-ui/react-dismissable-layer@1.0.5(@types/react@18.0.27)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.0.27)(react@18.2.0) '@radix-ui/react-primitive': 1.0.3(@types/react@18.0.27)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -16862,14 +16929,14 @@ snapshots: '@radix-ui/react-focus-guards@1.0.1(@types/react@18.0.27)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 react: 18.2.0 optionalDependencies: '@types/react': 18.0.27 '@radix-ui/react-focus-scope@1.0.4(@types/react@18.0.27)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.0.27)(react@18.2.0) '@radix-ui/react-primitive': 1.0.3(@types/react@18.0.27)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.0.27)(react@18.2.0) @@ -16880,7 +16947,7 @@ snapshots: '@radix-ui/react-id@1.0.1(@types/react@18.0.27)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.0.27)(react@18.2.0) react: 18.2.0 optionalDependencies: @@ -16888,7 +16955,7 @@ snapshots: '@radix-ui/react-portal@1.0.4(@types/react@18.0.27)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 '@radix-ui/react-primitive': 1.0.3(@types/react@18.0.27)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -16897,7 +16964,7 @@ snapshots: '@radix-ui/react-presence@1.0.1(@types/react@18.0.27)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.0.27)(react@18.2.0) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.0.27)(react@18.2.0) react: 18.2.0 @@ -16907,7 +16974,7 @@ snapshots: '@radix-ui/react-primitive@1.0.3(@types/react@18.0.27)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 '@radix-ui/react-slot': 1.0.2(@types/react@18.0.27)(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -16916,7 +16983,7 @@ snapshots: '@radix-ui/react-slot@1.0.2(@types/react@18.0.27)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.0.27)(react@18.2.0) react: 18.2.0 optionalDependencies: @@ -16924,14 +16991,14 @@ snapshots: '@radix-ui/react-use-callback-ref@1.0.1(@types/react@18.0.27)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 react: 18.2.0 optionalDependencies: '@types/react': 18.0.27 '@radix-ui/react-use-controllable-state@1.0.1(@types/react@18.0.27)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.0.27)(react@18.2.0) react: 18.2.0 optionalDependencies: @@ -16939,7 +17006,7 @@ snapshots: '@radix-ui/react-use-escape-keydown@1.0.3(@types/react@18.0.27)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.0.27)(react@18.2.0) react: 18.2.0 optionalDependencies: @@ -16947,7 +17014,7 @@ snapshots: '@radix-ui/react-use-layout-effect@1.0.1(@types/react@18.0.27)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 react: 18.2.0 optionalDependencies: '@types/react': 18.0.27 @@ -17133,9 +17200,9 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.18.0': optional: true - '@rudderstack/rudder-sdk-node@2.0.7(tslib@2.6.2)': + '@rudderstack/rudder-sdk-node@2.0.9(tslib@2.6.2)': dependencies: - axios: 1.7.3(debug@4.3.6) + axios: 1.7.4(debug@4.3.6) axios-retry: 3.7.0 component-type: 1.2.1 join-component: 1.1.0 @@ -17298,6 +17365,11 @@ snapshots: dependencies: '@sinonjs/commons': 3.0.1 + '@smithy/abort-controller@1.1.0': + dependencies: + '@smithy/types': 1.2.0 + tslib: 2.6.2 + '@smithy/abort-controller@2.2.0': dependencies: '@smithy/types': 2.12.0 @@ -17457,6 +17529,14 @@ snapshots: '@smithy/types': 2.12.0 tslib: 2.6.2 + '@smithy/node-http-handler@1.1.0': + dependencies: + '@smithy/abort-controller': 1.1.0 + '@smithy/protocol-http': 1.2.0 + '@smithy/querystring-builder': 1.1.0 + '@smithy/types': 1.2.0 + tslib: 2.6.2 + '@smithy/node-http-handler@2.5.0': dependencies: '@smithy/abort-controller': 2.2.0 @@ -17470,11 +17550,22 @@ snapshots: '@smithy/types': 2.12.0 tslib: 2.6.2 + '@smithy/protocol-http@1.2.0': + dependencies: + '@smithy/types': 1.2.0 + tslib: 2.6.2 + '@smithy/protocol-http@3.3.0': dependencies: '@smithy/types': 2.12.0 tslib: 2.6.2 + '@smithy/querystring-builder@1.1.0': + dependencies: + '@smithy/types': 1.2.0 + '@smithy/util-uri-escape': 1.1.0 + tslib: 2.6.2 + '@smithy/querystring-builder@2.2.0': dependencies: '@smithy/types': 2.12.0 @@ -17514,6 +17605,10 @@ snapshots: '@smithy/util-stream': 2.2.0 tslib: 2.6.2 + '@smithy/types@1.2.0': + dependencies: + tslib: 2.6.2 + '@smithy/types@2.12.0': dependencies: tslib: 2.6.2 @@ -17597,6 +17692,10 @@ snapshots: '@smithy/util-utf8': 2.3.0 tslib: 2.6.2 + '@smithy/util-uri-escape@1.1.0': + dependencies: + tslib: 2.6.2 + '@smithy/util-uri-escape@2.2.0': dependencies: tslib: 2.6.2 @@ -18732,7 +18831,7 @@ snapshots: '@types/sizzle@2.3.3': {} - '@types/snowflake-sdk@1.6.20': + '@types/snowflake-sdk@1.6.24': dependencies: '@types/node': 18.16.16 generic-pool: 3.9.0 @@ -18890,7 +18989,7 @@ snapshots: dependencies: '@typescript-eslint/typescript-estree': 7.2.0(typescript@5.5.2) '@typescript-eslint/utils': 7.2.0(eslint@8.57.0)(typescript@5.5.2) - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 eslint: 8.57.0 ts-api-utils: 1.0.1(typescript@5.5.2) optionalDependencies: @@ -18920,7 +19019,7 @@ snapshots: dependencies: '@typescript-eslint/types': 7.2.0 '@typescript-eslint/visitor-keys': 7.2.0 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.3 @@ -18980,7 +19079,7 @@ snapshots: dependencies: '@ampproject/remapping': 2.2.1 '@bcoe/v8-coverage': 0.2.3 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 5.0.4 @@ -19319,19 +19418,19 @@ snapshots: agent-base@6.0.2: dependencies: - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 transitivePeerDependencies: - supports-color agent-base@7.1.0: dependencies: - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 transitivePeerDependencies: - supports-color agentkeepalive@4.2.1: dependencies: - debug: 4.3.4 + debug: 4.3.6 depd: 1.1.2 humanize-ms: 1.2.1 transitivePeerDependencies: @@ -19611,26 +19710,10 @@ snapshots: axios-retry@3.7.0: dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 is-retry-allowed: 2.2.0 - axios@1.7.3(debug@3.2.7): - dependencies: - follow-redirects: 1.15.6(debug@3.2.7) - form-data: 4.0.0 - proxy-from-env: 1.1.0 - transitivePeerDependencies: - - debug - - axios@1.7.3(debug@4.3.4): - dependencies: - follow-redirects: 1.15.6(debug@4.3.4) - form-data: 4.0.0 - proxy-from-env: 1.1.0 - transitivePeerDependencies: - - debug - - axios@1.7.3(debug@4.3.6): + axios@1.7.4(debug@4.3.6): dependencies: follow-redirects: 1.15.6(debug@4.3.6) form-data: 4.0.0 @@ -20641,10 +20724,6 @@ snapshots: optionalDependencies: supports-color: 8.1.1 - debug@4.3.4: - dependencies: - ms: 2.1.2 - debug@4.3.4(supports-color@8.1.1): dependencies: ms: 2.1.2 @@ -20780,7 +20859,7 @@ snapshots: detect-port@1.5.1: dependencies: address: 1.2.2 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 transitivePeerDependencies: - supports-color @@ -20899,6 +20978,13 @@ snapshots: readable-stream: 3.6.0 stream-shift: 1.0.1 + duplexify@4.1.3: + dependencies: + end-of-stream: 1.4.4 + inherits: 2.0.4 + readable-stream: 3.6.0 + stream-shift: 1.0.3 + eastasianwidth@0.2.0: {} ecc-jsbn@0.1.2: @@ -20977,8 +21063,6 @@ snapshots: dependencies: ansi-colors: 4.1.3 - ent@2.2.0: {} - entities@2.2.0: {} entities@3.0.1: {} @@ -21154,7 +21238,7 @@ snapshots: esbuild-register@3.5.0(esbuild@0.20.2): dependencies: - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 esbuild: 0.20.2 transitivePeerDependencies: - supports-color @@ -21239,7 +21323,7 @@ snapshots: eslint-import-resolver-node@0.3.9: dependencies: - debug: 3.2.7(supports-color@8.1.1) + debug: 3.2.7(supports-color@5.5.0) is-core-module: 2.13.1 resolve: 1.22.8 transitivePeerDependencies: @@ -21264,7 +21348,7 @@ snapshots: eslint-module-utils@2.8.0(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0): dependencies: - debug: 3.2.7(supports-color@8.1.1) + debug: 3.2.7(supports-color@5.5.0) optionalDependencies: '@typescript-eslint/parser': 7.2.0(eslint@8.57.0)(typescript@5.5.2) eslint: 8.57.0 @@ -21284,7 +21368,7 @@ snapshots: array.prototype.findlastindex: 1.2.3 array.prototype.flat: 1.3.2 array.prototype.flatmap: 1.3.2 - debug: 3.2.7(supports-color@8.1.1) + debug: 3.2.7(supports-color@5.5.0) doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 @@ -21687,11 +21771,11 @@ snapshots: dependencies: strnum: 1.0.5 - fast-xml-parser@4.2.7: + fast-xml-parser@4.3.5: dependencies: strnum: 1.0.5 - fast-xml-parser@4.3.5: + fast-xml-parser@4.4.1: dependencies: strnum: 1.0.5 @@ -21815,14 +21899,6 @@ snapshots: fn.name@1.1.0: {} - follow-redirects@1.15.6(debug@3.2.7): - optionalDependencies: - debug: 3.2.7(supports-color@8.1.1) - - follow-redirects@1.15.6(debug@4.3.4): - optionalDependencies: - debug: 4.3.4(supports-color@8.1.1) - follow-redirects@1.15.6(debug@4.3.6): optionalDependencies: debug: 4.3.6 @@ -22162,7 +22238,7 @@ snapshots: array-parallel: 0.1.3 array-series: 0.1.5 cross-spawn: 4.0.2 - debug: 3.2.7(supports-color@8.1.1) + debug: 3.2.7(supports-color@5.5.0) transitivePeerDependencies: - supports-color @@ -22359,6 +22435,8 @@ snapshots: dependencies: whatwg-encoding: 3.1.1 + html-entities@2.5.2: {} + html-escaper@2.0.2: {} html-to-text@9.0.5: @@ -22414,7 +22492,7 @@ snapshots: http-proxy-agent@7.0.0: dependencies: agent-base: 7.1.0 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 transitivePeerDependencies: - supports-color @@ -22429,14 +22507,14 @@ snapshots: https-proxy-agent@5.0.1: dependencies: agent-base: 6.0.2 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 transitivePeerDependencies: - supports-color https-proxy-agent@7.0.2: dependencies: agent-base: 7.1.0 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 transitivePeerDependencies: - supports-color @@ -22505,7 +22583,7 @@ snapshots: infisical-node@1.3.0: dependencies: - axios: 1.7.3(debug@4.3.6) + axios: 1.7.4(debug@4.3.6) dotenv: 16.3.1 tweetnacl: 1.0.3 tweetnacl-util: 0.15.1 @@ -22817,7 +22895,7 @@ snapshots: istanbul-lib-source-maps@5.0.4: dependencies: '@jridgewell/trace-mapping': 0.3.25 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 istanbul-lib-coverage: 3.2.2 transitivePeerDependencies: - supports-color @@ -23476,17 +23554,43 @@ snapshots: kuler@2.0.0: {} - langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4): + langchain@0.2.11(axios@1.7.4)(openai@4.53.0): + dependencies: + '@langchain/core': 0.2.18(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0) + '@langchain/openai': 0.2.5(langchain@0.2.11(axios@1.7.4)(openai@4.53.0)) + '@langchain/textsplitters': 0.0.3(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0) + binary-extensions: 2.2.0 + js-tiktoken: 1.0.12 + js-yaml: 4.1.0 + jsonpointer: 5.0.1 + langchainhub: 0.0.8 + langsmith: 0.1.34(@langchain/core@0.2.18(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0))(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0) + ml-distance: 4.0.1 + openapi-types: 12.1.3 + p-retry: 4.6.2 + uuid: 10.0.0 + yaml: 2.3.4 + zod: 3.23.8 + zod-to-json-schema: 3.23.0(zod@3.23.8) + optionalDependencies: + axios: 1.7.4(debug@4.3.6) + transitivePeerDependencies: + - encoding + - openai + - supports-color + optional: true + + langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u): dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) - '@langchain/openai': 0.2.5(encoding@0.1.13)(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4)) - '@langchain/textsplitters': 0.0.3(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) + '@langchain/openai': 0.2.5(encoding@0.1.13)(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u)) + '@langchain/textsplitters': 0.0.3(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) binary-extensions: 2.2.0 js-tiktoken: 1.0.12 js-yaml: 4.1.0 jsonpointer: 5.0.1 langchainhub: 0.0.8 - langsmith: 0.1.34(@langchain/core@0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)))(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) + langsmith: 0.1.34(@langchain/core@0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)))(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) ml-distance: 4.0.1 openapi-types: 12.1.3 p-retry: 4.6.2 @@ -23497,9 +23601,10 @@ snapshots: optionalDependencies: '@aws-sdk/client-s3': 3.478.0 '@aws-sdk/credential-provider-node': 3.535.0 + '@azure/storage-blob': 12.18.0(encoding@0.1.13) '@langchain/anthropic': 0.2.9(encoding@0.1.13)(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13)) '@langchain/cohere': 0.0.10(encoding@0.1.13)(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13)) - '@langchain/community': 0.2.20(32xju6nqoe2wrsbntqq2x5vcke) + '@langchain/community': 0.2.20(a4iyb3banmlkrbqqp5ye37i4cm) '@langchain/google-genai': 0.0.23(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13))(zod@3.23.8) '@langchain/google-vertexai': 0.0.21(encoding@0.1.13)(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13))(zod@3.23.8) '@langchain/groq': 0.0.15(encoding@0.1.13)(langchain@0.2.11)(openai@4.53.0(encoding@0.1.13)) @@ -23508,11 +23613,11 @@ snapshots: '@pinecone-database/pinecone': 3.0.0 '@supabase/supabase-js': 2.43.4 '@xata.io/client': 0.28.4(typescript@5.5.2) - axios: 1.7.3(debug@3.2.7) + axios: 1.7.4(debug@4.3.6) cheerio: 1.0.0-rc.12 d3-dsv: 2.0.0 epub2: 3.0.2(ts-toolbelt@9.6.0) - fast-xml-parser: 4.3.5 + fast-xml-parser: 4.4.1 handlebars: 4.7.8 html-to-text: 9.0.5 ignore: 5.2.4 @@ -23527,35 +23632,9 @@ snapshots: - openai - supports-color - langchain@0.2.11(axios@1.7.3)(openai@4.53.0): - dependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0) - '@langchain/openai': 0.2.5(langchain@0.2.11(axios@1.7.3)(openai@4.53.0)) - '@langchain/textsplitters': 0.0.3(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0) - binary-extensions: 2.2.0 - js-tiktoken: 1.0.12 - js-yaml: 4.1.0 - jsonpointer: 5.0.1 - langchainhub: 0.0.8 - langsmith: 0.1.34(@langchain/core@0.2.18(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0))(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0) - ml-distance: 4.0.1 - openapi-types: 12.1.3 - p-retry: 4.6.2 - uuid: 10.0.0 - yaml: 2.3.4 - zod: 3.23.8 - zod-to-json-schema: 3.23.0(zod@3.23.8) - optionalDependencies: - axios: 1.7.3(debug@3.2.7) - transitivePeerDependencies: - - encoding - - openai - - supports-color - optional: true - langchainhub@0.0.8: {} - langsmith@0.1.34(@langchain/core@0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)))(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)): + langsmith@0.1.34(@langchain/core@0.2.18(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0))(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0): dependencies: '@types/uuid': 9.0.7 commander: 10.0.1 @@ -23564,11 +23643,12 @@ snapshots: p-retry: 4.6.2 uuid: 9.0.1 optionalDependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) - langchain: 0.2.11(6hdkxymucpmkiknmt5geracdu4) + '@langchain/core': 0.2.18(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0) + langchain: 0.2.11(axios@1.7.4)(openai@4.53.0) openai: 4.53.0(encoding@0.1.13) + optional: true - langsmith@0.1.34(@langchain/core@0.2.18(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0))(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0): + langsmith@0.1.34(@langchain/core@0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)))(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)): dependencies: '@types/uuid': 9.0.7 commander: 10.0.1 @@ -23577,12 +23657,11 @@ snapshots: p-retry: 4.6.2 uuid: 9.0.1 optionalDependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0) - langchain: 0.2.11(axios@1.7.3)(openai@4.53.0) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) + langchain: 0.2.11(m7otbkpxyspoz5trt2pa3dcs6u) openai: 4.53.0(encoding@0.1.13) - optional: true - langsmith@0.1.39(@langchain/core@0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)))(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)): + langsmith@0.1.39(@langchain/core@0.2.18(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0))(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0): dependencies: '@types/uuid': 9.0.7 commander: 10.0.1 @@ -23590,11 +23669,11 @@ snapshots: p-retry: 4.6.2 uuid: 9.0.1 optionalDependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(6hdkxymucpmkiknmt5geracdu4))(openai@4.53.0(encoding@0.1.13)) - langchain: 0.2.11(6hdkxymucpmkiknmt5geracdu4) + '@langchain/core': 0.2.18(langchain@0.2.11(axios@1.7.4)(openai@4.53.0))(openai@4.53.0) + langchain: 0.2.11(axios@1.7.4)(openai@4.53.0) openai: 4.53.0(encoding@0.1.13) - langsmith@0.1.39(@langchain/core@0.2.18(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0))(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0): + langsmith@0.1.39(@langchain/core@0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)))(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)): dependencies: '@types/uuid': 9.0.7 commander: 10.0.1 @@ -23602,8 +23681,8 @@ snapshots: p-retry: 4.6.2 uuid: 9.0.1 optionalDependencies: - '@langchain/core': 0.2.18(langchain@0.2.11(axios@1.7.3)(openai@4.53.0))(openai@4.53.0) - langchain: 0.2.11(axios@1.7.3)(openai@4.53.0) + '@langchain/core': 0.2.18(langchain@0.2.11(m7otbkpxyspoz5trt2pa3dcs6u))(openai@4.53.0(encoding@0.1.13)) + langchain: 0.2.11(m7otbkpxyspoz5trt2pa3dcs6u) openai: 4.53.0(encoding@0.1.13) lazy-ass@1.6.0: {} @@ -23620,7 +23699,7 @@ snapshots: '@types/node': 18.16.16 '@types/uuid': 9.0.7 asn1: 0.2.6 - debug: 4.3.4 + debug: 4.3.4(supports-color@8.1.1) strict-event-emitter-types: 2.0.0 uuid: 9.0.1 transitivePeerDependencies: @@ -24188,7 +24267,7 @@ snapshots: mqtt-packet@9.0.0: dependencies: bl: 6.0.12 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 process-nextick-args: 2.0.1 transitivePeerDependencies: - supports-color @@ -24483,7 +24562,7 @@ snapshots: number-allocator@1.0.14: dependencies: - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 js-sdsl: 4.3.0 transitivePeerDependencies: - supports-color @@ -24842,7 +24921,7 @@ snapshots: pdf-parse@1.1.1: dependencies: - debug: 3.2.7(supports-color@8.1.1) + debug: 3.2.7(supports-color@5.5.0) node-ensure: 0.0.0 transitivePeerDependencies: - supports-color @@ -25051,7 +25130,7 @@ snapshots: posthog-node@3.2.1: dependencies: - axios: 1.7.3(debug@4.3.6) + axios: 1.7.4(debug@4.3.6) rusha: 0.8.14 transitivePeerDependencies: - debug @@ -25599,7 +25678,7 @@ snapshots: regenerator-transform@0.15.2: dependencies: - '@babel/runtime': 7.23.6 + '@babel/runtime': 7.24.7 regexp-tree@0.1.27: {} @@ -25708,13 +25787,6 @@ snapshots: onetime: 5.1.2 signal-exit: 3.0.7 - retry-request@5.0.2: - dependencies: - debug: 4.3.6 - extend: 3.0.2 - transitivePeerDependencies: - - supports-color - retry-request@7.0.2(encoding@0.1.13): dependencies: '@types/request': 2.48.12 @@ -25738,7 +25810,7 @@ snapshots: rhea@1.0.24: dependencies: - debug: 3.2.7(supports-color@8.1.1) + debug: 3.2.7(supports-color@5.5.0) transitivePeerDependencies: - supports-color @@ -26042,7 +26114,7 @@ snapshots: dependencies: '@kwsites/file-exists': 1.1.1 '@kwsites/promise-deferred': 1.1.1 - debug: 4.3.4 + debug: 4.3.4(supports-color@8.1.1) transitivePeerDependencies: - supports-color @@ -26058,7 +26130,7 @@ snapshots: simple-websocket@9.1.0: dependencies: - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 queue-microtask: 1.2.3 randombytes: 2.1.0 readable-stream: 3.6.0 @@ -26096,29 +26168,27 @@ snapshots: dot-case: 3.0.4 tslib: 2.6.2 - snowflake-sdk@1.9.2(asn1.js@5.4.1)(encoding@0.1.13): + snowflake-sdk@1.12.0(asn1.js@5.4.1)(encoding@0.1.13): dependencies: '@aws-sdk/client-s3': 3.478.0 - '@azure/storage-blob': 12.11.0(encoding@0.1.13) - '@google-cloud/storage': 6.11.0(encoding@0.1.13) + '@aws-sdk/node-http-handler': 3.374.0 + '@azure/storage-blob': 12.18.0(encoding@0.1.13) + '@google-cloud/storage': 7.12.1(encoding@0.1.13) '@techteamer/ocsp': 1.0.1 - agent-base: 6.0.2 asn1.js: 5.4.1 asn1.js-rfc2560: 5.0.1(asn1.js@5.4.1) asn1.js-rfc5280: 3.0.0 - axios: 1.7.3(debug@3.2.7) + axios: 1.7.4(debug@4.3.6) big-integer: 1.6.51 bignumber.js: 9.1.2 binascii: 0.0.2 bn.js: 5.2.1 browser-request: 0.3.3 - debug: 3.2.7(supports-color@8.1.1) expand-tilde: 2.0.2 - extend: 3.0.2 - fast-xml-parser: 4.2.7 + fast-xml-parser: 4.3.5 fastest-levenshtein: 1.0.16 generic-pool: 3.9.0 - glob: 9.3.2 + glob: 10.3.10 https-proxy-agent: 7.0.2 jsonwebtoken: 9.0.2 mime-types: 2.1.35 @@ -26128,11 +26198,12 @@ snapshots: open: 7.4.2 python-struct: 1.1.3 simple-lru-cache: 0.0.2 - tmp: 0.2.1 + toml: 3.0.0 uuid: 8.3.2 winston: 3.8.2 transitivePeerDependencies: - aws-crt + - debug - encoding - supports-color @@ -26260,16 +26331,16 @@ snapshots: standard-as-callback@2.1.0: {} - start-server-and-test@2.0.3: + start-server-and-test@2.0.5: dependencies: arg: 5.0.2 bluebird: 3.7.2 check-more-types: 2.24.0 - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.6 execa: 5.1.1 lazy-ass: 1.6.0 ps-tree: 1.2.0 - wait-on: 7.2.0(debug@4.3.4) + wait-on: 7.2.0(debug@4.3.6) transitivePeerDependencies: - supports-color @@ -26318,6 +26389,8 @@ snapshots: stream-shift@1.0.1: {} + stream-shift@1.0.3: {} + streamsearch@1.1.0: {} strict-event-emitter-types@2.0.0: {} @@ -26463,7 +26536,7 @@ snapshots: dependencies: component-emitter: 1.3.0 cookiejar: 2.1.4 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 fast-safe-stringify: 2.1.1 form-data: 4.0.0 formidable: 3.5.1 @@ -26601,17 +26674,6 @@ snapshots: transitivePeerDependencies: - supports-color - teeny-request@8.0.3(encoding@0.1.13): - dependencies: - http-proxy-agent: 5.0.0 - https-proxy-agent: 5.0.1 - node-fetch: 2.7.0(encoding@0.1.13) - stream-events: 1.0.5 - uuid: 9.0.1 - transitivePeerDependencies: - - encoding - - supports-color - teeny-request@9.0.0(encoding@0.1.13): dependencies: http-proxy-agent: 5.0.0 @@ -26730,6 +26792,8 @@ snapshots: '@tokenizer/token': 0.3.0 ieee754: 1.2.1 + toml@3.0.0: {} + toposort@2.0.2: {} touch@3.1.0: @@ -27219,7 +27283,7 @@ snapshots: vite-node@1.6.0(@types/node@18.16.16)(sass@1.64.1)(terser@5.16.1): dependencies: cac: 6.7.14 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 pathe: 1.1.2 picocolors: 1.0.1 vite: 5.2.12(@types/node@18.16.16)(sass@1.64.1)(terser@5.16.1) @@ -27276,7 +27340,7 @@ snapshots: '@vitest/utils': 1.6.0 acorn-walk: 8.3.2 chai: 4.3.10 - debug: 4.3.5(supports-color@8.1.1) + debug: 4.3.6 execa: 8.0.1 local-pkg: 0.5.0 magic-string: 0.30.10 @@ -27436,9 +27500,9 @@ snapshots: dependencies: xml-name-validator: 5.0.0 - wait-on@7.2.0(debug@4.3.4): + wait-on@7.2.0(debug@4.3.6): dependencies: - axios: 1.7.3(debug@4.3.4) + axios: 1.7.4(debug@4.3.6) joi: 17.11.0 lodash: 4.17.21 minimist: 1.2.8 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index cff49d01723b5..6d78dbe6bfaa3 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -10,7 +10,7 @@ catalog: '@types/lodash': ^4.14.195 '@types/uuid': ^8.3.2 '@types/xml2js': ^0.4.14 - axios: 1.7.3 + axios: 1.7.4 basic-auth: 2.0.1 fast-glob: 3.2.12 form-data: 4.0.0 From 6d82fb9fc0880d79107ef6202f09ba9d43412335 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Wed, 21 Aug 2024 13:46:57 +0300 Subject: [PATCH 2/7] fix(editor): Prevent unloading when changes are pending in new canvas (no-changelog) (#10474) --- .../src/composables/useBeforeUnload.spec.ts | 86 +++++++++++++++++++ .../src/composables/useBeforeUnload.ts | 48 +++++++++++ packages/editor-ui/src/views/NodeView.v2.vue | 14 +++ packages/editor-ui/src/views/NodeView.vue | 33 +++---- 4 files changed, 160 insertions(+), 21 deletions(-) create mode 100644 packages/editor-ui/src/composables/useBeforeUnload.spec.ts create mode 100644 packages/editor-ui/src/composables/useBeforeUnload.ts diff --git a/packages/editor-ui/src/composables/useBeforeUnload.spec.ts b/packages/editor-ui/src/composables/useBeforeUnload.spec.ts new file mode 100644 index 0000000000000..725b6fe1f2de2 --- /dev/null +++ b/packages/editor-ui/src/composables/useBeforeUnload.spec.ts @@ -0,0 +1,86 @@ +import { useBeforeUnload } from '@/composables/useBeforeUnload'; +import { STORES, VIEWS } from '@/constants'; +import { useUIStore } from '@/stores/ui.store'; +import { useCanvasStore } from '@/stores/canvas.store'; +import type { useRoute } from 'vue-router'; +import { setActivePinia } from 'pinia'; +import { createTestingPinia } from '@pinia/testing'; +import { mock } from 'vitest-mock-extended'; +import { describe } from 'vitest'; + +describe('useBeforeUnload', () => { + const defaultRoute = mock>({ name: 'someRoute' }); + + let uiStore: ReturnType; + let canvasStore: ReturnType; + + beforeEach(() => { + const pinia = createTestingPinia({ + initialState: { + [STORES.UI]: { + stateIsDirty: false, + }, + }, + }); + setActivePinia(pinia); + + uiStore = useUIStore(); + canvasStore = useCanvasStore(); + }); + + describe('onBeforeUnload', () => { + it('should do nothing if route is demo', () => { + const route = mock>({ name: VIEWS.DEMO }); + const { onBeforeUnload } = useBeforeUnload({ route }); + const event = new Event('beforeunload'); + + const result = onBeforeUnload(event); + + expect(result).toBeUndefined(); + }); + + it('should prompt user if state is dirty', () => { + uiStore.stateIsDirty = true; + const { onBeforeUnload } = useBeforeUnload({ route: defaultRoute }); + const event = new Event('beforeunload'); + + const result = onBeforeUnload(event); + + expect(result).toBe(true); + }); + + it('should start loading if state is not dirty', () => { + uiStore.stateIsDirty = false; + const startLoadingSpy = vi.spyOn(canvasStore, 'startLoading'); + const { onBeforeUnload } = useBeforeUnload({ route: defaultRoute }); + const event = new Event('beforeunload'); + + const result = onBeforeUnload(event); + + expect(startLoadingSpy).toHaveBeenCalledWith(expect.any(String)); + expect(result).toBeUndefined(); + }); + }); + + describe('addBeforeUnloadEventBindings', () => { + it('should add beforeunload event listener', () => { + const { addBeforeUnloadEventBindings } = useBeforeUnload({ route: defaultRoute }); + const addEventListenerSpy = vi.spyOn(window, 'addEventListener'); + + addBeforeUnloadEventBindings(); + + expect(addEventListenerSpy).toHaveBeenCalledWith('beforeunload', expect.any(Function)); + }); + }); + + describe('removeBeforeUnloadEventBindings', () => { + it('should remove beforeunload event listener', () => { + const { removeBeforeUnloadEventBindings } = useBeforeUnload({ route: defaultRoute }); + const removeEventListenerSpy = vi.spyOn(window, 'removeEventListener'); + + removeBeforeUnloadEventBindings(); + + expect(removeEventListenerSpy).toHaveBeenCalledWith('beforeunload', expect.any(Function)); + }); + }); +}); diff --git a/packages/editor-ui/src/composables/useBeforeUnload.ts b/packages/editor-ui/src/composables/useBeforeUnload.ts new file mode 100644 index 0000000000000..5469c43ee84ef --- /dev/null +++ b/packages/editor-ui/src/composables/useBeforeUnload.ts @@ -0,0 +1,48 @@ +import { useCanvasStore } from '@/stores/canvas.store'; +import { useUIStore } from '@/stores/ui.store'; +import { useI18n } from '@/composables/useI18n'; +import { computed } from 'vue'; +import { VIEWS } from '@/constants'; +import type { useRoute } from 'vue-router'; + +/** + * Composable to handle the beforeunload event in canvas views. + * + * This hook will prevent closing the tab and prompt the user if the ui state is dirty + * (workflow has changes) and the user tries to leave the page. + */ + +export function useBeforeUnload({ route }: { route: ReturnType }) { + const uiStore = useUIStore(); + const canvasStore = useCanvasStore(); + + const i18n = useI18n(); + + const isDemoRoute = computed(() => route.name === VIEWS.DEMO); + + function onBeforeUnload(e: BeforeUnloadEvent) { + if (isDemoRoute.value || window.preventNodeViewBeforeUnload) { + return; + } else if (uiStore.stateIsDirty) { + e.returnValue = true; //Gecko + IE + return true; //Gecko + Webkit, Safari, Chrome etc. + } else { + canvasStore.startLoading(i18n.baseText('nodeView.redirecting')); + return; + } + } + + function addBeforeUnloadEventBindings() { + window.addEventListener('beforeunload', onBeforeUnload); + } + + function removeBeforeUnloadEventBindings() { + window.removeEventListener('beforeunload', onBeforeUnload); + } + + return { + onBeforeUnload, + addBeforeUnloadEventBindings, + removeBeforeUnloadEventBindings, + }; +} diff --git a/packages/editor-ui/src/views/NodeView.v2.vue b/packages/editor-ui/src/views/NodeView.v2.vue index 3a8e2411cd985..b1c1462bae5d4 100644 --- a/packages/editor-ui/src/views/NodeView.v2.vue +++ b/packages/editor-ui/src/views/NodeView.v2.vue @@ -3,8 +3,10 @@ import { computed, defineAsyncComponent, nextTick, + onActivated, onBeforeMount, onBeforeUnmount, + onDeactivated, onMounted, ref, useCssModule, @@ -92,6 +94,7 @@ import { useTemplatesStore } from '@/stores/templates.store'; import { createEventBus } from 'n8n-design-system'; import type { PinDataSource } from '@/composables/usePinnedData'; import { useClipboard } from '@/composables/useClipboard'; +import { useBeforeUnload } from '@/composables/useBeforeUnload'; const LazyNodeCreation = defineAsyncComponent( async () => await import('@/components/Node/NodeCreation.vue'), @@ -136,6 +139,9 @@ const templatesStore = useTemplatesStore(); const canvasEventBus = createEventBus(); +const { addBeforeUnloadEventBindings, removeBeforeUnloadEventBindings } = useBeforeUnload({ + route, +}); const { registerCustomAction } = useGlobalLinkActions(); const { runWorkflow, stopCurrentExecution, stopWaitingForWebhook } = useRunWorkflow({ router }); const { @@ -1445,6 +1451,10 @@ onMounted(async () => { void externalHooks.run('nodeView.mount').catch(() => {}); }); +onActivated(() => { + addBeforeUnloadEventBindings(); +}); + onBeforeUnmount(() => { removeUndoRedoEventBindings(); removePostMessageEventBindings(); @@ -1453,6 +1463,10 @@ onBeforeUnmount(() => { removeExecutionOpenedEventBindings(); removeWorkflowSavedEventBindings(); }); + +onDeactivated(() => { + removeBeforeUnloadEventBindings(); +});