@fedify/vocab-tools 2.4.0-dev.1655 → 2.4.0-pr.934.40

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/src/class.ts CHANGED
@@ -31,10 +31,8 @@ const RUNTIME_IMPORTS = [
31
31
  "importMultibaseKey",
32
32
  "importPem",
33
33
  "isDecimal",
34
- "isGatewayUrl",
35
34
  "LanguageString",
36
35
  "parseDecimal",
37
- "parseGatewayUrl",
38
36
  "parseIri",
39
37
  "parseJsonLdId",
40
38
  "type RemoteDocument",
package/src/type.ts CHANGED
@@ -6,10 +6,8 @@ const HEURISTICS_CONTEXTS: string[] = [
6
6
  "https://www.w3.org/ns/activitystreams",
7
7
  "https://w3id.org/security/v1",
8
8
  "https://w3id.org/security/data-integrity/v1",
9
- "https://w3id.org/security/data-integrity/v2",
10
9
  "https://www.w3.org/ns/did/v1",
11
10
  "https://w3id.org/security/multikey/v1",
12
- "https://w3id.org/fep/ef61",
13
11
  ];
14
12
 
15
13
  interface ScalarType {
@@ -326,28 +324,6 @@ const scalarTypes: Record<string, ScalarType> = {
326
324
  return `parseIri(${v}["@value"])`;
327
325
  },
328
326
  },
329
- "fedify:gatewayUrl": {
330
- name: "URL",
331
- typeGuard(v) {
332
- return `${v} instanceof URL && isGatewayUrl(${v})`;
333
- },
334
- encoder(v) {
335
- return `{ "@id": formatIri(${v}) }`;
336
- },
337
- compactEncoder(v) {
338
- return `formatIri(${v})`;
339
- },
340
- dataCheck(v) {
341
- return `${v} != null && typeof ${v} === "object" &&
342
- (("@id" in ${v} && typeof ${v}["@id"] === "string" &&
343
- ${v}["@id"] !== "" && ${v}["@id"] !== "/") ||
344
- ("@value" in ${v} && typeof ${v}["@value"] === "string" &&
345
- ${v}["@value"] !== "" && ${v}["@value"] !== "/"))`;
346
- },
347
- decoder(v) {
348
- return `parseGatewayUrl(typeof ${v}["@id"] === "string" ? ${v}["@id"] : ${v}["@value"])`;
349
- },
350
- },
351
327
  "fedify:publicKey": {
352
328
  name: "CryptoKey",
353
329
  typeGuard(v) {