@iconify/tools 2.2.0-beta.2 → 2.2.0-beta.4

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