langchain 0.0.210 → 0.0.211

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,8 +41,7 @@ class DocxLoader extends buffer_js_1.BufferLoader {
41
41
  exports.DocxLoader = DocxLoader;
42
42
  async function DocxLoaderImports() {
43
43
  try {
44
- const { default: mod } = await import("mammoth");
45
- const { extractRawText } = mod;
44
+ const { extractRawText } = await import("mammoth");
46
45
  return { extractRawText };
47
46
  }
48
47
  catch (e) {
@@ -37,8 +37,7 @@ export class DocxLoader extends BufferLoader {
37
37
  }
38
38
  async function DocxLoaderImports() {
39
39
  try {
40
- const { default: mod } = await import("mammoth");
41
- const { extractRawText } = mod;
40
+ const { extractRawText } = await import("mammoth");
42
41
  return { extractRawText };
43
42
  }
44
43
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langchain",
3
- "version": "0.0.210",
3
+ "version": "0.0.211",
4
4
  "description": "Typescript bindings for langchain",
5
5
  "type": "module",
6
6
  "engines": {
@@ -1000,7 +1000,7 @@
1000
1000
  "ignore": "^5.2.0",
1001
1001
  "ioredis": "^5.3.2",
1002
1002
  "jsdom": "*",
1003
- "mammoth": "*",
1003
+ "mammoth": "^1.6.0",
1004
1004
  "mongodb": "^5.2.0",
1005
1005
  "node-llama-cpp": "*",
1006
1006
  "notion-to-md": "^3.1.0",