@fedify/relay 2.0.35-dev.2480 → 2.0.35

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.
@@ -0,0 +1,29 @@
1
+ import "@js-temporal/polyfill";
2
+ import "urlpattern-polyfill";
3
+ globalThis.addEventListener = () => {};
4
+ import { createRequire } from "node:module";
5
+ //#region \0rolldown/runtime.js
6
+ var __create = Object.create;
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
+ var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __getProtoOf = Object.getPrototypeOf;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
15
+ key = keys[i];
16
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: ((k) => from[k]).bind(null, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
+ value: mod,
25
+ enumerable: true
26
+ }) : target, mod));
27
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
28
+ //#endregion
29
+ export { __require as n, __toESM as r, __commonJSMin as t };
@@ -1,7 +1,7 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-COAZF2D5.js";
4
+ import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-0G3mvxzI.js";
5
5
  import { MemoryKvStore, signRequest } from "@fedify/fedify";
6
6
  import { createRelay } from "@fedify/relay";
7
7
  import { Accept, Announce, Create, Delete, Follow, Move, Note, Person, Undo, Update } from "@fedify/vocab";
@@ -1,7 +1,7 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-COAZF2D5.js";
4
+ import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-0G3mvxzI.js";
5
5
  import { MemoryKvStore, signRequest } from "@fedify/fedify";
6
6
  import { createRelay } from "@fedify/relay";
7
7
  import { Create, Delete, Follow, Move, Note, Person, Undo, Update } from "@fedify/vocab";
package/dist/mod.d.cts CHANGED
@@ -107,7 +107,9 @@ type AuthenticatedDocumentLoaderFactory = (identity: {
107
107
  * Gets a {@link RemoteDocument} from the given response.
108
108
  * @param url The URL of the document to load.
109
109
  * @param response The response to get the document from.
110
- * @param fetch The function to fetch the document.
110
+ * @param fetch The function to fetch the document. It is called with the URL
111
+ * of an alternate document, if any, after the response body has
112
+ * been either read or its cancellation has been started.
111
113
  * @returns The loaded remote document.
112
114
  * @throws {FetchError} If the response is not OK.
113
115
  * @internal
package/dist/mod.d.ts CHANGED
@@ -107,7 +107,9 @@ type AuthenticatedDocumentLoaderFactory = (identity: {
107
107
  * Gets a {@link RemoteDocument} from the given response.
108
108
  * @param url The URL of the document to load.
109
109
  * @param response The response to get the document from.
110
- * @param fetch The function to fetch the document.
110
+ * @param fetch The function to fetch the document. It is called with the URL
111
+ * of an alternate document, if any, after the response body has
112
+ * been either read or its cancellation has been started.
111
113
  * @returns The loaded remote document.
112
114
  * @throws {FetchError} If the response is not OK.
113
115
  * @internal