@ubean/icon 0.1.13 → 0.2.1
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.
- package/dist/index.d.ts +3 -4
- package/dist/index.js +2 -3
- package/dist/vite.d.ts +10525 -1
- package/dist/vite.js +2 -1
- package/package.json +5 -6
- package/dist/vite-B6Jt3L2U.d.ts +0 -10408
package/dist/vite.js
CHANGED
|
@@ -77,7 +77,8 @@ function serveSvgFromCustomCollection(urlPath, resolvedCustoms) {
|
|
|
77
77
|
if (!existsSync(config.dir)) continue;
|
|
78
78
|
const iconFile = findSvgFile(config.dir, iconName, config.normalizeIconName);
|
|
79
79
|
if (iconFile) {
|
|
80
|
-
const
|
|
80
|
+
const svg = readFileSync(iconFile, "utf-8");
|
|
81
|
+
const data = parseSvgToIconData(svg);
|
|
81
82
|
if (data) {
|
|
82
83
|
const width = data.width || 24;
|
|
83
84
|
const height = data.height || 24;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ubean/icon",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Icon module for ubean with Iconify integration",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -24,16 +24,15 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"consola": "^3.4.2",
|
|
28
27
|
"defu": "6.1.7",
|
|
29
28
|
"pathe": "^2.0.3"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
|
-
"@types/node": "^26.
|
|
31
|
+
"@types/node": "^26.2.0",
|
|
33
32
|
"typescript": "7.0.2",
|
|
34
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.
|
|
35
|
-
"vite-plus": "0.2.
|
|
36
|
-
"vue": "^3.5.
|
|
33
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.9",
|
|
34
|
+
"vite-plus": "0.2.9",
|
|
35
|
+
"vue": "^3.5.41"
|
|
37
36
|
},
|
|
38
37
|
"peerDependencies": {
|
|
39
38
|
"vue": "^3.0.0"
|