@iconify/tools 5.0.0 → 5.0.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.
- package/lib/import/figma/query.js +8 -4
- package/package.json +11 -11
|
@@ -164,12 +164,16 @@ async function figmaDownloadImages(nodes, cache) {
|
|
|
164
164
|
callback: (index) => {
|
|
165
165
|
return new Promise((resolve, reject) => {
|
|
166
166
|
const item = filtered[index];
|
|
167
|
-
sendAPIQuery({ uri: item.url }, cache).then((
|
|
168
|
-
if (
|
|
167
|
+
sendAPIQuery({ uri: item.url }, cache).then((response) => {
|
|
168
|
+
if (!response.success) {
|
|
169
|
+
reject(response.error);
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
if (typeof response.content === "string") {
|
|
169
173
|
count++;
|
|
170
|
-
item.content =
|
|
174
|
+
item.content = response.content;
|
|
171
175
|
resolve(void 0);
|
|
172
|
-
} else reject(
|
|
176
|
+
} else reject(response.content);
|
|
173
177
|
}).catch(reject);
|
|
174
178
|
});
|
|
175
179
|
},
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Collection of functions for cleaning up and parsing SVG for Iconify project",
|
|
5
5
|
"author": "Vjacheslav Trushkin",
|
|
6
|
-
"version": "5.0.
|
|
6
|
+
"version": "5.0.1",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"bugs": "https://github.com/iconify/tools/issues",
|
|
9
9
|
"homepage": "https://github.com/iconify/tools",
|
|
@@ -18,27 +18,27 @@
|
|
|
18
18
|
"@iconify/types": "^2.0.0",
|
|
19
19
|
"@iconify/utils": "^3.1.0",
|
|
20
20
|
"fflate": "^0.8.2",
|
|
21
|
-
"modern-tar": "^0.7.
|
|
21
|
+
"modern-tar": "^0.7.3",
|
|
22
22
|
"pathe": "^2.0.3",
|
|
23
23
|
"svgo": "^4.0.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@eslint/eslintrc": "^3.3.
|
|
27
|
-
"@eslint/js": "^9.39.
|
|
26
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
27
|
+
"@eslint/js": "^9.39.2",
|
|
28
28
|
"@types/jest": "^30.0.0",
|
|
29
|
-
"@types/node": "^24.10.
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
31
|
-
"@typescript-eslint/parser": "^8.
|
|
29
|
+
"@types/node": "^24.10.4",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
|
31
|
+
"@typescript-eslint/parser": "^8.50.0",
|
|
32
32
|
"cross-env": "^10.1.0",
|
|
33
|
-
"eslint": "^9.39.
|
|
33
|
+
"eslint": "^9.39.2",
|
|
34
34
|
"eslint-config-prettier": "^10.1.8",
|
|
35
35
|
"eslint-plugin-prettier": "^5.5.4",
|
|
36
36
|
"globals": "^16.5.0",
|
|
37
|
-
"prettier": "^3.
|
|
37
|
+
"prettier": "^3.7.4",
|
|
38
38
|
"rimraf": "^6.1.2",
|
|
39
|
-
"tsdown": "^0.
|
|
39
|
+
"tsdown": "^0.18.0",
|
|
40
40
|
"typescript": "^5.9.3",
|
|
41
|
-
"vitest": "^4.0.
|
|
41
|
+
"vitest": "^4.0.16"
|
|
42
42
|
},
|
|
43
43
|
"exports": {
|
|
44
44
|
"./*": "./*",
|