@unocss/preset-web-fonts 0.65.2 → 0.65.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.
- package/dist/index.mjs +1 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -35,8 +35,7 @@ function createFontshareProvider(name, host) {
|
|
|
35
35
|
let name2 = f.name.replace(/\s+/g, "-").toLocaleLowerCase();
|
|
36
36
|
if (f.weights?.length)
|
|
37
37
|
name2 += `@${f.weights.flatMap((w) => f.italic ? Number(w) + 1 : w).sort().join()}`;
|
|
38
|
-
else
|
|
39
|
-
name2 += `@${f.italic ? 2 : 1}`;
|
|
38
|
+
else name2 += `@${f.italic ? 2 : 1}`;
|
|
40
39
|
return `f[]=${name2}`;
|
|
41
40
|
}).join("&");
|
|
42
41
|
return `${host}/v2/css?${strings}&display=swap`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-web-fonts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.65.
|
|
4
|
+
"version": "0.65.4",
|
|
5
5
|
"description": "Web Fonts support for Uno CSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"ofetch": "^1.4.1",
|
|
53
|
-
"@unocss/core": "0.65.
|
|
53
|
+
"@unocss/core": "0.65.4"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "unbuild",
|