@iconify/tools 4.1.1 → 4.1.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.
@@ -17,6 +17,8 @@ declare const sizeTags: {
17
17
  };
18
18
  /**
19
19
  * Add tags to icon set
20
+ *
21
+ * @deprecated
20
22
  */
21
23
  declare function addTagsToIconSet(iconSet: IconSet, customTags?: string[]): string[];
22
24
 
@@ -17,6 +17,8 @@ declare const sizeTags: {
17
17
  };
18
18
  /**
19
19
  * Add tags to icon set
20
+ *
21
+ * @deprecated
20
22
  */
21
23
  declare function addTagsToIconSet(iconSet: IconSet, customTags?: string[]): string[];
22
24
 
@@ -17,6 +17,8 @@ declare const sizeTags: {
17
17
  };
18
18
  /**
19
19
  * Add tags to icon set
20
+ *
21
+ * @deprecated
20
22
  */
21
23
  declare function addTagsToIconSet(iconSet: IconSet, customTags?: string[]): string[];
22
24
 
package/lib/misc/scan.cjs CHANGED
@@ -76,7 +76,12 @@ function scanDirectorySync(path, callback, subdirs = true) {
76
76
  if (isHidden(filename)) {
77
77
  continue;
78
78
  }
79
- const stat = fs.statSync(path + subdir + filename);
79
+ let stat;
80
+ try {
81
+ stat = fs.statSync(path + subdir + filename);
82
+ } catch (err) {
83
+ continue;
84
+ }
80
85
  if (stat.isDirectory()) {
81
86
  if (subdirs) {
82
87
  scan(subdir + filename + "/");
package/lib/misc/scan.mjs CHANGED
@@ -74,7 +74,12 @@ function scanDirectorySync(path, callback, subdirs = true) {
74
74
  if (isHidden(filename)) {
75
75
  continue;
76
76
  }
77
- const stat = statSync(path + subdir + filename);
77
+ let stat;
78
+ try {
79
+ stat = statSync(path + subdir + filename);
80
+ } catch (err) {
81
+ continue;
82
+ }
78
83
  if (stat.isDirectory()) {
79
84
  if (subdirs) {
80
85
  scan(subdir + filename + "/");
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": "4.1.1",
6
+ "version": "4.1.2",
7
7
  "license": "MIT",
8
8
  "bugs": "https://github.com/iconify/tools/issues",
9
9
  "homepage": "https://github.com/iconify/tools",
@@ -16,9 +16,9 @@
16
16
  "types": "./lib/index.d.ts",
17
17
  "dependencies": {
18
18
  "@iconify/types": "^2.0.0",
19
- "@iconify/utils": "^2.2.0",
19
+ "@iconify/utils": "^2.3.0",
20
20
  "@types/tar": "^6.1.13",
21
- "axios": "^1.7.9",
21
+ "axios": "^1.8.3",
22
22
  "cheerio": "1.0.0",
23
23
  "domhandler": "^5.0.3",
24
24
  "extract-zip": "^2.0.1",
@@ -29,18 +29,18 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/jest": "^29.5.14",
32
- "@types/node": "^20.17.9",
32
+ "@types/node": "^20.17.24",
33
33
  "@typescript-eslint/eslint-plugin": "^6.21.0",
34
34
  "@typescript-eslint/parser": "^6.21.0",
35
35
  "cross-env": "^7.0.3",
36
36
  "eslint": "^8.57.1",
37
37
  "eslint-config-prettier": "^9.1.0",
38
- "eslint-plugin-prettier": "^5.2.1",
38
+ "eslint-plugin-prettier": "^5.2.3",
39
39
  "jest": "^29.7.0",
40
- "prettier": "^3.4.2",
40
+ "prettier": "^3.5.3",
41
41
  "rimraf": "^6.0.1",
42
- "ts-jest": "^29.2.5",
43
- "typescript": "^5.7.2",
42
+ "ts-jest": "^29.2.6",
43
+ "typescript": "^5.8.2",
44
44
  "unbuild": "^2.0.0"
45
45
  },
46
46
  "exports": {