@fedify/fedify 1.5.0-dev.698 → 1.5.0-dev.709
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/CHANGES.md +55 -1
- package/README.md +1 -1
- package/SPONSORS.md +1 -1
- package/esm/deno.js +1 -1
- package/esm/runtime/url.js +7 -2
- package/esm/vocab/actor.js +2 -2
- package/esm/vocab/vocab.js +176 -176
- package/esm/webfinger/handler.js +2 -2
- package/package.json +1 -1
- package/types/runtime/url.d.ts.map +1 -1
package/esm/webfinger/handler.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { getLogger } from "@logtape/logtape";
|
2
2
|
import { SpanKind, SpanStatusCode } from "@opentelemetry/api";
|
3
|
-
import {
|
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
|
/**
|
@@ -85,7 +85,7 @@ async function handleWebFingerInternal(request, { context, host, actorDispatcher
|
|
85
85
|
}
|
86
86
|
}
|
87
87
|
else {
|
88
|
-
const resourceHost =
|
88
|
+
const resourceHost = domainToASCII(match[2].toLowerCase());
|
89
89
|
if (resourceHost != context.url.host && resourceHost != host) {
|
90
90
|
return await onNotFound(request);
|
91
91
|
}
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../src/runtime/url.ts"],"names":[],"mappings":"AAKA,qBAAa,QAAS,SAAQ,KAAK;gBACrB,OAAO,EAAE,MAAM;CAI5B;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../src/runtime/url.ts"],"names":[],"mappings":"AAKA,qBAAa,QAAS,SAAQ,KAAK;gBACrB,OAAO,EAAE,MAAM;CAI5B;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA8ClE;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CASjE;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,WASvD;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAWzD"}
|