@iconify/tools 2.0.1 → 2.0.5
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/lib/colors/parse.d.ts +1 -1
- package/lib/colors/parse.js +3 -1
- package/lib/colors/parse.mjs +2 -1
- package/lib/colors/validate.d.ts +11 -0
- package/lib/colors/validate.js +45 -0
- package/lib/colors/validate.mjs +33 -0
- package/lib/download/git/index.d.ts +7 -3
- package/lib/download/git/index.js +0 -3
- package/lib/download/github/index.d.ts +7 -3
- package/lib/download/github/index.js +18 -13
- package/lib/download/github/index.mjs +14 -10
- package/lib/download/helpers/untar.d.ts +4 -0
- package/lib/download/helpers/untar.js +14 -0
- package/lib/download/helpers/untar.mjs +11 -0
- package/lib/download/npm/index.d.ts +7 -3
- package/lib/download/npm/index.js +43 -15
- package/lib/download/npm/index.mjs +35 -9
- package/lib/export/helpers/types-version.mjs +26 -65
- package/lib/icon-set/index.js +1 -1
- package/lib/icon-set/merge.js +1 -1
- package/lib/import/figma/index.d.ts +3 -2
- package/lib/import/figma/index.js +0 -3
- package/lib/import/figma/query.d.ts +3 -2
- package/lib/import/figma/query.js +0 -3
- package/lib/import/figma/types/options.d.ts +4 -2
- package/lib/index.d.ts +9 -3
- package/lib/index.js +20 -6
- package/lib/index.mjs +16 -3
- package/lib/misc/bump-version.d.ts +4 -0
- package/lib/misc/bump-version.js +19 -0
- package/lib/misc/bump-version.mjs +15 -0
- package/lib/misc/compare-dirs.d.ts +9 -0
- package/lib/misc/compare-dirs.js +84 -0
- package/lib/misc/compare-dirs.mjs +71 -0
- package/lib/misc/scan.d.ts +4 -2
- package/lib/misc/scan.js +2 -2
- package/lib/misc/scan.mjs +2 -2
- package/lib/optimise/svgo.js +13 -3
- package/lib/optimise/svgo.mjs +8 -3
- package/lib/svg/cleanup/bad-tags.js +0 -2
- package/lib/svg/cleanup/bad-tags.mjs +0 -3
- package/lib/svg/data/tags.d.ts +0 -4
- package/lib/svg/data/tags.js +1 -9
- package/lib/svg/data/tags.mjs +0 -6
- package/package.json +23 -4
package/lib/svg/data/tags.mjs
CHANGED
|
@@ -85,11 +85,6 @@ var tagsInsideDefs = new Set([
|
|
|
85
85
|
...patternTag,
|
|
86
86
|
...markerTag
|
|
87
87
|
]);
|
|
88
|
-
var tagsBeforeAnimation = new Set([
|
|
89
|
-
...shapeTags,
|
|
90
|
-
...filterChildTags,
|
|
91
|
-
...feComponentTransferChildTag
|
|
92
|
-
]);
|
|
93
88
|
var allValidTags = new Set([
|
|
94
89
|
...styleTag,
|
|
95
90
|
...defsTag,
|
|
@@ -129,7 +124,6 @@ export {
|
|
|
129
124
|
patternTag,
|
|
130
125
|
shapeTags,
|
|
131
126
|
styleTag,
|
|
132
|
-
tagsBeforeAnimation,
|
|
133
127
|
tagsInsideDefs,
|
|
134
128
|
unsupportedTags,
|
|
135
129
|
useTag
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@iconify/tools",
|
|
3
3
|
"description": "Collection of functions for cleaning up and parsing SVG for Iconify project",
|
|
4
4
|
"author": "Vjacheslav Trushkin",
|
|
5
|
-
"version": "2.0.
|
|
5
|
+
"version": "2.0.5",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bugs": "https://github.com/iconify/tools/issues",
|
|
8
8
|
"homepage": "https://github.com/iconify/tools",
|
|
@@ -22,14 +22,17 @@
|
|
|
22
22
|
"test": "npm run test:jest && npm run test:jasmine"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@iconify/utils": "^1.0.
|
|
25
|
+
"@iconify/utils": "^1.0.21",
|
|
26
26
|
"@types/cheerio": "^0.22.30",
|
|
27
27
|
"@types/node-fetch": "^2.5.12",
|
|
28
|
+
"@types/svgo": "^2.6.0",
|
|
29
|
+
"@types/tar": "^6.1.0",
|
|
28
30
|
"cheerio": "^1.0.0-rc.10",
|
|
29
31
|
"extract-zip": "^2.0.1",
|
|
30
|
-
"node-fetch": "^2.
|
|
32
|
+
"node-fetch": "^3.2.0",
|
|
31
33
|
"pathe": "^0.2.0",
|
|
32
|
-
"svgo": "^2.
|
|
34
|
+
"svgo": "^2.8.0",
|
|
35
|
+
"tar": "^6.1.11"
|
|
33
36
|
},
|
|
34
37
|
"exports": {
|
|
35
38
|
"./*": "./*",
|
|
@@ -45,6 +48,10 @@
|
|
|
45
48
|
"require": "./lib/colors/parse.js",
|
|
46
49
|
"import": "./lib/colors/parse.mjs"
|
|
47
50
|
},
|
|
51
|
+
"./lib/colors/validate": {
|
|
52
|
+
"require": "./lib/colors/validate.js",
|
|
53
|
+
"import": "./lib/colors/validate.mjs"
|
|
54
|
+
},
|
|
48
55
|
"./lib/css/parse": {
|
|
49
56
|
"require": "./lib/css/parse.js",
|
|
50
57
|
"import": "./lib/css/parse.mjs"
|
|
@@ -125,6 +132,10 @@
|
|
|
125
132
|
"require": "./lib/download/github/types.js",
|
|
126
133
|
"import": "./lib/download/github/types.mjs"
|
|
127
134
|
},
|
|
135
|
+
"./lib/download/helpers/untar": {
|
|
136
|
+
"require": "./lib/download/helpers/untar.js",
|
|
137
|
+
"import": "./lib/download/helpers/untar.mjs"
|
|
138
|
+
},
|
|
128
139
|
"./lib/download/helpers/unzip": {
|
|
129
140
|
"require": "./lib/download/helpers/unzip.js",
|
|
130
141
|
"import": "./lib/download/helpers/unzip.mjs"
|
|
@@ -241,6 +252,14 @@
|
|
|
241
252
|
"require": "./lib/index.js",
|
|
242
253
|
"import": "./lib/index.mjs"
|
|
243
254
|
},
|
|
255
|
+
"./lib/misc/bump-version": {
|
|
256
|
+
"require": "./lib/misc/bump-version.js",
|
|
257
|
+
"import": "./lib/misc/bump-version.mjs"
|
|
258
|
+
},
|
|
259
|
+
"./lib/misc/compare-dirs": {
|
|
260
|
+
"require": "./lib/misc/compare-dirs.js",
|
|
261
|
+
"import": "./lib/misc/compare-dirs.mjs"
|
|
262
|
+
},
|
|
244
263
|
"./lib/misc/exec": {
|
|
245
264
|
"require": "./lib/misc/exec.js",
|
|
246
265
|
"import": "./lib/misc/exec.mjs"
|