@fedify/vocab 2.4.0-dev.2149 → 2.4.0-dev.2157
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 +2690 -940
- package/dist/mod.js +2690 -940
- package/dist-tests/{actor-DN2WrU71.mjs → actor-DgxWpc_G.mjs} +2 -2
- package/dist-tests/actor.test.mjs +3 -3
- package/dist-tests/{esm-CxYTzURx.mjs → esm-2_Uqq_my.mjs} +1 -1
- package/dist-tests/gateway.test.mjs +3 -3
- package/dist-tests/{lookup-BDzZ7cld.mjs → lookup-DQOFUM-k.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +8 -8
- package/dist-tests/portable-lookup.test.mjs +4 -4
- package/dist-tests/signed-representation.test.mjs +1 -1
- package/dist-tests/translation.test.mjs +3 -3
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-CVEaA48h.mjs → vocab-D3C791xF.mjs} +2689 -939
- package/dist-tests/vocab.test.mjs +145 -2
- package/package.json +4 -4
- package/src/lookup.test.ts +6 -5
- package/src/vocab.test.ts +197 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { F as Person, P as Organization, U as Service, a as Application, b as Group } from "./vocab-
|
|
3
|
+
import { F as Person, P as Organization, U as Service, a as Application, b as Group } from "./vocab-D3C791xF.mjs";
|
|
4
4
|
import { t as getTypeId } from "./type-BMdjm4Eg.mjs";
|
|
5
5
|
import { canonicalizePortableUri, formatIri, fromCompatibleEf61Id, isGatewayUrl } from "@fedify/vocab-runtime";
|
|
6
6
|
import { lookupWebFinger } from "@fedify/webfinger";
|
|
@@ -8,7 +8,7 @@ import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
|
8
8
|
import { domainToASCII, domainToUnicode } from "node:url";
|
|
9
9
|
//#region deno.json
|
|
10
10
|
var name = "@fedify/vocab";
|
|
11
|
-
var version = "2.4.0-dev.
|
|
11
|
+
var version = "2.4.0-dev.2157+b76e5888";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/actor.ts
|
|
14
14
|
const ACTOR_DISCOVERY_HISTOGRAM_BUCKETS = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { F as Person, P as Organization, Q as __exportAll, U as Service, a as Application, b as Group } from "./vocab-
|
|
4
|
-
import { t as esm_default } from "./esm-
|
|
5
|
-
import { a as normalizeActorHandle, i as isActor, n as getActorHandle, r as getActorTypeName, t as getActorClassByTypeName } from "./actor-
|
|
3
|
+
import { F as Person, P as Organization, Q as __exportAll, U as Service, a as Application, b as Group } from "./vocab-D3C791xF.mjs";
|
|
4
|
+
import { t as esm_default } from "./esm-2_Uqq_my.mjs";
|
|
5
|
+
import { a as normalizeActorHandle, i as isActor, n as getActorHandle, r as getActorTypeName, t as getActorClassByTypeName } from "./actor-DgxWpc_G.mjs";
|
|
6
6
|
import { createTestMeterProvider, test } from "@fedify/fixture";
|
|
7
7
|
import { deepStrictEqual, ok, rejects, strictEqual, throws } from "node:assert/strict";
|
|
8
8
|
//#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { $ as __toESM, Z as __commonJSMin } from "./vocab-
|
|
3
|
+
import { $ as __toESM, Z as __commonJSMin } from "./vocab-D3C791xF.mjs";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region ../../node_modules/.pnpm/regexparam@3.0.0/node_modules/regexparam/dist/index.mjs
|
|
6
6
|
var import_glob_to_regexp = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { F as Person, M as OrderedCollection, S as Image, c as CollectionPage, k as Note, s as Collection, u as Create } from "./vocab-
|
|
4
|
-
import { t as esm_default } from "./esm-
|
|
5
|
-
import { n as traverseCollection, t as lookupObject } from "./lookup-
|
|
3
|
+
import { F as Person, M as OrderedCollection, S as Image, c as CollectionPage, k as Note, s as Collection, u as Create } from "./vocab-D3C791xF.mjs";
|
|
4
|
+
import { t as esm_default } from "./esm-2_Uqq_my.mjs";
|
|
5
|
+
import { n as traverseCollection, t as lookupObject } from "./lookup-DQOFUM-k.mjs";
|
|
6
6
|
import { t as assertInstanceOf } from "./utils-Df2odC27.mjs";
|
|
7
7
|
import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
8
8
|
import { deepStrictEqual, ok, rejects } from "node:assert/strict";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { A as Object$1 } from "./vocab-
|
|
4
|
-
import { i as isActor, o as name, s as version } from "./actor-
|
|
3
|
+
import { A as Object$1 } from "./vocab-D3C791xF.mjs";
|
|
4
|
+
import { i as isActor, o as name, s as version } from "./actor-DgxWpc_G.mjs";
|
|
5
5
|
import { t as getTypeId } from "./type-BMdjm4Eg.mjs";
|
|
6
6
|
import { canonicalizePortableUri, formatIri, getDocumentLoader, haveSameFe34Origin, haveSameIriOrigin, parseIri } from "@fedify/vocab-runtime";
|
|
7
7
|
import { lookupWebFinger } from "@fedify/webfinger";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { A as Object$1, F as Person, k as Note, s as Collection } from "./vocab-
|
|
4
|
-
import { t as esm_default } from "./esm-
|
|
5
|
-
import { n as traverseCollection, t as lookupObject } from "./lookup-
|
|
3
|
+
import { A as Object$1, F as Person, k as Note, s as Collection } from "./vocab-D3C791xF.mjs";
|
|
4
|
+
import { t as esm_default } from "./esm-2_Uqq_my.mjs";
|
|
5
|
+
import { n as traverseCollection, t as lookupObject } from "./lookup-DQOFUM-k.mjs";
|
|
6
6
|
import { t as assertInstanceOf } from "./utils-Df2odC27.mjs";
|
|
7
7
|
import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
8
8
|
import { deepStrictEqual, equal, ok, rejects } from "node:assert/strict";
|
|
@@ -58,7 +58,7 @@ test("lookupObject()", {
|
|
|
58
58
|
name: "Hong Gildong"
|
|
59
59
|
}));
|
|
60
60
|
});
|
|
61
|
-
esm_default.removeRoutes();
|
|
61
|
+
esm_default.removeRoutes({ includeFallback: false });
|
|
62
62
|
esm_default.get("begin:https://example.com/.well-known/webfinger", {
|
|
63
63
|
subject: "acct:janedoe@example.com",
|
|
64
64
|
links: [{
|
|
@@ -71,7 +71,7 @@ test("lookupObject()", {
|
|
|
71
71
|
deepStrictEqual(await lookupObject("janedoe@example.com", options), null);
|
|
72
72
|
deepStrictEqual(await lookupObject("https://example.com/404", options), null);
|
|
73
73
|
});
|
|
74
|
-
esm_default.removeRoutes();
|
|
74
|
+
esm_default.removeRoutes({ includeFallback: false });
|
|
75
75
|
esm_default.get("begin:https://example.com/.well-known/webfinger", () => new Promise((resolve) => {
|
|
76
76
|
setTimeout(() => {
|
|
77
77
|
resolve({
|
|
@@ -93,7 +93,7 @@ test("lookupObject()", {
|
|
|
93
93
|
controller.abort();
|
|
94
94
|
deepStrictEqual(await promise, null);
|
|
95
95
|
});
|
|
96
|
-
esm_default.removeRoutes();
|
|
96
|
+
esm_default.removeRoutes({ includeFallback: false });
|
|
97
97
|
esm_default.get("begin:https://example.com/.well-known/webfinger", {
|
|
98
98
|
subject: "acct:johndoe@example.com",
|
|
99
99
|
links: [{
|
|
@@ -111,7 +111,7 @@ test("lookupObject()", {
|
|
|
111
111
|
assertInstanceOf(person, Person);
|
|
112
112
|
deepStrictEqual(person.id, new URL("https://example.com/person"));
|
|
113
113
|
});
|
|
114
|
-
esm_default.removeRoutes();
|
|
114
|
+
esm_default.removeRoutes({ includeFallback: false });
|
|
115
115
|
esm_default.get("begin:https://example.com/.well-known/webfinger", () => new Promise((resolve) => {
|
|
116
116
|
setTimeout(() => {
|
|
117
117
|
resolve({
|
|
@@ -132,7 +132,7 @@ test("lookupObject()", {
|
|
|
132
132
|
signal: controller.signal
|
|
133
133
|
}), null);
|
|
134
134
|
});
|
|
135
|
-
esm_default.removeRoutes();
|
|
135
|
+
esm_default.removeRoutes({ includeFallback: false });
|
|
136
136
|
esm_default.get("https://example.com/slow-object", () => new Promise((resolve) => {
|
|
137
137
|
setTimeout(() => {
|
|
138
138
|
resolve({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { F as Person } from "./vocab-
|
|
4
|
-
import { t as esm_default } from "./esm-
|
|
5
|
-
import { n as getActorHandle } from "./actor-
|
|
6
|
-
import { t as lookupObject } from "./lookup-
|
|
3
|
+
import { F as Person } from "./vocab-D3C791xF.mjs";
|
|
4
|
+
import { t as esm_default } from "./esm-2_Uqq_my.mjs";
|
|
5
|
+
import { n as getActorHandle } from "./actor-DgxWpc_G.mjs";
|
|
6
|
+
import { t as lookupObject } from "./lookup-DQOFUM-k.mjs";
|
|
7
7
|
import { t as assertInstanceOf } from "./utils-Df2odC27.mjs";
|
|
8
8
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
9
9
|
import { deepStrictEqual, equal, rejects } from "node:assert/strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { M as OrderedCollection, X as vocab_exports, i as Announce, k as Note, u as Create, z as Question } from "./vocab-
|
|
3
|
+
import { M as OrderedCollection, X as vocab_exports, i as Announce, k as Note, u as Create, z as Question } from "./vocab-D3C791xF.mjs";
|
|
4
4
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
5
5
|
import { deepStrictEqual, ok } from "node:assert/strict";
|
|
6
6
|
import { isMarkerSafeContext, retainSignedRepresentation } from "@fedify/vocab-runtime/internal/signed-representation";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { A as Object$1, E as Link, F as Person, K as Translation, L as PropertyValue, P as Organization, U as Service, a as Application, b as Group, k as Note, o as Article, q as Update, s as Collection, u as Create } from "./vocab-
|
|
4
|
-
import "./actor-
|
|
5
|
-
import "./lookup-
|
|
3
|
+
import { A as Object$1, E as Link, F as Person, K as Translation, L as PropertyValue, P as Organization, U as Service, a as Application, b as Group, k as Note, o as Article, q as Update, s as Collection, u as Create } from "./vocab-D3C791xF.mjs";
|
|
4
|
+
import "./actor-DgxWpc_G.mjs";
|
|
5
|
+
import "./lookup-DQOFUM-k.mjs";
|
|
6
6
|
import { test } from "@fedify/fixture";
|
|
7
7
|
import { deepStrictEqual, ok, rejects } from "node:assert/strict";
|
|
8
8
|
import { LanguageString as LanguageString$1, getDocumentLoader, preloadedContexts } from "@fedify/vocab-runtime";
|
package/dist-tests/type.test.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { E as Link, F as Person, J as getEntityTypeById, Y as isEntityType } from "./vocab-
|
|
3
|
+
import { E as Link, F as Person, J as getEntityTypeById, Y as isEntityType } from "./vocab-D3C791xF.mjs";
|
|
4
4
|
import { t as getTypeId } from "./type-BMdjm4Eg.mjs";
|
|
5
5
|
import { test } from "@fedify/fixture";
|
|
6
6
|
import { deepStrictEqual } from "node:assert/strict";
|