oslllo-svg-fixer 1.4.1 → 2.0.0

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 CHANGED
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.0.0](https://www.github.com/oslllo/svg-fixer/compare/v1.4.1...v2.0.0) (2022-01-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **security:** audit fix ([6047ad8](https://www.github.com/oslllo/svg-fixer/commit/6047ad88645d9f4cb251ca9bac04f278c902aa85))
14
+
15
+
16
+ ### Miscellaneous Chores
17
+
18
+ * release 2.0.0 ([7abe789](https://www.github.com/oslllo/svg-fixer/commit/7abe789afc9ba6ff04c4f32a284561cf497f0c48))
19
+
8
20
  ### [1.4.1](https://www.github.com/oslllo/svg-fixer/compare/v1.4.0...v1.4.1) (2021-09-05)
9
21
 
10
22
 
package/README.md CHANGED
@@ -6,6 +6,8 @@
6
6
  [![npm](https://img.shields.io/npm/v/oslllo-svg-fixer)](https://www.npmjs.com/package/oslllo-svg-fixer)
7
7
  [![Coveralls github](https://img.shields.io/coveralls/github/oslllo/svg-fixer)](https://coveralls.io/github/oslllo/svg-fixer)
8
8
 
9
+ 🎉 v2.0.0 Removed `Canvas & JSDOM` no more slow `npm install` cycles.
10
+
9
11
  Attempts to fix your svg by turning it into a fill / single path (and making it font compatible as a bonus).
10
12
 
11
13
  ## Convert SVG Strokes To Fills
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oslllo-svg-fixer",
3
- "version": "1.4.1",
3
+ "version": "2.0.0",
4
4
  "description": "Converts SVG Strokes To Fill.",
5
5
  "bin": "src/cli.js",
6
6
  "main": "src/index.js",
@@ -42,12 +42,12 @@
42
42
  },
43
43
  "homepage": "https://docs.oslllo.com/svg-fixer/master",
44
44
  "dependencies": {
45
- "cli-progress": "^3.9.0",
46
- "colors": "^1.4.0",
47
- "fast-glob": "^3.2.7",
48
- "oslllo-potrace": "^1.1.4",
49
- "oslllo-svg2": "^0.3.1",
50
- "oslllo-validator": "^2.0.1",
45
+ "ansi-colors": "^4.1.1",
46
+ "cli-progress": "^3.10.0",
47
+ "fast-glob": "^3.2.10",
48
+ "oslllo-potrace": "^2.0.0",
49
+ "oslllo-svg2": "^1.0.0",
50
+ "oslllo-validator": "^3.0.0",
51
51
  "yargs": "^16.2.0"
52
52
  },
53
53
  "devDependencies": {
@@ -57,9 +57,9 @@
57
57
  "coveralls": "^3.1.1",
58
58
  "eslint": "^7.32.0",
59
59
  "fs-extra": "^10.0.0",
60
- "inquirer": "^8.1.2",
60
+ "inquirer": "^8.2.0",
61
61
  "looks-same": "^7.3.0",
62
- "mocha": "^8.4.0",
62
+ "mocha": "^9.1.3",
63
63
  "mocha-lcov-reporter": "^1.3.0",
64
64
  "nyc": "^15.1.0",
65
65
  "stopwatch-node": "^1.1.0"
package/src/cli.js CHANGED
@@ -3,7 +3,7 @@
3
3
  "use strict";
4
4
 
5
5
  const SVGFixer = require("../");
6
- const colors = require("colors");
6
+ const colors = require("ansi-colors");
7
7
  var argvs = require("yargs/yargs")(process.argv.slice(2)); // eslint-disable-line no-magic-numbers
8
8
 
9
9
  argvs
package/src/progress.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- const colors = require("colors");
3
+ const colors = require("ansi-colors");
4
4
  const cliprogress = require("cli-progress");
5
5
 
6
6
  const Progress = function (source, max) {
package/src/svg.js CHANGED
@@ -51,7 +51,7 @@ Svg.prototype = {
51
51
  /**
52
52
  * Ignore <path></path> "d" attribute.
53
53
  */
54
- if (attribute.name !== "d") {
54
+ if (attribute && attribute.name && attribute.name !== "d") {
55
55
  return { name: attribute.name, value: attribute.value };
56
56
  }
57
57