From 7055d97bd5fd8d0413582458015fb60c06493a2c Mon Sep 17 00:00:00 2001 From: Muthu Kolappan <87436571+lkolapp@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:15:32 +0200 Subject: [PATCH] fix: upgrade mammoth from 1.5.1 to 1.7.1 (#170) Snyk has created this PR to upgrade mammoth from 1.5.1 to 1.7.1. See this package in npm: https://www.npmjs.com/package/mammoth See this project in Snyk: https://app.snyk.io/org/cognigy-gmbh/project/056b6112-fb88-4e0a-ac0e-394c72d16862?utm_source=github&utm_medium=referral&page=upgrade-pr Co-authored-by: snyk-bot --- package-lock.json | 22 +++++++++++++++++----- package.json | 2 +- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4cd55de..3d80b23 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "json-diff": "1.0.6", "jsonpointer": "5.0.1", "langchain": "0.0.170", - "mammoth": "1.5.1", + "mammoth": "^1.7.1", "os": "0.1.2", "pdf-parse": "1.1.1", "pdfjs": "2.5.2", @@ -2104,6 +2104,14 @@ "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", "dev": true }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.10", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz", + "integrity": "sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==", + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", @@ -6265,22 +6273,26 @@ "dev": true }, "node_modules/mammoth": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/mammoth/-/mammoth-1.5.1.tgz", - "integrity": "sha512-7ZioZBf/1HjYrm1qZJOO+DD+rYxLvwrHS+HVOwW89hwIp+r6ZqJ/Eq2rXSS+8ezZ3/DuW6FUUp2Dfz6e7B2pBQ==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/mammoth/-/mammoth-1.7.1.tgz", + "integrity": "sha512-ckxfvNH5sUaJh+SbYbxpvB7urZTGS02jA91rFCNiL928CgE9FXXMyXxcJBY0n+CpmKE/eWh7qaV0+v+Dbwun3Q==", "dependencies": { + "@xmldom/xmldom": "^0.8.6", "argparse": "~1.0.3", + "base64-js": "^1.5.1", "bluebird": "~3.4.0", "dingbat-to-unicode": "^1.0.1", "jszip": "^3.7.1", "lop": "^0.4.1", "path-is-absolute": "^1.0.0", - "sax": "~1.1.1", "underscore": "^1.13.1", "xmlbuilder": "^10.0.0" }, "bin": { "mammoth": "bin/mammoth" + }, + "engines": { + "node": ">=12.0.0" } }, "node_modules/mammoth/node_modules/argparse": { diff --git a/package.json b/package.json index ef89c86..1987d16 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "json-diff": "1.0.6", "jsonpointer": "5.0.1", "langchain": "0.0.170", - "mammoth": "1.5.1", + "mammoth": "1.7.1", "os": "0.1.2", "pdf-parse": "1.1.1", "pdfjs": "2.5.2",