@iconify/tools 2.0.15 → 2.0.16

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.
@@ -281,7 +281,6 @@ class IconSet {
281
281
  const items = this[prop];
282
282
  const keys = Object.keys(items);
283
283
  if (keys.length) {
284
- sortThemeKeys(keys);
285
284
  const sortedTheme = /* @__PURE__ */ Object.create(null);
286
285
  const tested = this.checkTheme(prop === "prefixes");
287
286
  keys.forEach((key) => {
@@ -277,7 +277,6 @@ class IconSet {
277
277
  const items = this[prop];
278
278
  const keys = Object.keys(items);
279
279
  if (keys.length) {
280
- sortThemeKeys(keys);
281
280
  const sortedTheme = /* @__PURE__ */ Object.create(null);
282
281
  const tested = this.checkTheme(prop === "prefixes");
283
282
  keys.forEach((key) => {
package/lib/index.cjs CHANGED
@@ -27,6 +27,7 @@ const download_gitlab_hash = require('./download/gitlab/hash.cjs');
27
27
  const download_npm_index = require('./download/npm/index.cjs');
28
28
  const download_npm_version = require('./download/npm/version.cjs');
29
29
  const download_index = require('./download/index.cjs');
30
+ const download_api_download = require('./download/api/download.cjs');
30
31
  const colors_parse = require('./colors/parse.cjs');
31
32
  const colors_validate = require('./colors/validate.cjs');
32
33
  const optimise_svgo = require('./optimise/svgo.cjs');
@@ -74,7 +75,6 @@ require('crypto');
74
75
  require('node-fetch');
75
76
  require('pathe');
76
77
  require('child_process');
77
- require('./download/api/download.cjs');
78
78
  require('util');
79
79
  require('stream');
80
80
  require('extract-zip');
@@ -115,6 +115,7 @@ exports.downloadNPMPackage = download_npm_index.downloadNPMPackage;
115
115
  exports.getNPMVersion = download_npm_version.getNPMVersion;
116
116
  exports.getPackageVersion = download_npm_version.getPackageVersion;
117
117
  exports.downloadPackage = download_index.downloadPackage;
118
+ exports.downloadFile = download_api_download.downloadFile;
118
119
  exports.isEmptyColor = colors_parse.isEmptyColor;
119
120
  exports.parseColors = colors_parse.parseColors;
120
121
  exports.validateColors = colors_validate.validateColors;
package/lib/index.d.ts CHANGED
@@ -23,6 +23,7 @@ export { getGitLabRepoHash } from './download/gitlab/hash.js';
23
23
  export { downloadNPMPackage } from './download/npm/index.js';
24
24
  export { getNPMVersion, getPackageVersion } from './download/npm/version.js';
25
25
  export { downloadPackage } from './download/index.js';
26
+ export { downloadFile } from './download/api/download.js';
26
27
  export { isEmptyColor, parseColors } from './colors/parse.js';
27
28
  export { validateColors } from './colors/validate.js';
28
29
  export { runSVGO } from './optimise/svgo.js';
@@ -56,10 +57,10 @@ import './download/types/sources.js';
56
57
  import './download/github/types.js';
57
58
  import './download/gitlab/types.js';
58
59
  import './download/npm/types.js';
60
+ import './download/api/types.js';
59
61
  import '@iconify/utils/lib/colors/types';
60
62
  import './colors/attribs.js';
61
63
  import 'svgo';
62
64
  import './export/helpers/custom-files.js';
63
65
  import 'fs';
64
66
  import 'child_process';
65
- import './download/api/types.js';
package/lib/index.mjs CHANGED
@@ -23,6 +23,7 @@ export { getGitLabRepoHash } from './download/gitlab/hash.mjs';
23
23
  export { downloadNPMPackage } from './download/npm/index.mjs';
24
24
  export { getNPMVersion, getPackageVersion } from './download/npm/version.mjs';
25
25
  export { downloadPackage } from './download/index.mjs';
26
+ export { downloadFile } from './download/api/download.mjs';
26
27
  export { isEmptyColor, parseColors } from './colors/parse.mjs';
27
28
  export { validateColors } from './colors/validate.mjs';
28
29
  export { runSVGO } from './optimise/svgo.mjs';
@@ -70,7 +71,6 @@ import 'crypto';
70
71
  import 'node-fetch';
71
72
  import 'pathe';
72
73
  import 'child_process';
73
- import './download/api/download.mjs';
74
74
  import 'util';
75
75
  import 'stream';
76
76
  import 'extract-zip';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "description": "Collection of functions for cleaning up and parsing SVG for Iconify project",
5
5
  "author": "Vjacheslav Trushkin",
6
- "version": "2.0.15",
6
+ "version": "2.0.16",
7
7
  "license": "MIT",
8
8
  "bugs": "https://github.com/iconify/tools/issues",
9
9
  "homepage": "https://github.com/iconify/tools",