@fedify/relay 2.5.0-dev.2619 → 2.5.0-dev.2664

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,7 +1,7 @@
1
1
  import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-DxwVANuF.js";
4
+ import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-DC_Mnl2m.js";
5
5
  import { MemoryKvStore, signRequest } from "@fedify/fedify";
6
6
  import { createRelay } from "@fedify/relay";
7
7
  import { deepStrictEqual, ok, strictEqual } from "node:assert";
@@ -1,7 +1,7 @@
1
1
  import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-DxwVANuF.js";
4
+ import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-DC_Mnl2m.js";
5
5
  import { MemoryKvStore, signJsonLd, signRequest } from "@fedify/fedify";
6
6
  import { createRelay } from "@fedify/relay";
7
7
  import { deepStrictEqual, ok, strictEqual } from "node:assert";
@@ -4522,7 +4522,7 @@ const preloadedContexts = {
4522
4522
  } }
4523
4523
  };
4524
4524
  //#endregion
4525
- //#region ../vocab-runtime/dist/url-mWveR5GA.js
4525
+ //#region ../vocab-runtime/dist/url-CtFRFaSc.js
4526
4526
  var UrlError = class extends Error {
4527
4527
  /**
4528
4528
  * The failure category. Defaults to `"disallowed"`.
@@ -4764,7 +4764,7 @@ function matchesIPv6Prefix(address, prefixWords, prefixLength) {
4764
4764
  return true;
4765
4765
  }
4766
4766
  //#endregion
4767
- //#region ../vocab-runtime/dist/public-fetch-ziZ39L5I.js
4767
+ //#region ../vocab-runtime/dist/public-fetch-C-4lRJ9L.js
4768
4768
  const grants = /* @__PURE__ */ new WeakMap();
4769
4769
  /**
4770
4770
  * Issues a grant for the given URL's origin and addresses. This does not
@@ -26618,7 +26618,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
26618
26618
  require_build();
26619
26619
  var import_src = /* @__PURE__ */ __toESM(require_src(), 1);
26620
26620
  var name = "@fedify/vocab-runtime";
26621
- var version = "2.5.0-dev.2619+88aa7efd";
26621
+ var version = "2.5.0-dev.2664+4790a72e";
26622
26622
  /**
26623
26623
  * Error thrown when fetching a JSON-LD document failed.
26624
26624
  */
@@ -26921,10 +26921,10 @@ var HttpHeaderLink = class HttpHeaderLink {
26921
26921
  for (const input of inputs) if (input instanceof HttpHeaderLink) this.#entries.push(...structuredClone(input.#entries));
26922
26922
  else if (Array.isArray(input)) this.#entries.push(...input.map(([uri, parameters]) => {
26923
26923
  validateURI(uri);
26924
- Object.entries(parameters).forEach(([key, value]) => {
26924
+ for (const [key, value] of Object.entries(parameters)) {
26925
26925
  if (key !== key.toLowerCase() || !/^[\w-]+\*?$/.test(key)) throw new SyntaxError(`\`${key}\` is not a valid parameter key!`);
26926
26926
  if (parametersNeedLowerCase.includes(key) && value !== value.toLowerCase()) throw new SyntaxError(`\`${value}\` is not a valid parameter value!`);
26927
- });
26927
+ }
26928
26928
  return [uri, structuredClone(parameters)];
26929
26929
  }));
26930
26930
  else for (const entry of parseLinkFromString((input instanceof Headers || input instanceof Response ? (input instanceof Headers ? input : input.headers).get("Link") : input) ?? "")) this.#entries.push(entry);
@@ -27447,7 +27447,7 @@ var Base = class {
27447
27447
  return this.codec.encode(buf);
27448
27448
  }
27449
27449
  decode(string) {
27450
- for (const char of string) if (this.alphabet && this.alphabet.indexOf(char) < 0) throw new Error(`invalid character '${char}' in '${string}'`);
27450
+ for (const char of string) if (this.alphabet && !this.alphabet.includes(char)) throw new Error(`invalid character '${char}' in '${string}'`);
27451
27451
  return this.codec.decode(string);
27452
27452
  }
27453
27453
  };
@@ -27479,8 +27479,8 @@ const encode = (data, alphabet, bitsPerChar) => {
27479
27479
  let out = "";
27480
27480
  let bits = 0;
27481
27481
  let buffer = 0;
27482
- for (let i = 0; i < data.length; ++i) {
27483
- buffer = buffer << 8 | data[i];
27482
+ for (const byte of data) {
27483
+ buffer = buffer << 8 | byte;
27484
27484
  bits += 8;
27485
27485
  while (bits > bitsPerChar) {
27486
27486
  bits -= bitsPerChar;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/relay",
3
- "version": "2.5.0-dev.2619+88aa7efd",
3
+ "version": "2.5.0-dev.2664+4790a72e",
4
4
  "description": "ActivityPub relay support for Fedify",
5
5
  "keywords": [
6
6
  "Fedify",
@@ -45,16 +45,16 @@
45
45
  "package.json"
46
46
  ],
47
47
  "dependencies": {
48
- "@logtape/logtape": "^2.2.0",
48
+ "@logtape/logtape": "2.4.2",
49
49
  "temporal-polyfill": "^1.0.1",
50
- "@fedify/fedify": "^2.5.0-dev.2619+88aa7efd",
51
- "@fedify/vocab": "2.5.0-dev.2619+88aa7efd"
50
+ "@fedify/fedify": "^2.5.0-dev.2664+4790a72e",
51
+ "@fedify/vocab": "2.5.0-dev.2664+4790a72e"
52
52
  },
53
53
  "devDependencies": {
54
54
  "tsdown": "^0.22.0",
55
55
  "typescript": "^6.0.3",
56
56
  "urlpattern-polyfill": "^10.1.0",
57
- "@fedify/vocab-runtime": "^2.5.0-dev.2619+88aa7efd"
57
+ "@fedify/vocab-runtime": "^2.5.0-dev.2664+4790a72e"
58
58
  },
59
59
  "scripts": {
60
60
  "build:self": "tsdown",