@iconify/tools 2.1.2 → 2.2.0-beta.2

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