@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import "temporal-polyfill";
2
2
  //#region deno.json
3
- var version = "2.5.0-dev.2281+26ad469a";
3
+ var version = "2.5.0-dev.2289+111f0945";
4
4
  //#endregion
5
5
  export { version };
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
- if ("sizes" in attrs && attrs.sizes.match(/\d+x\d+/)) {
228
- const [w, h] = attrs.sizes.split("x").map((v) => Number.parseInt(v));
229
- if (w < 38 || h < 19) continue;
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.2281+26ad469a",
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/relay": "2.5.0-dev.2281+26ad469a",
92
- "@fedify/fedify": "2.5.0-dev.2281+26ad469a",
93
- "@fedify/sqlite": "2.5.0-dev.2281+26ad469a",
94
- "@fedify/init": "2.5.0-dev.2281+26ad469a",
95
- "@fedify/vocab-runtime": "2.5.0-dev.2281+26ad469a",
96
- "@fedify/vocab-tools": "2.5.0-dev.2281+26ad469a",
97
- "@fedify/webfinger": "2.5.0-dev.2281+26ad469a",
98
- "@fedify/vocab": "2.5.0-dev.2281+26ad469a"
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",