@fedify/vocab 2.0.29-dev.2068 → 2.0.29-dev.2107
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
CHANGED
package/dist/mod.cjs
CHANGED
|
@@ -33,7 +33,7 @@ let _fedify_vocab_runtime_temporal = require("@fedify/vocab-runtime/temporal");
|
|
|
33
33
|
let es_toolkit = require("es-toolkit");
|
|
34
34
|
//#region deno.json
|
|
35
35
|
var name = "@fedify/vocab";
|
|
36
|
-
var version = "2.0.29-dev.
|
|
36
|
+
var version = "2.0.29-dev.2107+5ab4c99b";
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/type.ts
|
|
39
39
|
function getTypeId(object) {
|
package/dist/mod.js
CHANGED
|
@@ -9,7 +9,7 @@ import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/tem
|
|
|
9
9
|
import { delay } from "es-toolkit";
|
|
10
10
|
//#region deno.json
|
|
11
11
|
var name = "@fedify/vocab";
|
|
12
|
-
var version = "2.0.29-dev.
|
|
12
|
+
var version = "2.0.29-dev.2107+5ab4c99b";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/type.ts
|
|
15
15
|
function getTypeId(object) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
3
|
import { C as __exportAll, c as Group, h as Person, m as Organization, r as Application, y as Service } from "./vocab-C_YFgzlY.mjs";
|
|
4
|
-
import { n as version, r as esm_default, t as name } from "./deno-
|
|
4
|
+
import { n as version, r as esm_default, t as name } from "./deno-SXS_rFvJ.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";
|
|
@@ -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.0.29-dev.
|
|
1207
|
+
var version = "2.0.29-dev.2107+5ab4c99b";
|
|
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
3
|
import { d as Note, f as Object$1, h as Person, i as Collection } from "./vocab-C_YFgzlY.mjs";
|
|
4
|
-
import { n as version, r as esm_default, t as name } from "./deno-
|
|
4
|
+
import { n as version, r as esm_default, t as name } from "./deno-SXS_rFvJ.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/vocab",
|
|
3
|
-
"version": "2.0.29-dev.
|
|
3
|
+
"version": "2.0.29-dev.2107+5ab4c99b",
|
|
4
4
|
"homepage": "https://fedify.dev/",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"es-toolkit": "1.43.0",
|
|
47
47
|
"jsonld": "^9.0.0",
|
|
48
48
|
"pkijs": "^3.3.3",
|
|
49
|
-
"@fedify/
|
|
50
|
-
"@fedify/
|
|
51
|
-
"@fedify/vocab-runtime": "2.0.29-dev.
|
|
49
|
+
"@fedify/webfinger": "2.0.29-dev.2107+5ab4c99b",
|
|
50
|
+
"@fedify/vocab-tools": "2.0.29-dev.2107+5ab4c99b",
|
|
51
|
+
"@fedify/vocab-runtime": "2.0.29-dev.2107+5ab4c99b"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/node": "^22.17.0",
|
package/src/lookup.test.ts
CHANGED
|
@@ -79,7 +79,8 @@ test("lookupObject()", {
|
|
|
79
79
|
);
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
// Workers load fixtures through fetch(), so keep the spy fallback between steps.
|
|
83
|
+
fetchMock.removeRoutes({ includeFallback: false });
|
|
83
84
|
fetchMock.get("begin:https://example.com/.well-known/webfinger", {
|
|
84
85
|
subject: "acct:janedoe@example.com",
|
|
85
86
|
links: [
|
|
@@ -99,7 +100,7 @@ test("lookupObject()", {
|
|
|
99
100
|
);
|
|
100
101
|
});
|
|
101
102
|
|
|
102
|
-
fetchMock.removeRoutes();
|
|
103
|
+
fetchMock.removeRoutes({ includeFallback: false });
|
|
103
104
|
fetchMock.get(
|
|
104
105
|
"begin:https://example.com/.well-known/webfinger",
|
|
105
106
|
() =>
|
|
@@ -130,7 +131,7 @@ test("lookupObject()", {
|
|
|
130
131
|
deepStrictEqual(await promise, null);
|
|
131
132
|
});
|
|
132
133
|
|
|
133
|
-
fetchMock.removeRoutes();
|
|
134
|
+
fetchMock.removeRoutes({ includeFallback: false });
|
|
134
135
|
fetchMock.get(
|
|
135
136
|
"begin:https://example.com/.well-known/webfinger",
|
|
136
137
|
{
|
|
@@ -155,7 +156,7 @@ test("lookupObject()", {
|
|
|
155
156
|
deepStrictEqual(person.id, new URL("https://example.com/person"));
|
|
156
157
|
});
|
|
157
158
|
|
|
158
|
-
fetchMock.removeRoutes();
|
|
159
|
+
fetchMock.removeRoutes({ includeFallback: false });
|
|
159
160
|
fetchMock.get(
|
|
160
161
|
"begin:https://example.com/.well-known/webfinger",
|
|
161
162
|
() =>
|
|
@@ -186,7 +187,7 @@ test("lookupObject()", {
|
|
|
186
187
|
deepStrictEqual(result, null);
|
|
187
188
|
});
|
|
188
189
|
|
|
189
|
-
fetchMock.removeRoutes();
|
|
190
|
+
fetchMock.removeRoutes({ includeFallback: false });
|
|
190
191
|
fetchMock.get(
|
|
191
192
|
"https://example.com/slow-object",
|
|
192
193
|
() =>
|