@uxf/icons-generator 11.86.0 → 11.88.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/package.json +2 -2
- package/src/providers/fa-pro.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/icons-generator",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.88.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"url": "git+https://gitlab.com/uxf-npm/icons-generator.git"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"fast-xml-parser": "5.3.
|
|
21
|
+
"fast-xml-parser": "5.3.1"
|
|
22
22
|
},
|
|
23
23
|
"author": "",
|
|
24
24
|
"license": "ISC",
|
package/src/providers/fa-pro.js
CHANGED
|
@@ -9,7 +9,6 @@ const _getIconNameForProvider_1 = require("../utils/_getIconNameForProvider");
|
|
|
9
9
|
const KEY = "faPro";
|
|
10
10
|
const removeComments = (str) => str.replace(/<!--([\s\S]*?)-->/g, "");
|
|
11
11
|
const removeSvg = (str) => str.replace(/<svg[^>]*>/, "").replace(/<\/svg>/, "");
|
|
12
|
-
const addFillAttribute = (str) => str.replace(/\/>/g, ' fill="currentColor"/>');
|
|
13
12
|
const parseDimensions = (str) => {
|
|
14
13
|
const viewBox = str.match(/viewBox="([^"]*)"/);
|
|
15
14
|
let width, height;
|
|
@@ -30,7 +29,6 @@ const getIcon = (iconName, config) => {
|
|
|
30
29
|
svg = removeComments(svg);
|
|
31
30
|
const { width, height } = parseDimensions(svg);
|
|
32
31
|
svg = removeSvg(svg);
|
|
33
|
-
svg = addFillAttribute(svg);
|
|
34
32
|
const iconDefinition = { width, height, path: svg };
|
|
35
33
|
(0, _generateAdapterFallback_1._generateAdapterFallback)(KEY, iconName, iconDefinition, config);
|
|
36
34
|
return iconDefinition;
|