penrose 0.2.31 → 0.2.34
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/.github/dependabot.yml +8 -0
- package/lib/penrose.js +4 -3
- package/package.json +6 -6
package/lib/penrose.js
CHANGED
|
@@ -354,11 +354,12 @@ Penrose.prototype = {
|
|
|
354
354
|
const $svg = cheerio.load(result.svg)('svg');
|
|
355
355
|
const width = Math.ceil(exToPx($svg.attr('width'), config.ex));
|
|
356
356
|
const height = Math.ceil(exToPx($svg.attr('height'), config.ex));
|
|
357
|
-
|
|
358
|
-
return svg2png(buffer, {
|
|
357
|
+
const resize = {
|
|
359
358
|
width: width,
|
|
360
359
|
height: height
|
|
361
|
-
}
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
return sharp(buffer).resize(resize).toBuffer();
|
|
362
363
|
})
|
|
363
364
|
.then((buffer) => fs.writeFileAsync(outputResolved, buffer));
|
|
364
365
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "penrose",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.34",
|
|
4
4
|
"description": "Build derivative images",
|
|
5
5
|
"main": "lib/penrose.js",
|
|
6
6
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"url": "https://github.com/netbek/penrose/issues"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@babel/core": "7.18.
|
|
23
|
+
"@babel/core": "7.18.10",
|
|
24
24
|
"babel-eslint": "10.1.0",
|
|
25
25
|
"babel-loader": "8.2.5",
|
|
26
26
|
"babel-plugin-lodash": "3.3.4",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"canonical-json": "0.0.4",
|
|
30
30
|
"chalk": "4.1.2",
|
|
31
31
|
"cheerio": "0.22.0",
|
|
32
|
-
"eslint": "8.
|
|
32
|
+
"eslint": "8.22.0",
|
|
33
33
|
"eslint-config-airbnb": "19.0.4",
|
|
34
34
|
"eslint-config-prettier": "8.5.0",
|
|
35
35
|
"eslint-plugin-babel": "5.3.1",
|
|
36
36
|
"eslint-plugin-dollar-sign": "1.0.2",
|
|
37
37
|
"eslint-plugin-html": "6.2.0",
|
|
38
38
|
"eslint-plugin-import": "2.26.0",
|
|
39
|
-
"eslint-plugin-jsdoc": "39.3.
|
|
40
|
-
"eslint-plugin-jsx-a11y": "6.6.
|
|
39
|
+
"eslint-plugin-jsdoc": "39.3.6",
|
|
40
|
+
"eslint-plugin-jsx-a11y": "6.6.1",
|
|
41
41
|
"eslint-plugin-markdown": "2.2.1",
|
|
42
|
-
"eslint-plugin-prettier": "4.
|
|
42
|
+
"eslint-plugin-prettier": "4.2.1",
|
|
43
43
|
"eslint-plugin-react": "7.30.1",
|
|
44
44
|
"fs-extra": "10.1.0",
|
|
45
45
|
"glob": "7.2.3",
|