node-poppler 5.1.2 → 5.1.3
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.
- package/CHANGELOG.md +23 -0
- package/package.json +12 -12
- package/src/index.js +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
### [5.1.3](https://github.com/Fdawgs/node-poppler/compare/v5.1.2...v5.1.3) (2022-02-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **index:** use `spawn` for larger stream results ([#386](https://github.com/Fdawgs/node-poppler/issues/386)) ([e437f3e](https://github.com/Fdawgs/node-poppler/commit/e437f3e9e9fa73a8e36d64a01283388e3a879e10))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Miscellaneous
|
|
14
|
+
|
|
15
|
+
* **.github:** remove trailing whitespace ([aee8872](https://github.com/Fdawgs/node-poppler/commit/aee8872c62b5f66e83d75915a325be6bfd32ee76))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Dependencies
|
|
19
|
+
|
|
20
|
+
* **dependabot:** ignore minor and patch commit-lint updates ([#380](https://github.com/Fdawgs/node-poppler/issues/380)) ([b5ff45f](https://github.com/Fdawgs/node-poppler/commit/b5ff45f603697b66155d488579c47dee34ad5f2f))
|
|
21
|
+
* **dependabot:** major tags no longer need ignore support ([579cea2](https://github.com/Fdawgs/node-poppler/commit/579cea2c0e36d200fb5981529b0fb092e99d6c67))
|
|
22
|
+
* **dependabot:** use default open-pull-requests-limit value ([eebb453](https://github.com/Fdawgs/node-poppler/commit/eebb4537a299fa6d2a01c2621db619d298c933cc))
|
|
23
|
+
* **deps-dev:** bump dev dependencies ([#388](https://github.com/Fdawgs/node-poppler/issues/388)) ([06f8957](https://github.com/Fdawgs/node-poppler/commit/06f895771c639ea06f2dbeb0a61c180a3ec650b3))
|
|
24
|
+
* **deps-dev:** bump eslint-plugin-jest from 25.7.0 to 26.0.0 ([321e7d0](https://github.com/Fdawgs/node-poppler/commit/321e7d0221d67be7ccf2ab12bbbb95d20c96a7a3))
|
|
25
|
+
* **deps:** bump actions/github-script from 5 to 6 ([deb69a6](https://github.com/Fdawgs/node-poppler/commit/deb69a6ac7244ece7c87e3f5f02965f7d33e2c08))
|
|
26
|
+
* **deps:** bump actions/setup-node from 2 to 3 ([81f52ca](https://github.com/Fdawgs/node-poppler/commit/81f52ca1f885b332e2f12be6d445418e148d9051))
|
|
27
|
+
|
|
5
28
|
### [5.1.2](https://github.com/Fdawgs/node-poppler/compare/v5.1.1...v5.1.2) (2022-01-19)
|
|
6
29
|
|
|
7
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-poppler",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"description": "Asynchronous node.js wrapper for the Poppler PDF rendering library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"async",
|
|
@@ -71,24 +71,24 @@
|
|
|
71
71
|
"testTimeout": 60000
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@commitlint/cli": "^16.
|
|
75
|
-
"@commitlint/config-conventional": "^16.
|
|
76
|
-
"eslint": "^8.
|
|
74
|
+
"@commitlint/cli": "^16.2.1",
|
|
75
|
+
"@commitlint/config-conventional": "^16.2.1",
|
|
76
|
+
"eslint": "^8.9.0",
|
|
77
77
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
78
|
-
"eslint-config-prettier": "^8.
|
|
78
|
+
"eslint-config-prettier": "^8.4.0",
|
|
79
79
|
"eslint-plugin-import": "^2.25.4",
|
|
80
|
-
"eslint-plugin-jest": "^
|
|
81
|
-
"eslint-plugin-jsdoc": "^37.
|
|
80
|
+
"eslint-plugin-jest": "^26.1.1",
|
|
81
|
+
"eslint-plugin-jsdoc": "^37.9.4",
|
|
82
82
|
"eslint-plugin-promise": "^6.0.0",
|
|
83
83
|
"eslint-plugin-security": "^1.4.0",
|
|
84
|
-
"eslint-plugin-security-node": "^1.1.
|
|
84
|
+
"eslint-plugin-security-node": "^1.1.1",
|
|
85
85
|
"glob": "^7.2.0",
|
|
86
86
|
"husky": "^7.0.4",
|
|
87
|
-
"jest": "^27.
|
|
88
|
-
"jsdoc-to-markdown": "^7.1.
|
|
87
|
+
"jest": "^27.5.1",
|
|
88
|
+
"jsdoc-to-markdown": "^7.1.1",
|
|
89
89
|
"license-checker": "^25.0.1",
|
|
90
|
-
"prettier": "2.5.1",
|
|
91
|
-
"typescript": "^4.5.
|
|
90
|
+
"prettier": "^2.5.1",
|
|
91
|
+
"typescript": "^4.5.5"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"camelcase": "^6.3.0",
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable security/detect-child-process */
|
|
2
2
|
const camelCase = require("camelcase");
|
|
3
3
|
const path = require("upath");
|
|
4
|
-
const { execFile } = require("child_process");
|
|
4
|
+
const { execFile, spawn } = require("child_process");
|
|
5
5
|
const util = require("util");
|
|
6
6
|
|
|
7
7
|
const execFileAsync = util.promisify(execFile);
|
|
@@ -230,7 +230,7 @@ class Poppler {
|
|
|
230
230
|
args.push(file);
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
const child =
|
|
233
|
+
const child = spawn(
|
|
234
234
|
path.joinSafe(this.popplerPath, "pdffonts"),
|
|
235
235
|
args
|
|
236
236
|
);
|
|
@@ -331,7 +331,7 @@ class Poppler {
|
|
|
331
331
|
args.push(outputPrefix);
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
const child =
|
|
334
|
+
const child = spawn(
|
|
335
335
|
path.joinSafe(this.popplerPath, "pdfimages"),
|
|
336
336
|
args
|
|
337
337
|
);
|
|
@@ -732,7 +732,7 @@ class Poppler {
|
|
|
732
732
|
args.push("-");
|
|
733
733
|
}
|
|
734
734
|
|
|
735
|
-
const child =
|
|
735
|
+
const child = spawn(
|
|
736
736
|
path.joinSafe(this.popplerPath, "pdftocairo"),
|
|
737
737
|
args
|
|
738
738
|
);
|
|
@@ -876,7 +876,7 @@ class Poppler {
|
|
|
876
876
|
args.push(outputFile);
|
|
877
877
|
}
|
|
878
878
|
|
|
879
|
-
const child =
|
|
879
|
+
const child = spawn(
|
|
880
880
|
path.joinSafe(this.popplerPath, "pdftohtml"),
|
|
881
881
|
args
|
|
882
882
|
);
|
|
@@ -1084,7 +1084,7 @@ class Poppler {
|
|
|
1084
1084
|
|
|
1085
1085
|
args.push(outputPath);
|
|
1086
1086
|
|
|
1087
|
-
const child =
|
|
1087
|
+
const child = spawn(
|
|
1088
1088
|
path.joinSafe(this.popplerPath, "pdftoppm"),
|
|
1089
1089
|
args
|
|
1090
1090
|
);
|
|
@@ -1323,7 +1323,7 @@ class Poppler {
|
|
|
1323
1323
|
args.push("-");
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
1326
|
-
const child =
|
|
1326
|
+
const child = spawn(
|
|
1327
1327
|
path.joinSafe(this.popplerPath, "pdftops"),
|
|
1328
1328
|
args
|
|
1329
1329
|
);
|
|
@@ -1474,7 +1474,7 @@ class Poppler {
|
|
|
1474
1474
|
args.push("-");
|
|
1475
1475
|
}
|
|
1476
1476
|
|
|
1477
|
-
const child =
|
|
1477
|
+
const child = spawn(
|
|
1478
1478
|
path.joinSafe(this.popplerPath, "pdftotext"),
|
|
1479
1479
|
args
|
|
1480
1480
|
);
|