@fedify/vocab 2.2.14-dev.2082 → 2.2.15-dev.2196
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 +2042 -397
- package/dist/mod.js +2042 -397
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/{deno-RUnTBRj7.mjs → deno-CNg_wFNe.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +7 -7
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-BPaC52Gq.mjs → vocab-D2M3Itg4.mjs} +2041 -396
- package/dist-tests/vocab.test.mjs +144 -1
- package/package.json +4 -4
- package/src/lookup.test.ts +6 -5
- package/src/vocab.test.ts +197 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { M as __exportAll, T as Service, r as Application, u as Group, v as Organization, y as Person } from "./vocab-
|
|
4
|
-
import { n as version, r as esm_default, t as name } from "./deno-
|
|
3
|
+
import { M as __exportAll, T as Service, r as Application, u as Group, v as Organization, y as Person } from "./vocab-D2M3Itg4.mjs";
|
|
4
|
+
import { n as version, r as esm_default, t as name } from "./deno-CNg_wFNe.mjs";
|
|
5
5
|
import { t as getTypeId } from "./type-Cf-vxmre.mjs";
|
|
6
6
|
import { test } from "@fedify/fixture";
|
|
7
7
|
import { deepStrictEqual, ok, rejects, strictEqual, throws } from "node:assert/strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { N as __toESM, j as __commonJSMin } from "./vocab-
|
|
3
|
+
import { N as __toESM, j as __commonJSMin } from "./vocab-D2M3Itg4.mjs";
|
|
4
4
|
//#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
|
|
5
5
|
var require_glob_to_regexp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
6
|
module.exports = function(glob, opts) {
|
|
@@ -1204,6 +1204,6 @@ var esm_default = new class FetchMock {
|
|
|
1204
1204
|
//#endregion
|
|
1205
1205
|
//#region deno.json
|
|
1206
1206
|
var name = "@fedify/vocab";
|
|
1207
|
-
var version = "2.2.
|
|
1207
|
+
var version = "2.2.15-dev.2196+10201be2";
|
|
1208
1208
|
//#endregion
|
|
1209
1209
|
export { version as n, esm_default as r, name as t };
|
|
@@ -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 { n as version, r as esm_default, t as name } from "./deno-
|
|
3
|
+
import { g as Object$1, h as Note, i as Collection, y as Person } from "./vocab-D2M3Itg4.mjs";
|
|
4
|
+
import { n as version, r as esm_default, t as name } from "./deno-CNg_wFNe.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 { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -271,7 +271,7 @@ test("lookupObject()", {
|
|
|
271
271
|
name: "Hong Gildong"
|
|
272
272
|
}));
|
|
273
273
|
});
|
|
274
|
-
esm_default.removeRoutes();
|
|
274
|
+
esm_default.removeRoutes({ includeFallback: false });
|
|
275
275
|
esm_default.get("begin:https://example.com/.well-known/webfinger", {
|
|
276
276
|
subject: "acct:janedoe@example.com",
|
|
277
277
|
links: [{
|
|
@@ -284,7 +284,7 @@ test("lookupObject()", {
|
|
|
284
284
|
deepStrictEqual(await lookupObject("janedoe@example.com", options), null);
|
|
285
285
|
deepStrictEqual(await lookupObject("https://example.com/404", options), null);
|
|
286
286
|
});
|
|
287
|
-
esm_default.removeRoutes();
|
|
287
|
+
esm_default.removeRoutes({ includeFallback: false });
|
|
288
288
|
esm_default.get("begin:https://example.com/.well-known/webfinger", () => new Promise((resolve) => {
|
|
289
289
|
setTimeout(() => {
|
|
290
290
|
resolve({
|
|
@@ -306,7 +306,7 @@ test("lookupObject()", {
|
|
|
306
306
|
controller.abort();
|
|
307
307
|
deepStrictEqual(await promise, null);
|
|
308
308
|
});
|
|
309
|
-
esm_default.removeRoutes();
|
|
309
|
+
esm_default.removeRoutes({ includeFallback: false });
|
|
310
310
|
esm_default.get("begin:https://example.com/.well-known/webfinger", {
|
|
311
311
|
subject: "acct:johndoe@example.com",
|
|
312
312
|
links: [{
|
|
@@ -324,7 +324,7 @@ test("lookupObject()", {
|
|
|
324
324
|
assertInstanceOf(person, Person);
|
|
325
325
|
deepStrictEqual(person.id, new URL("https://example.com/person"));
|
|
326
326
|
});
|
|
327
|
-
esm_default.removeRoutes();
|
|
327
|
+
esm_default.removeRoutes({ includeFallback: false });
|
|
328
328
|
esm_default.get("begin:https://example.com/.well-known/webfinger", () => new Promise((resolve) => {
|
|
329
329
|
setTimeout(() => {
|
|
330
330
|
resolve({
|
|
@@ -345,7 +345,7 @@ test("lookupObject()", {
|
|
|
345
345
|
signal: controller.signal
|
|
346
346
|
}), null);
|
|
347
347
|
});
|
|
348
|
-
esm_default.removeRoutes();
|
|
348
|
+
esm_default.removeRoutes({ includeFallback: false });
|
|
349
349
|
esm_default.get("https://example.com/slow-object", () => new Promise((resolve) => {
|
|
350
350
|
setTimeout(() => {
|
|
351
351
|
resolve({
|
package/dist-tests/type.test.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { O as getEntityTypeById, k as isEntityType, m as Link, y as Person } from "./vocab-
|
|
3
|
+
import { O as getEntityTypeById, k as isEntityType, m as Link, y as Person } from "./vocab-D2M3Itg4.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";
|