@quasar/icongenie 2.5.0 → 2.5.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.
@@ -1,4 +1,4 @@
1
- const svgo = require('svgo')
1
+ const { optimize } = require('svgo')
2
2
  const { writeFile } = require('fs')
3
3
  const { posterize } = require('potrace')
4
4
 
@@ -21,9 +21,7 @@ module.exports = async function (file, opts, done) {
21
21
  const buffer = await img.toBuffer()
22
22
 
23
23
  posterize(buffer, params, (_, svg) => {
24
- const svgOutput = new svgo({})
25
- svgOutput.optimize(svg).then(res => {
26
- writeFile(file.absoluteName, res.data, done)
27
- })
24
+ const res = optimize(svg)
25
+ writeFile(file.absoluteName, res.data, done)
28
26
  })
29
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quasar/icongenie",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "A Quasar tool for generating all your Quasar App's icons and splashscreens",
5
5
  "bin": {
6
6
  "icongenie": "./bin/icongenie"
@@ -37,23 +37,26 @@
37
37
  "homepage": "https://quasar.dev/icongenie/introduction",
38
38
  "dependencies": {
39
39
  "@hapi/joi": "^17.1.1",
40
- "kolorist": "^1.5.1",
41
40
  "cross-spawn": "^7.0.2",
42
41
  "elementtree": "^0.1.7",
43
- "fast-glob": "^3.2.2",
44
- "fs-extra": "^9.0.0",
42
+ "fast-glob": "^3.2.11",
43
+ "fs-extra": "^10.0.1",
45
44
  "imagemin": "^7.0.1",
46
- "imagemin-pngquant": "^8.0.0",
45
+ "imagemin-pngquant": "^9.0.2",
47
46
  "is-png": "^2.0.0",
48
- "is-svg": "^4.2.1",
49
- "minimist": "^1.2.5",
47
+ "is-svg": "^4.3.2",
48
+ "kolorist": "^1.5.1",
49
+ "minimist": "^1.2.6",
50
50
  "png2icons": "^2.0.1",
51
51
  "potrace": "^2.1.5",
52
52
  "read-chunk": "^3.2.0",
53
- "sharp": "^0.28.3",
54
- "svgo": "^1.3.2",
53
+ "sharp": "^0.30.3",
54
+ "svgo": "^2.8.0",
55
55
  "untildify": "^4.0.0",
56
- "update-notifier": "^4.1.0"
56
+ "update-notifier": "^5.1.0"
57
+ },
58
+ "resolutions": {
59
+ "minimist": "^1.2.6"
57
60
  },
58
61
  "publishConfig": {
59
62
  "access": "public"