@fedify/vocab 2.3.0-dev.1274 → 2.3.0-dev.1280
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/deno.json +1 -1
- package/dist/mod.cjs +1573 -652
- package/dist/mod.d.cts +30 -2
- package/dist/mod.d.ts +30 -2
- package/dist/mod.js +1573 -653
- package/dist-tests/{actor-CaUOaviw.mjs → actor-BM-a5Qzw.mjs} +2 -2
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/object.yaml +6 -0
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-B0Z-tH4q.mjs → vocab-BBRml5cy.mjs} +1571 -651
- package/dist-tests/vocab.test.mjs +338 -1
- package/package.json +4 -4
- package/src/mod.ts +1 -0
- package/src/object.yaml +6 -0
- package/src/preprocessors.ts +48 -0
- package/src/vocab.test.ts +455 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { A as __commonJSMin, M as __toESM, r as Application, u as Group, v as Organization, w as Service, y as Person } from "./vocab-
|
|
3
|
+
import { A as __commonJSMin, M as __toESM, r as Application, u as Group, v as Organization, w as Service, y as Person } from "./vocab-BBRml5cy.mjs";
|
|
4
4
|
import { t as getTypeId } from "./type-Cf-vxmre.mjs";
|
|
5
5
|
import { lookupWebFinger } from "@fedify/webfinger";
|
|
6
6
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
@@ -1206,7 +1206,7 @@ var esm_default = new class FetchMock {
|
|
|
1206
1206
|
//#endregion
|
|
1207
1207
|
//#region deno.json
|
|
1208
1208
|
var name = "@fedify/vocab";
|
|
1209
|
-
var version = "2.3.0-dev.
|
|
1209
|
+
var version = "2.3.0-dev.1280+7bca39c7";
|
|
1210
1210
|
//#endregion
|
|
1211
1211
|
//#region src/actor.ts
|
|
1212
1212
|
const ACTOR_DISCOVERY_HISTOGRAM_BUCKETS = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { j as __exportAll, r as Application, u as Group, v as Organization, w as Service, y as Person } from "./vocab-
|
|
4
|
-
import { a as normalizeActorHandle, c as esm_default, i as isActor, n as getActorHandle, r as getActorTypeName, t as getActorClassByTypeName } from "./actor-
|
|
3
|
+
import { j as __exportAll, r as Application, u as Group, v as Organization, w as Service, y as Person } from "./vocab-BBRml5cy.mjs";
|
|
4
|
+
import { a as normalizeActorHandle, c as esm_default, i as isActor, n as getActorHandle, r as getActorTypeName, t as getActorClassByTypeName } from "./actor-BM-a5Qzw.mjs";
|
|
5
5
|
import { createTestMeterProvider, test } from "@fedify/fixture";
|
|
6
6
|
import { deepStrictEqual, ok, rejects, strictEqual, throws } from "node:assert/strict";
|
|
7
7
|
//#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { g as Object$1, h as Note, i as Collection, y as Person } from "./vocab-
|
|
4
|
-
import { c as esm_default, i as isActor, o as name, s as version } from "./actor-
|
|
3
|
+
import { g as Object$1, h as Note, i as Collection, y as Person } from "./vocab-BBRml5cy.mjs";
|
|
4
|
+
import { c as esm_default, i as isActor, o as name, s as version } from "./actor-BM-a5Qzw.mjs";
|
|
5
5
|
import { t as getTypeId } from "./type-Cf-vxmre.mjs";
|
|
6
6
|
import { t as assertInstanceOf } from "./utils-CE8Dk5hm.mjs";
|
|
7
7
|
import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
package/dist-tests/object.yaml
CHANGED
|
@@ -137,6 +137,9 @@ properties:
|
|
|
137
137
|
(vertical) and should be suitable for presentation at a small size.
|
|
138
138
|
range:
|
|
139
139
|
- "https://www.w3.org/ns/activitystreams#Image"
|
|
140
|
+
preprocessors:
|
|
141
|
+
- module: ./preprocessors.ts
|
|
142
|
+
function: normalizeLinkToImage
|
|
140
143
|
|
|
141
144
|
- pluralName: images
|
|
142
145
|
singularName: image
|
|
@@ -149,6 +152,9 @@ properties:
|
|
|
149
152
|
limitations assumed.
|
|
150
153
|
range:
|
|
151
154
|
- "https://www.w3.org/ns/activitystreams#Image"
|
|
155
|
+
preprocessors:
|
|
156
|
+
- module: ./preprocessors.ts
|
|
157
|
+
function: normalizeLinkToImage
|
|
152
158
|
|
|
153
159
|
- pluralName: replyTargets
|
|
154
160
|
singularName: replyTarget
|
package/dist-tests/type.test.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { D as getEntityTypeById, O as isEntityType, m as Link, y as Person } from "./vocab-
|
|
3
|
+
import { D as getEntityTypeById, O as isEntityType, m as Link, y as Person } from "./vocab-BBRml5cy.mjs";
|
|
4
4
|
import { t as getTypeId } from "./type-Cf-vxmre.mjs";
|
|
5
5
|
import { test } from "@fedify/fixture";
|
|
6
6
|
import { deepStrictEqual } from "node:assert/strict";
|