officeparser 4.0.0 → 4.0.1

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.
Files changed (2) hide show
  1. package/officeParser.js +1 -1
  2. package/package.json +4 -4
package/officeParser.js CHANGED
@@ -5,7 +5,7 @@ const fs = require('fs');
5
5
  const rimraf = require('rimraf');
6
6
  const fileType = require('file-type');
7
7
  const pdfParse = require('pdf-parse');
8
- const { DOMParser } = require('xmldom');
8
+ const { DOMParser } = require('@xmldom/xmldom');
9
9
 
10
10
  /** Header for error messages */
11
11
  const ERRORHEADER = "[OfficeParser]: ";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "officeparser",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "A Node.js library to parse text out of any office file. Currently supports docx, pptx, xlsx, odt, odp, ods, pdf files.",
5
5
  "main": "officeParser.js",
6
6
  "files": [
@@ -42,11 +42,11 @@
42
42
  },
43
43
  "homepage": "https://github.com/harshankur/officeParser#readme",
44
44
  "dependencies": {
45
+ "@xmldom/xmldom": "^0.8.10",
45
46
  "decompress": "^4.2.0",
46
47
  "file-type": "^16.5.4",
47
- "rimraf": "^2.6.3",
48
- "xmldom": "^0.6.0",
49
- "pdf-parse": "^1.1.1"
48
+ "pdf-parse": "^1.1.1",
49
+ "rimraf": "^2.6.3"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/decompress": "^4.2.6",