@fedify/fedify 1.3.11 → 1.3.13

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.
@@ -1,6 +1,6 @@
1
1
  import { getLogger } from "@logtape/logtape";
2
2
  import { SpanKind, SpanStatusCode } from "@opentelemetry/api";
3
- import { toASCII } from "node:punycode";
3
+ import { domainToASCII } from "node:url";
4
4
  import { Link as LinkObject } from "../vocab/mod.js";
5
5
  const logger = getLogger(["fedify", "webfinger", "server"]);
6
6
  /**
@@ -61,7 +61,7 @@ async function handleWebFingerInternal(request, { context, actorDispatcher, acto
61
61
  const uriParsed = context.parseUri(resourceUrl);
62
62
  if (uriParsed?.type != "actor") {
63
63
  const match = /^acct:([^@]+)@([^@]+)$/.exec(resource);
64
- if (match == null || toASCII(match[2].toLowerCase()) != context.url.host) {
64
+ if (match == null || domainToASCII(match[2].toLowerCase()) != context.url.host) {
65
65
  return await onNotFound(request);
66
66
  }
67
67
  const username = match[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.3.11",
3
+ "version": "1.3.13",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -88,7 +88,7 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@hugoalh/http-header-link": "^1.0.2",
91
- "@logtape/logtape": "^0.8.1",
91
+ "@logtape/logtape": "^0.8.2",
92
92
  "@opentelemetry/api": "^1.9.0",
93
93
  "@opentelemetry/semantic-conventions": "^1.27.0",
94
94
  "@phensley/language-tag": "^1.9.0",
@@ -1 +1 @@
1
- {"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.10/delay.ts"],"names":[],"mappings":";AAMA,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B3E"}
1
+ {"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.11/delay.ts"],"names":[],"mappings":";AAMA,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B3E"}