@iconify/tools 4.0.6 → 4.0.7

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.
@@ -125,15 +125,18 @@ async function figmaImagesQuery(options, nodes, cache) {
125
125
  if (options.version) {
126
126
  params.set("version", options.version);
127
127
  }
128
- if (svgOptions.includeID) {
129
- params.set("svg_include_id", "true");
130
- }
131
- if (svgOptions.simplifyStroke) {
132
- params.set("svg_simplify_stroke", "true");
133
- }
134
- if (svgOptions.useAbsoluteBounds) {
135
- params.set("use_absolute_bounds", "true");
136
- }
128
+ params.set(
129
+ "svg_include_id",
130
+ svgOptions.includeID ? "true" : "false"
131
+ );
132
+ params.set(
133
+ "svg_simplify_stroke",
134
+ svgOptions.simplifyStroke ? "true" : "false"
135
+ );
136
+ params.set(
137
+ "use_absolute_bounds",
138
+ svgOptions.useAbsoluteBounds ? "true" : "false"
139
+ );
137
140
  download_api_index.sendAPIQuery(
138
141
  {
139
142
  uri,
@@ -123,15 +123,18 @@ async function figmaImagesQuery(options, nodes, cache) {
123
123
  if (options.version) {
124
124
  params.set("version", options.version);
125
125
  }
126
- if (svgOptions.includeID) {
127
- params.set("svg_include_id", "true");
128
- }
129
- if (svgOptions.simplifyStroke) {
130
- params.set("svg_simplify_stroke", "true");
131
- }
132
- if (svgOptions.useAbsoluteBounds) {
133
- params.set("use_absolute_bounds", "true");
134
- }
126
+ params.set(
127
+ "svg_include_id",
128
+ svgOptions.includeID ? "true" : "false"
129
+ );
130
+ params.set(
131
+ "svg_simplify_stroke",
132
+ svgOptions.simplifyStroke ? "true" : "false"
133
+ );
134
+ params.set(
135
+ "use_absolute_bounds",
136
+ svgOptions.useAbsoluteBounds ? "true" : "false"
137
+ );
135
138
  sendAPIQuery(
136
139
  {
137
140
  uri,
package/license.txt CHANGED
File without changes
package/package.json CHANGED
@@ -1,559 +1,559 @@
1
1
  {
2
- "name": "@iconify/tools",
3
- "type": "module",
4
- "description": "Collection of functions for cleaning up and parsing SVG for Iconify project",
5
- "author": "Vjacheslav Trushkin",
6
- "version": "4.0.6",
7
- "license": "MIT",
8
- "bugs": "https://github.com/iconify/tools/issues",
9
- "homepage": "https://github.com/iconify/tools",
10
- "repository": {
11
- "type": "git",
12
- "url": "git://github.com/iconify/tools.git"
13
- },
14
- "main": "./lib/index.cjs",
15
- "module": "./lib/index.mjs",
16
- "types": "./lib/index.d.ts",
17
- "dependencies": {
18
- "@iconify/types": "^2.0.0",
19
- "@iconify/utils": "^2.1.32",
20
- "@types/tar": "^6.1.13",
21
- "axios": "^1.7.7",
22
- "cheerio": "1.0.0",
23
- "domhandler": "^5.0.3",
24
- "extract-zip": "^2.0.1",
25
- "local-pkg": "^0.5.0",
26
- "pathe": "^1.1.2",
27
- "svgo": "^3.3.2",
28
- "tar": "^6.2.1"
29
- },
30
- "devDependencies": {
31
- "@types/jest": "^29.5.12",
32
- "@types/node": "^20.16.2",
33
- "@typescript-eslint/eslint-plugin": "^6.21.0",
34
- "@typescript-eslint/parser": "^6.21.0",
35
- "cross-env": "^7.0.3",
36
- "eslint": "^8.57.0",
37
- "eslint-config-prettier": "^9.1.0",
38
- "eslint-plugin-prettier": "^5.2.1",
39
- "jest": "^29.7.0",
40
- "prettier": "^3.3.3",
41
- "rimraf": "^6.0.1",
42
- "ts-jest": "^29.2.5",
43
- "typescript": "^5.5.4",
44
- "unbuild": "^2.0.0"
45
- },
46
- "exports": {
47
- "./*": "./*",
48
- ".": {
49
- "types": "./lib/index.d.ts",
50
- "require": "./lib/index.cjs",
51
- "import": "./lib/index.mjs"
52
- },
53
- "./lib/colors/attribs": {
54
- "types": "./lib/colors/attribs.d.ts",
55
- "require": "./lib/colors/attribs.cjs",
56
- "import": "./lib/colors/attribs.mjs"
57
- },
58
- "./lib/colors/detect": {
59
- "types": "./lib/colors/detect.d.ts",
60
- "require": "./lib/colors/detect.cjs",
61
- "import": "./lib/colors/detect.mjs"
62
- },
63
- "./lib/colors/parse": {
64
- "types": "./lib/colors/parse.d.ts",
65
- "require": "./lib/colors/parse.cjs",
66
- "import": "./lib/colors/parse.mjs"
67
- },
68
- "./lib/colors/validate": {
69
- "types": "./lib/colors/validate.d.ts",
70
- "require": "./lib/colors/validate.cjs",
71
- "import": "./lib/colors/validate.mjs"
72
- },
73
- "./lib/css/parse": {
74
- "types": "./lib/css/parse.d.ts",
75
- "require": "./lib/css/parse.cjs",
76
- "import": "./lib/css/parse.mjs"
77
- },
78
- "./lib/css/parser/error": {
79
- "types": "./lib/css/parser/error.d.ts",
80
- "require": "./lib/css/parser/error.cjs",
81
- "import": "./lib/css/parser/error.mjs"
82
- },
83
- "./lib/css/parser/export": {
84
- "types": "./lib/css/parser/export.d.ts",
85
- "require": "./lib/css/parser/export.cjs",
86
- "import": "./lib/css/parser/export.mjs"
87
- },
88
- "./lib/css/parser/strings": {
89
- "types": "./lib/css/parser/strings.d.ts",
90
- "require": "./lib/css/parser/strings.cjs",
91
- "import": "./lib/css/parser/strings.mjs"
92
- },
93
- "./lib/css/parser/text": {
94
- "types": "./lib/css/parser/text.d.ts",
95
- "require": "./lib/css/parser/text.cjs",
96
- "import": "./lib/css/parser/text.mjs"
97
- },
98
- "./lib/css/parser/tokens": {
99
- "types": "./lib/css/parser/tokens.d.ts",
100
- "require": "./lib/css/parser/tokens.cjs",
101
- "import": "./lib/css/parser/tokens.mjs"
102
- },
103
- "./lib/css/parser/tree": {
104
- "types": "./lib/css/parser/tree.d.ts",
105
- "require": "./lib/css/parser/tree.cjs",
106
- "import": "./lib/css/parser/tree.mjs"
107
- },
108
- "./lib/css/parser/types": {
109
- "types": "./lib/css/parser/types.d.ts",
110
- "require": "./lib/css/parser/types.cjs",
111
- "import": "./lib/css/parser/types.mjs"
112
- },
113
- "./lib/download/api/cache": {
114
- "types": "./lib/download/api/cache.d.ts",
115
- "require": "./lib/download/api/cache.cjs",
116
- "import": "./lib/download/api/cache.mjs"
117
- },
118
- "./lib/download/api/config": {
119
- "types": "./lib/download/api/config.d.ts",
120
- "require": "./lib/download/api/config.cjs",
121
- "import": "./lib/download/api/config.mjs"
122
- },
123
- "./lib/download/api/download": {
124
- "types": "./lib/download/api/download.d.ts",
125
- "require": "./lib/download/api/download.cjs",
126
- "import": "./lib/download/api/download.mjs"
127
- },
128
- "./lib/download/api": {
129
- "types": "./lib/download/api/index.d.ts",
130
- "require": "./lib/download/api/index.cjs",
131
- "import": "./lib/download/api/index.mjs"
132
- },
133
- "./lib/download/api/index": {
134
- "types": "./lib/download/api/index.d.ts",
135
- "require": "./lib/download/api/index.cjs",
136
- "import": "./lib/download/api/index.mjs"
137
- },
138
- "./lib/download/api/queue": {
139
- "types": "./lib/download/api/queue.d.ts",
140
- "require": "./lib/download/api/queue.cjs",
141
- "import": "./lib/download/api/queue.mjs"
142
- },
143
- "./lib/download/api/types": {
144
- "types": "./lib/download/api/types.d.ts",
145
- "require": "./lib/download/api/types.cjs",
146
- "import": "./lib/download/api/types.mjs"
147
- },
148
- "./lib/download/git/branch": {
149
- "types": "./lib/download/git/branch.d.ts",
150
- "require": "./lib/download/git/branch.cjs",
151
- "import": "./lib/download/git/branch.mjs"
152
- },
153
- "./lib/download/git/hash": {
154
- "types": "./lib/download/git/hash.d.ts",
155
- "require": "./lib/download/git/hash.cjs",
156
- "import": "./lib/download/git/hash.mjs"
157
- },
158
- "./lib/download/git": {
159
- "types": "./lib/download/git/index.d.ts",
160
- "require": "./lib/download/git/index.cjs",
161
- "import": "./lib/download/git/index.mjs"
162
- },
163
- "./lib/download/git/index": {
164
- "types": "./lib/download/git/index.d.ts",
165
- "require": "./lib/download/git/index.cjs",
166
- "import": "./lib/download/git/index.mjs"
167
- },
168
- "./lib/download/git/reset": {
169
- "types": "./lib/download/git/reset.d.ts",
170
- "require": "./lib/download/git/reset.cjs",
171
- "import": "./lib/download/git/reset.mjs"
172
- },
173
- "./lib/download/github/hash": {
174
- "types": "./lib/download/github/hash.d.ts",
175
- "require": "./lib/download/github/hash.cjs",
176
- "import": "./lib/download/github/hash.mjs"
177
- },
178
- "./lib/download/github": {
179
- "types": "./lib/download/github/index.d.ts",
180
- "require": "./lib/download/github/index.cjs",
181
- "import": "./lib/download/github/index.mjs"
182
- },
183
- "./lib/download/github/index": {
184
- "types": "./lib/download/github/index.d.ts",
185
- "require": "./lib/download/github/index.cjs",
186
- "import": "./lib/download/github/index.mjs"
187
- },
188
- "./lib/download/github/types": {
189
- "types": "./lib/download/github/types.d.ts",
190
- "require": "./lib/download/github/types.cjs",
191
- "import": "./lib/download/github/types.mjs"
192
- },
193
- "./lib/download/gitlab/hash": {
194
- "types": "./lib/download/gitlab/hash.d.ts",
195
- "require": "./lib/download/gitlab/hash.cjs",
196
- "import": "./lib/download/gitlab/hash.mjs"
197
- },
198
- "./lib/download/gitlab": {
199
- "types": "./lib/download/gitlab/index.d.ts",
200
- "require": "./lib/download/gitlab/index.cjs",
201
- "import": "./lib/download/gitlab/index.mjs"
202
- },
203
- "./lib/download/gitlab/index": {
204
- "types": "./lib/download/gitlab/index.d.ts",
205
- "require": "./lib/download/gitlab/index.cjs",
206
- "import": "./lib/download/gitlab/index.mjs"
207
- },
208
- "./lib/download/gitlab/types": {
209
- "types": "./lib/download/gitlab/types.d.ts",
210
- "require": "./lib/download/gitlab/types.cjs",
211
- "import": "./lib/download/gitlab/types.mjs"
212
- },
213
- "./lib/download/helpers/untar": {
214
- "types": "./lib/download/helpers/untar.d.ts",
215
- "require": "./lib/download/helpers/untar.cjs",
216
- "import": "./lib/download/helpers/untar.mjs"
217
- },
218
- "./lib/download/helpers/unzip": {
219
- "types": "./lib/download/helpers/unzip.d.ts",
220
- "require": "./lib/download/helpers/unzip.cjs",
221
- "import": "./lib/download/helpers/unzip.mjs"
222
- },
223
- "./lib/download": {
224
- "types": "./lib/download/index.d.ts",
225
- "require": "./lib/download/index.cjs",
226
- "import": "./lib/download/index.mjs"
227
- },
228
- "./lib/download/index": {
229
- "types": "./lib/download/index.d.ts",
230
- "require": "./lib/download/index.cjs",
231
- "import": "./lib/download/index.mjs"
232
- },
233
- "./lib/download/npm": {
234
- "types": "./lib/download/npm/index.d.ts",
235
- "require": "./lib/download/npm/index.cjs",
236
- "import": "./lib/download/npm/index.mjs"
237
- },
238
- "./lib/download/npm/index": {
239
- "types": "./lib/download/npm/index.d.ts",
240
- "require": "./lib/download/npm/index.cjs",
241
- "import": "./lib/download/npm/index.mjs"
242
- },
243
- "./lib/download/npm/types": {
244
- "types": "./lib/download/npm/types.d.ts",
245
- "require": "./lib/download/npm/types.cjs",
246
- "import": "./lib/download/npm/types.mjs"
247
- },
248
- "./lib/download/npm/version": {
249
- "types": "./lib/download/npm/version.d.ts",
250
- "require": "./lib/download/npm/version.cjs",
251
- "import": "./lib/download/npm/version.mjs"
252
- },
253
- "./lib/download/types/modified": {
254
- "types": "./lib/download/types/modified.d.ts",
255
- "require": "./lib/download/types/modified.cjs",
256
- "import": "./lib/download/types/modified.mjs"
257
- },
258
- "./lib/download/types/sources": {
259
- "types": "./lib/download/types/sources.d.ts",
260
- "require": "./lib/download/types/sources.cjs",
261
- "import": "./lib/download/types/sources.mjs"
262
- },
263
- "./lib/export/directory": {
264
- "types": "./lib/export/directory.d.ts",
265
- "require": "./lib/export/directory.cjs",
266
- "import": "./lib/export/directory.mjs"
267
- },
268
- "./lib/export/helpers/custom-files": {
269
- "types": "./lib/export/helpers/custom-files.d.ts",
270
- "require": "./lib/export/helpers/custom-files.cjs",
271
- "import": "./lib/export/helpers/custom-files.mjs"
272
- },
273
- "./lib/export/helpers/prepare": {
274
- "types": "./lib/export/helpers/prepare.d.ts",
275
- "require": "./lib/export/helpers/prepare.cjs",
276
- "import": "./lib/export/helpers/prepare.mjs"
277
- },
278
- "./lib/export/helpers/types-version": {
279
- "types": "./lib/export/helpers/types-version.d.ts",
280
- "require": "./lib/export/helpers/types-version.cjs",
281
- "import": "./lib/export/helpers/types-version.mjs"
282
- },
283
- "./lib/export/icon-package": {
284
- "types": "./lib/export/icon-package.d.ts",
285
- "require": "./lib/export/icon-package.cjs",
286
- "import": "./lib/export/icon-package.mjs"
287
- },
288
- "./lib/export/json-package": {
289
- "types": "./lib/export/json-package.d.ts",
290
- "require": "./lib/export/json-package.cjs",
291
- "import": "./lib/export/json-package.mjs"
292
- },
293
- "./lib/icon-set": {
294
- "types": "./lib/icon-set/index.d.ts",
295
- "require": "./lib/icon-set/index.cjs",
296
- "import": "./lib/icon-set/index.mjs"
297
- },
298
- "./lib/icon-set/index": {
299
- "types": "./lib/icon-set/index.d.ts",
300
- "require": "./lib/icon-set/index.cjs",
301
- "import": "./lib/icon-set/index.mjs"
302
- },
303
- "./lib/icon-set/match": {
304
- "types": "./lib/icon-set/match.d.ts",
305
- "require": "./lib/icon-set/match.cjs",
306
- "import": "./lib/icon-set/match.mjs"
307
- },
308
- "./lib/icon-set/merge": {
309
- "types": "./lib/icon-set/merge.d.ts",
310
- "require": "./lib/icon-set/merge.cjs",
311
- "import": "./lib/icon-set/merge.mjs"
312
- },
313
- "./lib/icon-set/modified": {
314
- "types": "./lib/icon-set/modified.d.ts",
315
- "require": "./lib/icon-set/modified.cjs",
316
- "import": "./lib/icon-set/modified.mjs"
317
- },
318
- "./lib/icon-set/props": {
319
- "types": "./lib/icon-set/props.d.ts",
320
- "require": "./lib/icon-set/props.cjs",
321
- "import": "./lib/icon-set/props.mjs"
322
- },
323
- "./lib/icon-set/tags": {
324
- "types": "./lib/icon-set/tags.d.ts",
325
- "require": "./lib/icon-set/tags.cjs",
326
- "import": "./lib/icon-set/tags.mjs"
327
- },
328
- "./lib/icon-set/types": {
329
- "types": "./lib/icon-set/types.d.ts",
330
- "require": "./lib/icon-set/types.cjs",
331
- "import": "./lib/icon-set/types.mjs"
332
- },
333
- "./lib/import/directory": {
334
- "types": "./lib/import/directory.d.ts",
335
- "require": "./lib/import/directory.cjs",
336
- "import": "./lib/import/directory.mjs"
337
- },
338
- "./lib/import/figma": {
339
- "types": "./lib/import/figma/index.d.ts",
340
- "require": "./lib/import/figma/index.cjs",
341
- "import": "./lib/import/figma/index.mjs"
342
- },
343
- "./lib/import/figma/index": {
344
- "types": "./lib/import/figma/index.d.ts",
345
- "require": "./lib/import/figma/index.cjs",
346
- "import": "./lib/import/figma/index.mjs"
347
- },
348
- "./lib/import/figma/nodes": {
349
- "types": "./lib/import/figma/nodes.d.ts",
350
- "require": "./lib/import/figma/nodes.cjs",
351
- "import": "./lib/import/figma/nodes.mjs"
352
- },
353
- "./lib/import/figma/query": {
354
- "types": "./lib/import/figma/query.d.ts",
355
- "require": "./lib/import/figma/query.cjs",
356
- "import": "./lib/import/figma/query.mjs"
357
- },
358
- "./lib/import/figma/types/api": {
359
- "types": "./lib/import/figma/types/api.d.ts",
360
- "require": "./lib/import/figma/types/api.cjs",
361
- "import": "./lib/import/figma/types/api.mjs"
362
- },
363
- "./lib/import/figma/types/nodes": {
364
- "types": "./lib/import/figma/types/nodes.d.ts",
365
- "require": "./lib/import/figma/types/nodes.cjs",
366
- "import": "./lib/import/figma/types/nodes.mjs"
367
- },
368
- "./lib/import/figma/types/options": {
369
- "types": "./lib/import/figma/types/options.d.ts",
370
- "require": "./lib/import/figma/types/options.cjs",
371
- "import": "./lib/import/figma/types/options.mjs"
372
- },
373
- "./lib/import/figma/types/result": {
374
- "types": "./lib/import/figma/types/result.d.ts",
375
- "require": "./lib/import/figma/types/result.cjs",
376
- "import": "./lib/import/figma/types/result.mjs"
377
- },
378
- "./lib": {
379
- "types": "./lib/index.d.ts",
380
- "require": "./lib/index.cjs",
381
- "import": "./lib/index.mjs"
382
- },
383
- "./lib/index": {
384
- "types": "./lib/index.d.ts",
385
- "require": "./lib/index.cjs",
386
- "import": "./lib/index.mjs"
387
- },
388
- "./lib/misc/bump-version": {
389
- "types": "./lib/misc/bump-version.d.ts",
390
- "require": "./lib/misc/bump-version.cjs",
391
- "import": "./lib/misc/bump-version.mjs"
392
- },
393
- "./lib/misc/cheerio": {
394
- "types": "./lib/misc/cheerio.d.ts",
395
- "require": "./lib/misc/cheerio.cjs",
396
- "import": "./lib/misc/cheerio.mjs"
397
- },
398
- "./lib/misc/compare-dirs": {
399
- "types": "./lib/misc/compare-dirs.d.ts",
400
- "require": "./lib/misc/compare-dirs.cjs",
401
- "import": "./lib/misc/compare-dirs.mjs"
402
- },
403
- "./lib/misc/exec": {
404
- "types": "./lib/misc/exec.d.ts",
405
- "require": "./lib/misc/exec.cjs",
406
- "import": "./lib/misc/exec.mjs"
407
- },
408
- "./lib/misc/keyword": {
409
- "types": "./lib/misc/keyword.d.ts",
410
- "require": "./lib/misc/keyword.cjs",
411
- "import": "./lib/misc/keyword.mjs"
412
- },
413
- "./lib/misc/scan": {
414
- "types": "./lib/misc/scan.d.ts",
415
- "require": "./lib/misc/scan.cjs",
416
- "import": "./lib/misc/scan.mjs"
417
- },
418
- "./lib/misc/write-json": {
419
- "types": "./lib/misc/write-json.d.ts",
420
- "require": "./lib/misc/write-json.cjs",
421
- "import": "./lib/misc/write-json.mjs"
422
- },
423
- "./lib/optimise/figma": {
424
- "types": "./lib/optimise/figma.d.ts",
425
- "require": "./lib/optimise/figma.cjs",
426
- "import": "./lib/optimise/figma.mjs"
427
- },
428
- "./lib/optimise/flags": {
429
- "types": "./lib/optimise/flags.d.ts",
430
- "require": "./lib/optimise/flags.cjs",
431
- "import": "./lib/optimise/flags.mjs"
432
- },
433
- "./lib/optimise/global-style": {
434
- "types": "./lib/optimise/global-style.d.ts",
435
- "require": "./lib/optimise/global-style.cjs",
436
- "import": "./lib/optimise/global-style.mjs"
437
- },
438
- "./lib/optimise/mask": {
439
- "types": "./lib/optimise/mask.d.ts",
440
- "require": "./lib/optimise/mask.cjs",
441
- "import": "./lib/optimise/mask.mjs"
442
- },
443
- "./lib/optimise/origin": {
444
- "types": "./lib/optimise/origin.d.ts",
445
- "require": "./lib/optimise/origin.cjs",
446
- "import": "./lib/optimise/origin.mjs"
447
- },
448
- "./lib/optimise/scale": {
449
- "types": "./lib/optimise/scale.d.ts",
450
- "require": "./lib/optimise/scale.cjs",
451
- "import": "./lib/optimise/scale.mjs"
452
- },
453
- "./lib/optimise/svgo": {
454
- "types": "./lib/optimise/svgo.d.ts",
455
- "require": "./lib/optimise/svgo.cjs",
456
- "import": "./lib/optimise/svgo.mjs"
457
- },
458
- "./lib/optimise/unwrap": {
459
- "types": "./lib/optimise/unwrap.d.ts",
460
- "require": "./lib/optimise/unwrap.cjs",
461
- "import": "./lib/optimise/unwrap.mjs"
462
- },
463
- "./lib/svg/analyse": {
464
- "types": "./lib/svg/analyse.d.ts",
465
- "require": "./lib/svg/analyse.cjs",
466
- "import": "./lib/svg/analyse.mjs"
467
- },
468
- "./lib/svg/analyse/error": {
469
- "types": "./lib/svg/analyse/error.d.ts",
470
- "require": "./lib/svg/analyse/error.cjs",
471
- "import": "./lib/svg/analyse/error.mjs"
472
- },
473
- "./lib/svg/analyse/types": {
474
- "types": "./lib/svg/analyse/types.d.ts",
475
- "require": "./lib/svg/analyse/types.cjs",
476
- "import": "./lib/svg/analyse/types.mjs"
477
- },
478
- "./lib/svg/cleanup": {
479
- "types": "./lib/svg/cleanup.d.ts",
480
- "require": "./lib/svg/cleanup.cjs",
481
- "import": "./lib/svg/cleanup.mjs"
482
- },
483
- "./lib/svg/cleanup/attribs": {
484
- "types": "./lib/svg/cleanup/attribs.d.ts",
485
- "require": "./lib/svg/cleanup/attribs.cjs",
486
- "import": "./lib/svg/cleanup/attribs.mjs"
487
- },
488
- "./lib/svg/cleanup/bad-tags": {
489
- "types": "./lib/svg/cleanup/bad-tags.d.ts",
490
- "require": "./lib/svg/cleanup/bad-tags.cjs",
491
- "import": "./lib/svg/cleanup/bad-tags.mjs"
492
- },
493
- "./lib/svg/cleanup/inline-style": {
494
- "types": "./lib/svg/cleanup/inline-style.d.ts",
495
- "require": "./lib/svg/cleanup/inline-style.cjs",
496
- "import": "./lib/svg/cleanup/inline-style.mjs"
497
- },
498
- "./lib/svg/cleanup/root-style": {
499
- "types": "./lib/svg/cleanup/root-style.d.ts",
500
- "require": "./lib/svg/cleanup/root-style.cjs",
501
- "import": "./lib/svg/cleanup/root-style.mjs"
502
- },
503
- "./lib/svg/cleanup/root-svg": {
504
- "types": "./lib/svg/cleanup/root-svg.d.ts",
505
- "require": "./lib/svg/cleanup/root-svg.cjs",
506
- "import": "./lib/svg/cleanup/root-svg.mjs"
507
- },
508
- "./lib/svg/cleanup/svgo-style": {
509
- "types": "./lib/svg/cleanup/svgo-style.d.ts",
510
- "require": "./lib/svg/cleanup/svgo-style.cjs",
511
- "import": "./lib/svg/cleanup/svgo-style.mjs"
512
- },
513
- "./lib/svg/data/attributes": {
514
- "types": "./lib/svg/data/attributes.d.ts",
515
- "require": "./lib/svg/data/attributes.cjs",
516
- "import": "./lib/svg/data/attributes.mjs"
517
- },
518
- "./lib/svg/data/tags": {
519
- "types": "./lib/svg/data/tags.d.ts",
520
- "require": "./lib/svg/data/tags.cjs",
521
- "import": "./lib/svg/data/tags.mjs"
522
- },
523
- "./lib/svg": {
524
- "types": "./lib/svg/index.d.ts",
525
- "require": "./lib/svg/index.cjs",
526
- "import": "./lib/svg/index.mjs"
527
- },
528
- "./lib/svg/index": {
529
- "types": "./lib/svg/index.d.ts",
530
- "require": "./lib/svg/index.cjs",
531
- "import": "./lib/svg/index.mjs"
532
- },
533
- "./lib/svg/parse": {
534
- "types": "./lib/svg/parse.d.ts",
535
- "require": "./lib/svg/parse.cjs",
536
- "import": "./lib/svg/parse.mjs"
537
- },
538
- "./lib/svg/parse-style": {
539
- "types": "./lib/svg/parse-style.d.ts",
540
- "require": "./lib/svg/parse-style.cjs",
541
- "import": "./lib/svg/parse-style.mjs"
542
- },
543
- "./lib/tests/helpers": {
544
- "types": "./lib/tests/helpers.d.ts",
545
- "require": "./lib/tests/helpers.cjs",
546
- "import": "./lib/tests/helpers.mjs"
547
- }
548
- },
549
- "scripts": {
550
- "clean": "rimraf lib tests-compiled tsconfig.tsbuildinfo",
551
- "lint": "eslint src/**/*.ts",
552
- "prebuild": "npm run lint && npm run clean",
553
- "build": "unbuild",
554
- "test:jest-cjs": "jest --clearCache --config=jest.config.cjs && jest --runInBand --config=jest.config.cjs",
555
- "test:jest-esm": "cross-env NODE_OPTIONS=--experimental-vm-modules TEST_REMOTE=false jest --clearCache --config=jest.config.mjs && cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --config=jest.config.mjs",
556
- "test": "npm run test:jest-cjs && npm run test:jest-esm",
557
- "test:ci": "cross-env TEST_REMOTE=false npm run test"
558
- }
559
- }
2
+ "name": "@iconify/tools",
3
+ "type": "module",
4
+ "description": "Collection of functions for cleaning up and parsing SVG for Iconify project",
5
+ "author": "Vjacheslav Trushkin",
6
+ "version": "4.0.7",
7
+ "license": "MIT",
8
+ "bugs": "https://github.com/iconify/tools/issues",
9
+ "homepage": "https://github.com/iconify/tools",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git://github.com/iconify/tools.git"
13
+ },
14
+ "main": "./lib/index.cjs",
15
+ "module": "./lib/index.mjs",
16
+ "types": "./lib/index.d.ts",
17
+ "scripts": {
18
+ "clean": "rimraf lib tests-compiled tsconfig.tsbuildinfo",
19
+ "lint": "eslint src/**/*.ts",
20
+ "prebuild": "npm run lint && npm run clean",
21
+ "build": "unbuild",
22
+ "test:jest-cjs": "jest --clearCache --config=jest.config.cjs && jest --runInBand --config=jest.config.cjs",
23
+ "test:jest-esm": "cross-env NODE_OPTIONS=--experimental-vm-modules TEST_REMOTE=false jest --clearCache --config=jest.config.mjs && cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --config=jest.config.mjs",
24
+ "test": "npm run test:jest-cjs && npm run test:jest-esm",
25
+ "test:ci": "cross-env TEST_REMOTE=false npm run test"
26
+ },
27
+ "dependencies": {
28
+ "@iconify/types": "^2.0.0",
29
+ "@iconify/utils": "^2.1.32",
30
+ "@types/tar": "^6.1.13",
31
+ "axios": "^1.7.7",
32
+ "cheerio": "1.0.0",
33
+ "domhandler": "^5.0.3",
34
+ "extract-zip": "^2.0.1",
35
+ "local-pkg": "^0.5.0",
36
+ "pathe": "^1.1.2",
37
+ "svgo": "^3.3.2",
38
+ "tar": "^6.2.1"
39
+ },
40
+ "devDependencies": {
41
+ "@types/jest": "^29.5.12",
42
+ "@types/node": "^20.16.2",
43
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
44
+ "@typescript-eslint/parser": "^6.21.0",
45
+ "cross-env": "^7.0.3",
46
+ "eslint": "^8.57.0",
47
+ "eslint-config-prettier": "^9.1.0",
48
+ "eslint-plugin-prettier": "^5.2.1",
49
+ "jest": "^29.7.0",
50
+ "prettier": "^3.3.3",
51
+ "rimraf": "^6.0.1",
52
+ "ts-jest": "^29.2.5",
53
+ "typescript": "^5.5.4",
54
+ "unbuild": "^2.0.0"
55
+ },
56
+ "exports": {
57
+ "./*": "./*",
58
+ ".": {
59
+ "types": "./lib/index.d.ts",
60
+ "require": "./lib/index.cjs",
61
+ "import": "./lib/index.mjs"
62
+ },
63
+ "./lib/colors/attribs": {
64
+ "types": "./lib/colors/attribs.d.ts",
65
+ "require": "./lib/colors/attribs.cjs",
66
+ "import": "./lib/colors/attribs.mjs"
67
+ },
68
+ "./lib/colors/detect": {
69
+ "types": "./lib/colors/detect.d.ts",
70
+ "require": "./lib/colors/detect.cjs",
71
+ "import": "./lib/colors/detect.mjs"
72
+ },
73
+ "./lib/colors/parse": {
74
+ "types": "./lib/colors/parse.d.ts",
75
+ "require": "./lib/colors/parse.cjs",
76
+ "import": "./lib/colors/parse.mjs"
77
+ },
78
+ "./lib/colors/validate": {
79
+ "types": "./lib/colors/validate.d.ts",
80
+ "require": "./lib/colors/validate.cjs",
81
+ "import": "./lib/colors/validate.mjs"
82
+ },
83
+ "./lib/css/parse": {
84
+ "types": "./lib/css/parse.d.ts",
85
+ "require": "./lib/css/parse.cjs",
86
+ "import": "./lib/css/parse.mjs"
87
+ },
88
+ "./lib/css/parser/error": {
89
+ "types": "./lib/css/parser/error.d.ts",
90
+ "require": "./lib/css/parser/error.cjs",
91
+ "import": "./lib/css/parser/error.mjs"
92
+ },
93
+ "./lib/css/parser/export": {
94
+ "types": "./lib/css/parser/export.d.ts",
95
+ "require": "./lib/css/parser/export.cjs",
96
+ "import": "./lib/css/parser/export.mjs"
97
+ },
98
+ "./lib/css/parser/strings": {
99
+ "types": "./lib/css/parser/strings.d.ts",
100
+ "require": "./lib/css/parser/strings.cjs",
101
+ "import": "./lib/css/parser/strings.mjs"
102
+ },
103
+ "./lib/css/parser/text": {
104
+ "types": "./lib/css/parser/text.d.ts",
105
+ "require": "./lib/css/parser/text.cjs",
106
+ "import": "./lib/css/parser/text.mjs"
107
+ },
108
+ "./lib/css/parser/tokens": {
109
+ "types": "./lib/css/parser/tokens.d.ts",
110
+ "require": "./lib/css/parser/tokens.cjs",
111
+ "import": "./lib/css/parser/tokens.mjs"
112
+ },
113
+ "./lib/css/parser/tree": {
114
+ "types": "./lib/css/parser/tree.d.ts",
115
+ "require": "./lib/css/parser/tree.cjs",
116
+ "import": "./lib/css/parser/tree.mjs"
117
+ },
118
+ "./lib/css/parser/types": {
119
+ "types": "./lib/css/parser/types.d.ts",
120
+ "require": "./lib/css/parser/types.cjs",
121
+ "import": "./lib/css/parser/types.mjs"
122
+ },
123
+ "./lib/download/api/cache": {
124
+ "types": "./lib/download/api/cache.d.ts",
125
+ "require": "./lib/download/api/cache.cjs",
126
+ "import": "./lib/download/api/cache.mjs"
127
+ },
128
+ "./lib/download/api/config": {
129
+ "types": "./lib/download/api/config.d.ts",
130
+ "require": "./lib/download/api/config.cjs",
131
+ "import": "./lib/download/api/config.mjs"
132
+ },
133
+ "./lib/download/api/download": {
134
+ "types": "./lib/download/api/download.d.ts",
135
+ "require": "./lib/download/api/download.cjs",
136
+ "import": "./lib/download/api/download.mjs"
137
+ },
138
+ "./lib/download/api": {
139
+ "types": "./lib/download/api/index.d.ts",
140
+ "require": "./lib/download/api/index.cjs",
141
+ "import": "./lib/download/api/index.mjs"
142
+ },
143
+ "./lib/download/api/index": {
144
+ "types": "./lib/download/api/index.d.ts",
145
+ "require": "./lib/download/api/index.cjs",
146
+ "import": "./lib/download/api/index.mjs"
147
+ },
148
+ "./lib/download/api/queue": {
149
+ "types": "./lib/download/api/queue.d.ts",
150
+ "require": "./lib/download/api/queue.cjs",
151
+ "import": "./lib/download/api/queue.mjs"
152
+ },
153
+ "./lib/download/api/types": {
154
+ "types": "./lib/download/api/types.d.ts",
155
+ "require": "./lib/download/api/types.cjs",
156
+ "import": "./lib/download/api/types.mjs"
157
+ },
158
+ "./lib/download/git/branch": {
159
+ "types": "./lib/download/git/branch.d.ts",
160
+ "require": "./lib/download/git/branch.cjs",
161
+ "import": "./lib/download/git/branch.mjs"
162
+ },
163
+ "./lib/download/git/hash": {
164
+ "types": "./lib/download/git/hash.d.ts",
165
+ "require": "./lib/download/git/hash.cjs",
166
+ "import": "./lib/download/git/hash.mjs"
167
+ },
168
+ "./lib/download/git": {
169
+ "types": "./lib/download/git/index.d.ts",
170
+ "require": "./lib/download/git/index.cjs",
171
+ "import": "./lib/download/git/index.mjs"
172
+ },
173
+ "./lib/download/git/index": {
174
+ "types": "./lib/download/git/index.d.ts",
175
+ "require": "./lib/download/git/index.cjs",
176
+ "import": "./lib/download/git/index.mjs"
177
+ },
178
+ "./lib/download/git/reset": {
179
+ "types": "./lib/download/git/reset.d.ts",
180
+ "require": "./lib/download/git/reset.cjs",
181
+ "import": "./lib/download/git/reset.mjs"
182
+ },
183
+ "./lib/download/github/hash": {
184
+ "types": "./lib/download/github/hash.d.ts",
185
+ "require": "./lib/download/github/hash.cjs",
186
+ "import": "./lib/download/github/hash.mjs"
187
+ },
188
+ "./lib/download/github": {
189
+ "types": "./lib/download/github/index.d.ts",
190
+ "require": "./lib/download/github/index.cjs",
191
+ "import": "./lib/download/github/index.mjs"
192
+ },
193
+ "./lib/download/github/index": {
194
+ "types": "./lib/download/github/index.d.ts",
195
+ "require": "./lib/download/github/index.cjs",
196
+ "import": "./lib/download/github/index.mjs"
197
+ },
198
+ "./lib/download/github/types": {
199
+ "types": "./lib/download/github/types.d.ts",
200
+ "require": "./lib/download/github/types.cjs",
201
+ "import": "./lib/download/github/types.mjs"
202
+ },
203
+ "./lib/download/gitlab/hash": {
204
+ "types": "./lib/download/gitlab/hash.d.ts",
205
+ "require": "./lib/download/gitlab/hash.cjs",
206
+ "import": "./lib/download/gitlab/hash.mjs"
207
+ },
208
+ "./lib/download/gitlab": {
209
+ "types": "./lib/download/gitlab/index.d.ts",
210
+ "require": "./lib/download/gitlab/index.cjs",
211
+ "import": "./lib/download/gitlab/index.mjs"
212
+ },
213
+ "./lib/download/gitlab/index": {
214
+ "types": "./lib/download/gitlab/index.d.ts",
215
+ "require": "./lib/download/gitlab/index.cjs",
216
+ "import": "./lib/download/gitlab/index.mjs"
217
+ },
218
+ "./lib/download/gitlab/types": {
219
+ "types": "./lib/download/gitlab/types.d.ts",
220
+ "require": "./lib/download/gitlab/types.cjs",
221
+ "import": "./lib/download/gitlab/types.mjs"
222
+ },
223
+ "./lib/download/helpers/untar": {
224
+ "types": "./lib/download/helpers/untar.d.ts",
225
+ "require": "./lib/download/helpers/untar.cjs",
226
+ "import": "./lib/download/helpers/untar.mjs"
227
+ },
228
+ "./lib/download/helpers/unzip": {
229
+ "types": "./lib/download/helpers/unzip.d.ts",
230
+ "require": "./lib/download/helpers/unzip.cjs",
231
+ "import": "./lib/download/helpers/unzip.mjs"
232
+ },
233
+ "./lib/download": {
234
+ "types": "./lib/download/index.d.ts",
235
+ "require": "./lib/download/index.cjs",
236
+ "import": "./lib/download/index.mjs"
237
+ },
238
+ "./lib/download/index": {
239
+ "types": "./lib/download/index.d.ts",
240
+ "require": "./lib/download/index.cjs",
241
+ "import": "./lib/download/index.mjs"
242
+ },
243
+ "./lib/download/npm": {
244
+ "types": "./lib/download/npm/index.d.ts",
245
+ "require": "./lib/download/npm/index.cjs",
246
+ "import": "./lib/download/npm/index.mjs"
247
+ },
248
+ "./lib/download/npm/index": {
249
+ "types": "./lib/download/npm/index.d.ts",
250
+ "require": "./lib/download/npm/index.cjs",
251
+ "import": "./lib/download/npm/index.mjs"
252
+ },
253
+ "./lib/download/npm/types": {
254
+ "types": "./lib/download/npm/types.d.ts",
255
+ "require": "./lib/download/npm/types.cjs",
256
+ "import": "./lib/download/npm/types.mjs"
257
+ },
258
+ "./lib/download/npm/version": {
259
+ "types": "./lib/download/npm/version.d.ts",
260
+ "require": "./lib/download/npm/version.cjs",
261
+ "import": "./lib/download/npm/version.mjs"
262
+ },
263
+ "./lib/download/types/modified": {
264
+ "types": "./lib/download/types/modified.d.ts",
265
+ "require": "./lib/download/types/modified.cjs",
266
+ "import": "./lib/download/types/modified.mjs"
267
+ },
268
+ "./lib/download/types/sources": {
269
+ "types": "./lib/download/types/sources.d.ts",
270
+ "require": "./lib/download/types/sources.cjs",
271
+ "import": "./lib/download/types/sources.mjs"
272
+ },
273
+ "./lib/export/directory": {
274
+ "types": "./lib/export/directory.d.ts",
275
+ "require": "./lib/export/directory.cjs",
276
+ "import": "./lib/export/directory.mjs"
277
+ },
278
+ "./lib/export/helpers/custom-files": {
279
+ "types": "./lib/export/helpers/custom-files.d.ts",
280
+ "require": "./lib/export/helpers/custom-files.cjs",
281
+ "import": "./lib/export/helpers/custom-files.mjs"
282
+ },
283
+ "./lib/export/helpers/prepare": {
284
+ "types": "./lib/export/helpers/prepare.d.ts",
285
+ "require": "./lib/export/helpers/prepare.cjs",
286
+ "import": "./lib/export/helpers/prepare.mjs"
287
+ },
288
+ "./lib/export/helpers/types-version": {
289
+ "types": "./lib/export/helpers/types-version.d.ts",
290
+ "require": "./lib/export/helpers/types-version.cjs",
291
+ "import": "./lib/export/helpers/types-version.mjs"
292
+ },
293
+ "./lib/export/icon-package": {
294
+ "types": "./lib/export/icon-package.d.ts",
295
+ "require": "./lib/export/icon-package.cjs",
296
+ "import": "./lib/export/icon-package.mjs"
297
+ },
298
+ "./lib/export/json-package": {
299
+ "types": "./lib/export/json-package.d.ts",
300
+ "require": "./lib/export/json-package.cjs",
301
+ "import": "./lib/export/json-package.mjs"
302
+ },
303
+ "./lib/icon-set": {
304
+ "types": "./lib/icon-set/index.d.ts",
305
+ "require": "./lib/icon-set/index.cjs",
306
+ "import": "./lib/icon-set/index.mjs"
307
+ },
308
+ "./lib/icon-set/index": {
309
+ "types": "./lib/icon-set/index.d.ts",
310
+ "require": "./lib/icon-set/index.cjs",
311
+ "import": "./lib/icon-set/index.mjs"
312
+ },
313
+ "./lib/icon-set/match": {
314
+ "types": "./lib/icon-set/match.d.ts",
315
+ "require": "./lib/icon-set/match.cjs",
316
+ "import": "./lib/icon-set/match.mjs"
317
+ },
318
+ "./lib/icon-set/merge": {
319
+ "types": "./lib/icon-set/merge.d.ts",
320
+ "require": "./lib/icon-set/merge.cjs",
321
+ "import": "./lib/icon-set/merge.mjs"
322
+ },
323
+ "./lib/icon-set/modified": {
324
+ "types": "./lib/icon-set/modified.d.ts",
325
+ "require": "./lib/icon-set/modified.cjs",
326
+ "import": "./lib/icon-set/modified.mjs"
327
+ },
328
+ "./lib/icon-set/props": {
329
+ "types": "./lib/icon-set/props.d.ts",
330
+ "require": "./lib/icon-set/props.cjs",
331
+ "import": "./lib/icon-set/props.mjs"
332
+ },
333
+ "./lib/icon-set/tags": {
334
+ "types": "./lib/icon-set/tags.d.ts",
335
+ "require": "./lib/icon-set/tags.cjs",
336
+ "import": "./lib/icon-set/tags.mjs"
337
+ },
338
+ "./lib/icon-set/types": {
339
+ "types": "./lib/icon-set/types.d.ts",
340
+ "require": "./lib/icon-set/types.cjs",
341
+ "import": "./lib/icon-set/types.mjs"
342
+ },
343
+ "./lib/import/directory": {
344
+ "types": "./lib/import/directory.d.ts",
345
+ "require": "./lib/import/directory.cjs",
346
+ "import": "./lib/import/directory.mjs"
347
+ },
348
+ "./lib/import/figma": {
349
+ "types": "./lib/import/figma/index.d.ts",
350
+ "require": "./lib/import/figma/index.cjs",
351
+ "import": "./lib/import/figma/index.mjs"
352
+ },
353
+ "./lib/import/figma/index": {
354
+ "types": "./lib/import/figma/index.d.ts",
355
+ "require": "./lib/import/figma/index.cjs",
356
+ "import": "./lib/import/figma/index.mjs"
357
+ },
358
+ "./lib/import/figma/nodes": {
359
+ "types": "./lib/import/figma/nodes.d.ts",
360
+ "require": "./lib/import/figma/nodes.cjs",
361
+ "import": "./lib/import/figma/nodes.mjs"
362
+ },
363
+ "./lib/import/figma/query": {
364
+ "types": "./lib/import/figma/query.d.ts",
365
+ "require": "./lib/import/figma/query.cjs",
366
+ "import": "./lib/import/figma/query.mjs"
367
+ },
368
+ "./lib/import/figma/types/api": {
369
+ "types": "./lib/import/figma/types/api.d.ts",
370
+ "require": "./lib/import/figma/types/api.cjs",
371
+ "import": "./lib/import/figma/types/api.mjs"
372
+ },
373
+ "./lib/import/figma/types/nodes": {
374
+ "types": "./lib/import/figma/types/nodes.d.ts",
375
+ "require": "./lib/import/figma/types/nodes.cjs",
376
+ "import": "./lib/import/figma/types/nodes.mjs"
377
+ },
378
+ "./lib/import/figma/types/options": {
379
+ "types": "./lib/import/figma/types/options.d.ts",
380
+ "require": "./lib/import/figma/types/options.cjs",
381
+ "import": "./lib/import/figma/types/options.mjs"
382
+ },
383
+ "./lib/import/figma/types/result": {
384
+ "types": "./lib/import/figma/types/result.d.ts",
385
+ "require": "./lib/import/figma/types/result.cjs",
386
+ "import": "./lib/import/figma/types/result.mjs"
387
+ },
388
+ "./lib": {
389
+ "types": "./lib/index.d.ts",
390
+ "require": "./lib/index.cjs",
391
+ "import": "./lib/index.mjs"
392
+ },
393
+ "./lib/index": {
394
+ "types": "./lib/index.d.ts",
395
+ "require": "./lib/index.cjs",
396
+ "import": "./lib/index.mjs"
397
+ },
398
+ "./lib/misc/bump-version": {
399
+ "types": "./lib/misc/bump-version.d.ts",
400
+ "require": "./lib/misc/bump-version.cjs",
401
+ "import": "./lib/misc/bump-version.mjs"
402
+ },
403
+ "./lib/misc/cheerio": {
404
+ "types": "./lib/misc/cheerio.d.ts",
405
+ "require": "./lib/misc/cheerio.cjs",
406
+ "import": "./lib/misc/cheerio.mjs"
407
+ },
408
+ "./lib/misc/compare-dirs": {
409
+ "types": "./lib/misc/compare-dirs.d.ts",
410
+ "require": "./lib/misc/compare-dirs.cjs",
411
+ "import": "./lib/misc/compare-dirs.mjs"
412
+ },
413
+ "./lib/misc/exec": {
414
+ "types": "./lib/misc/exec.d.ts",
415
+ "require": "./lib/misc/exec.cjs",
416
+ "import": "./lib/misc/exec.mjs"
417
+ },
418
+ "./lib/misc/keyword": {
419
+ "types": "./lib/misc/keyword.d.ts",
420
+ "require": "./lib/misc/keyword.cjs",
421
+ "import": "./lib/misc/keyword.mjs"
422
+ },
423
+ "./lib/misc/scan": {
424
+ "types": "./lib/misc/scan.d.ts",
425
+ "require": "./lib/misc/scan.cjs",
426
+ "import": "./lib/misc/scan.mjs"
427
+ },
428
+ "./lib/misc/write-json": {
429
+ "types": "./lib/misc/write-json.d.ts",
430
+ "require": "./lib/misc/write-json.cjs",
431
+ "import": "./lib/misc/write-json.mjs"
432
+ },
433
+ "./lib/optimise/figma": {
434
+ "types": "./lib/optimise/figma.d.ts",
435
+ "require": "./lib/optimise/figma.cjs",
436
+ "import": "./lib/optimise/figma.mjs"
437
+ },
438
+ "./lib/optimise/flags": {
439
+ "types": "./lib/optimise/flags.d.ts",
440
+ "require": "./lib/optimise/flags.cjs",
441
+ "import": "./lib/optimise/flags.mjs"
442
+ },
443
+ "./lib/optimise/global-style": {
444
+ "types": "./lib/optimise/global-style.d.ts",
445
+ "require": "./lib/optimise/global-style.cjs",
446
+ "import": "./lib/optimise/global-style.mjs"
447
+ },
448
+ "./lib/optimise/mask": {
449
+ "types": "./lib/optimise/mask.d.ts",
450
+ "require": "./lib/optimise/mask.cjs",
451
+ "import": "./lib/optimise/mask.mjs"
452
+ },
453
+ "./lib/optimise/origin": {
454
+ "types": "./lib/optimise/origin.d.ts",
455
+ "require": "./lib/optimise/origin.cjs",
456
+ "import": "./lib/optimise/origin.mjs"
457
+ },
458
+ "./lib/optimise/scale": {
459
+ "types": "./lib/optimise/scale.d.ts",
460
+ "require": "./lib/optimise/scale.cjs",
461
+ "import": "./lib/optimise/scale.mjs"
462
+ },
463
+ "./lib/optimise/svgo": {
464
+ "types": "./lib/optimise/svgo.d.ts",
465
+ "require": "./lib/optimise/svgo.cjs",
466
+ "import": "./lib/optimise/svgo.mjs"
467
+ },
468
+ "./lib/optimise/unwrap": {
469
+ "types": "./lib/optimise/unwrap.d.ts",
470
+ "require": "./lib/optimise/unwrap.cjs",
471
+ "import": "./lib/optimise/unwrap.mjs"
472
+ },
473
+ "./lib/svg/analyse": {
474
+ "types": "./lib/svg/analyse.d.ts",
475
+ "require": "./lib/svg/analyse.cjs",
476
+ "import": "./lib/svg/analyse.mjs"
477
+ },
478
+ "./lib/svg/analyse/error": {
479
+ "types": "./lib/svg/analyse/error.d.ts",
480
+ "require": "./lib/svg/analyse/error.cjs",
481
+ "import": "./lib/svg/analyse/error.mjs"
482
+ },
483
+ "./lib/svg/analyse/types": {
484
+ "types": "./lib/svg/analyse/types.d.ts",
485
+ "require": "./lib/svg/analyse/types.cjs",
486
+ "import": "./lib/svg/analyse/types.mjs"
487
+ },
488
+ "./lib/svg/cleanup": {
489
+ "types": "./lib/svg/cleanup.d.ts",
490
+ "require": "./lib/svg/cleanup.cjs",
491
+ "import": "./lib/svg/cleanup.mjs"
492
+ },
493
+ "./lib/svg/cleanup/attribs": {
494
+ "types": "./lib/svg/cleanup/attribs.d.ts",
495
+ "require": "./lib/svg/cleanup/attribs.cjs",
496
+ "import": "./lib/svg/cleanup/attribs.mjs"
497
+ },
498
+ "./lib/svg/cleanup/bad-tags": {
499
+ "types": "./lib/svg/cleanup/bad-tags.d.ts",
500
+ "require": "./lib/svg/cleanup/bad-tags.cjs",
501
+ "import": "./lib/svg/cleanup/bad-tags.mjs"
502
+ },
503
+ "./lib/svg/cleanup/inline-style": {
504
+ "types": "./lib/svg/cleanup/inline-style.d.ts",
505
+ "require": "./lib/svg/cleanup/inline-style.cjs",
506
+ "import": "./lib/svg/cleanup/inline-style.mjs"
507
+ },
508
+ "./lib/svg/cleanup/root-style": {
509
+ "types": "./lib/svg/cleanup/root-style.d.ts",
510
+ "require": "./lib/svg/cleanup/root-style.cjs",
511
+ "import": "./lib/svg/cleanup/root-style.mjs"
512
+ },
513
+ "./lib/svg/cleanup/root-svg": {
514
+ "types": "./lib/svg/cleanup/root-svg.d.ts",
515
+ "require": "./lib/svg/cleanup/root-svg.cjs",
516
+ "import": "./lib/svg/cleanup/root-svg.mjs"
517
+ },
518
+ "./lib/svg/cleanup/svgo-style": {
519
+ "types": "./lib/svg/cleanup/svgo-style.d.ts",
520
+ "require": "./lib/svg/cleanup/svgo-style.cjs",
521
+ "import": "./lib/svg/cleanup/svgo-style.mjs"
522
+ },
523
+ "./lib/svg/data/attributes": {
524
+ "types": "./lib/svg/data/attributes.d.ts",
525
+ "require": "./lib/svg/data/attributes.cjs",
526
+ "import": "./lib/svg/data/attributes.mjs"
527
+ },
528
+ "./lib/svg/data/tags": {
529
+ "types": "./lib/svg/data/tags.d.ts",
530
+ "require": "./lib/svg/data/tags.cjs",
531
+ "import": "./lib/svg/data/tags.mjs"
532
+ },
533
+ "./lib/svg": {
534
+ "types": "./lib/svg/index.d.ts",
535
+ "require": "./lib/svg/index.cjs",
536
+ "import": "./lib/svg/index.mjs"
537
+ },
538
+ "./lib/svg/index": {
539
+ "types": "./lib/svg/index.d.ts",
540
+ "require": "./lib/svg/index.cjs",
541
+ "import": "./lib/svg/index.mjs"
542
+ },
543
+ "./lib/svg/parse": {
544
+ "types": "./lib/svg/parse.d.ts",
545
+ "require": "./lib/svg/parse.cjs",
546
+ "import": "./lib/svg/parse.mjs"
547
+ },
548
+ "./lib/svg/parse-style": {
549
+ "types": "./lib/svg/parse-style.d.ts",
550
+ "require": "./lib/svg/parse-style.cjs",
551
+ "import": "./lib/svg/parse-style.mjs"
552
+ },
553
+ "./lib/tests/helpers": {
554
+ "types": "./lib/tests/helpers.d.ts",
555
+ "require": "./lib/tests/helpers.cjs",
556
+ "import": "./lib/tests/helpers.mjs"
557
+ }
558
+ }
559
+ }