@iconify/tools 2.1.0-beta.3 → 2.1.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.
@@ -79,10 +79,10 @@ function mergeIconSets(oldIcons, newIcons) {
79
79
  for (const name in oldEntries) {
80
80
  add(name);
81
81
  }
82
- const lastModified1 = oldIcons.lastModified;
83
- const lastModified2 = newIcons.lastModified;
84
- if ((lastModified1 || lastModified2) && !iconSet_modified.hasIconDataBeenModified(oldIcons, newIcons)) {
85
- mergedIcons.updateLastModified(lastModified2 ? lastModified1 ? Math.min(lastModified1, lastModified2) : lastModified2 : lastModified1);
82
+ if (oldIcons.lastModified && !iconSet_modified.hasIconDataBeenModified(oldIcons, mergedIcons)) {
83
+ mergedIcons.updateLastModified(oldIcons.lastModified);
84
+ } else if (newIcons.lastModified && !iconSet_modified.hasIconDataBeenModified(newIcons, mergedIcons)) {
85
+ mergedIcons.updateLastModified(newIcons.lastModified);
86
86
  }
87
87
  return mergedIcons;
88
88
  }
@@ -75,10 +75,10 @@ function mergeIconSets(oldIcons, newIcons) {
75
75
  for (const name in oldEntries) {
76
76
  add(name);
77
77
  }
78
- const lastModified1 = oldIcons.lastModified;
79
- const lastModified2 = newIcons.lastModified;
80
- if ((lastModified1 || lastModified2) && !hasIconDataBeenModified(oldIcons, newIcons)) {
81
- mergedIcons.updateLastModified(lastModified2 ? lastModified1 ? Math.min(lastModified1, lastModified2) : lastModified2 : lastModified1);
78
+ if (oldIcons.lastModified && !hasIconDataBeenModified(oldIcons, mergedIcons)) {
79
+ mergedIcons.updateLastModified(oldIcons.lastModified);
80
+ } else if (newIcons.lastModified && !hasIconDataBeenModified(newIcons, mergedIcons)) {
81
+ mergedIcons.updateLastModified(newIcons.lastModified);
82
82
  }
83
83
  return mergedIcons;
84
84
  }
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.1.0-beta.3",
6
+ "version": "2.1.0-beta.4",
7
7
  "license": "MIT",
8
8
  "bugs": "https://github.com/iconify/tools/issues",
9
9
  "homepage": "https://github.com/iconify/tools",