From ec6c255c0196589efc6ec96241a709f29bddcb63 Mon Sep 17 00:00:00 2001 From: maanethdesilva Date: Fri, 24 Nov 2023 14:59:28 -0500 Subject: [PATCH] Updated discord.js dependency --- docs/api_refs/typedoc.json | 1 + langchain/.gitignore | 3 +++ langchain/package.json | 14 +++++++++++++- langchain/scripts/create-entrypoints.js | 2 ++ langchain/src/load/import_constants.ts | 1 + langchain/src/load/import_type.d.ts | 3 +++ yarn.lock | 3 +++ 7 files changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/api_refs/typedoc.json b/docs/api_refs/typedoc.json index af9ad580acb2..f3bc2d93a19a 100644 --- a/docs/api_refs/typedoc.json +++ b/docs/api_refs/typedoc.json @@ -38,6 +38,7 @@ "./langchain/src/tools/aws_lambda.ts", "./langchain/src/tools/aws_sfn.ts", "./langchain/src/tools/calculator.ts", + "./langchain/src/tools/discord.ts", "./langchain/src/tools/render.ts", "./langchain/src/tools/sql.ts", "./langchain/src/tools/webbrowser.ts", diff --git a/langchain/.gitignore b/langchain/.gitignore index 85fbbed282c4..960b3249091a 100644 --- a/langchain/.gitignore +++ b/langchain/.gitignore @@ -58,6 +58,9 @@ tools/aws_sfn.d.ts tools/calculator.cjs tools/calculator.js tools/calculator.d.ts +tools/discord.cjs +tools/discord.js +tools/discord.d.ts tools/render.cjs tools/render.js tools/render.d.ts diff --git a/langchain/package.json b/langchain/package.json index 3b3a512eeb73..e22bae3586f8 100644 --- a/langchain/package.json +++ b/langchain/package.json @@ -70,6 +70,9 @@ "tools/calculator.cjs", "tools/calculator.js", "tools/calculator.d.ts", + "tools/discord.cjs", + "tools/discord.js", + "tools/discord.d.ts", "tools/render.cjs", "tools/render.js", "tools/render.d.ts", @@ -923,6 +926,7 @@ "cohere-ai": ">=6.0.0", "convex": "^1.3.1", "d3-dsv": "^2.0.0", + "discord.js": "^14.14.1", "dotenv": "^16.0.3", "dpdm": "^3.12.0", "epub2": "^3.0.1", @@ -1041,6 +1045,7 @@ "cohere-ai": ">=6.0.0", "convex": "^1.3.1", "d3-dsv": "^2.0.0", + "discord.js": "^14.14.1", "epub2": "^3.0.1", "faiss-node": "^0.5.1", "fast-xml-parser": "^4.2.7", @@ -1255,6 +1260,9 @@ "d3-dsv": { "optional": true }, + "discord.js": { + "optional": true + }, "epub2": { "optional": true }, @@ -1384,7 +1392,6 @@ "@langchain/core": "^0.0.1", "@langchain/openai": "^0.0.1", "binary-extensions": "^2.2.0", - "discord.js": "^14.14.1", "expr-eval": "^2.0.2", "flat": "^5.0.2", "js-tiktoken": "^1.0.7", @@ -1518,6 +1525,11 @@ "import": "./tools/calculator.js", "require": "./tools/calculator.cjs" }, + "./tools/discord": { + "types": "./tools/discord.d.ts", + "import": "./tools/discord.js", + "require": "./tools/discord.cjs" + }, "./tools/render": { "types": "./tools/render.d.ts", "import": "./tools/render.js", diff --git a/langchain/scripts/create-entrypoints.js b/langchain/scripts/create-entrypoints.js index 84eb088356c6..c204933ce88c 100644 --- a/langchain/scripts/create-entrypoints.js +++ b/langchain/scripts/create-entrypoints.js @@ -32,6 +32,7 @@ const entrypoints = { "tools/aws_lambda": "tools/aws_lambda", "tools/aws_sfn": "tools/aws_sfn", "tools/calculator": "tools/calculator", + "tools/discord": "tools/discord", "tools/render": "tools/render", "tools/sql": "tools/sql", "tools/webbrowser": "tools/webbrowser", @@ -341,6 +342,7 @@ const requiresOptionalDependency = [ "tools/aws_lambda", "tools/aws_sfn", "tools/calculator", + "tools/discord", "tools/sql", "tools/webbrowser", "tools/google_calendar", diff --git a/langchain/src/load/import_constants.ts b/langchain/src/load/import_constants.ts index c98adf9c6451..95826a84408f 100644 --- a/langchain/src/load/import_constants.ts +++ b/langchain/src/load/import_constants.ts @@ -7,6 +7,7 @@ export const optionalImportEntrypoints = [ "langchain/tools/aws_lambda", "langchain/tools/aws_sfn", "langchain/tools/calculator", + "langchain/tools/discord", "langchain/tools/sql", "langchain/tools/webbrowser", "langchain/tools/google_calendar", diff --git a/langchain/src/load/import_type.d.ts b/langchain/src/load/import_type.d.ts index 23fa4c3304b6..ac4bc5e6e85c 100644 --- a/langchain/src/load/import_type.d.ts +++ b/langchain/src/load/import_type.d.ts @@ -19,6 +19,9 @@ export interface OptionalImportMap { "langchain/tools/calculator"?: | typeof import("../tools/calculator.js") | Promise; + "langchain/tools/discord"?: + | typeof import("../tools/discord.js") + | Promise; "langchain/tools/sql"?: | typeof import("../tools/sql.js") | Promise; diff --git a/yarn.lock b/yarn.lock index 9ee670324266..ddfc4fd7ea0d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -22670,6 +22670,7 @@ __metadata: cohere-ai: ">=6.0.0" convex: ^1.3.1 d3-dsv: ^2.0.0 + discord.js: ^14.14.1 epub2: ^3.0.1 faiss-node: ^0.5.1 fast-xml-parser: ^4.2.7 @@ -22826,6 +22827,8 @@ __metadata: optional: true d3-dsv: optional: true + discord.js: + optional: true epub2: optional: true faiss-node: