@fedify/cli 2.5.0-dev.2281 → 2.5.0-dev.2289
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/deno.js +1 -1
- package/dist/nodeinfo.js +6 -4
- package/package.json +9 -9
package/dist/deno.js
CHANGED
package/dist/nodeinfo.js
CHANGED
|
@@ -224,13 +224,15 @@ async function getFaviconUrl(url, userAgent) {
|
|
|
224
224
|
}
|
|
225
225
|
const rel = attrs.rel?.toLowerCase()?.trim()?.split(/\s+/) ?? [];
|
|
226
226
|
if (!rel.includes("icon") && !rel.includes("apple-touch-icon")) continue;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
227
|
+
const tokens = attrs.sizes?.match(/\d+x\d+/g);
|
|
228
|
+
if (tokens != null && !tokens.some((token) => {
|
|
229
|
+
const [w, h] = token.split("x").map((v) => Number.parseInt(v));
|
|
230
|
+
return w >= 38 && h >= 19;
|
|
231
|
+
})) continue;
|
|
231
232
|
if ("href" in attrs) {
|
|
232
233
|
const parsedUrl = new URL(attrs.href, response.url);
|
|
233
234
|
if (parsedUrl.pathname.toLowerCase().endsWith(".svg")) continue;
|
|
235
|
+
if (attrs.type?.toLowerCase()?.trim() === "image/svg+xml") continue;
|
|
234
236
|
return parsedUrl;
|
|
235
237
|
}
|
|
236
238
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/cli",
|
|
3
|
-
"version": "2.5.0-dev.
|
|
3
|
+
"version": "2.5.0-dev.2289+111f0945",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"README.md",
|
|
@@ -88,14 +88,14 @@
|
|
|
88
88
|
"temporal-polyfill": "^1.0.1",
|
|
89
89
|
"valibot": "^1.4.0",
|
|
90
90
|
"yaml": "^2.9.0",
|
|
91
|
-
"@fedify/
|
|
92
|
-
"@fedify/
|
|
93
|
-
"@fedify/sqlite": "2.5.0-dev.
|
|
94
|
-
"@fedify/
|
|
95
|
-
"@fedify/vocab
|
|
96
|
-
"@fedify/
|
|
97
|
-
"@fedify/
|
|
98
|
-
"@fedify/
|
|
91
|
+
"@fedify/fedify": "2.5.0-dev.2289+111f0945",
|
|
92
|
+
"@fedify/relay": "2.5.0-dev.2289+111f0945",
|
|
93
|
+
"@fedify/sqlite": "2.5.0-dev.2289+111f0945",
|
|
94
|
+
"@fedify/vocab-runtime": "2.5.0-dev.2289+111f0945",
|
|
95
|
+
"@fedify/vocab": "2.5.0-dev.2289+111f0945",
|
|
96
|
+
"@fedify/webfinger": "2.5.0-dev.2289+111f0945",
|
|
97
|
+
"@fedify/vocab-tools": "2.5.0-dev.2289+111f0945",
|
|
98
|
+
"@fedify/init": "2.5.0-dev.2289+111f0945"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@types/bun": "^1.2.23",
|