@fedify/vocab-runtime 2.0.23 → 2.0.24-dev.1730
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 +22 -2
- package/dist/mod.js +22 -2
- package/dist/tests/docloader.test.cjs +22 -2
- package/dist/tests/docloader.test.mjs +22 -2
- package/dist/tests/{request-RhxW7_Z5.cjs → request-CANqHyLN.cjs} +1 -1
- package/dist/tests/{request-BjAux-BM.mjs → request-C__wSvmV.mjs} +1 -1
- package/dist/tests/request.test.cjs +1 -1
- package/dist/tests/request.test.mjs +1 -1
- package/package.json +1 -1
- package/src/contexts/miscellany.json +19 -0
- package/src/contexts.ts +13 -0
package/deno.json
CHANGED
package/dist/mod.cjs
CHANGED
|
@@ -44,6 +44,25 @@ var join_lemmy_default = { "@context": ["https://w3id.org/security/v1", {
|
|
|
44
44
|
}
|
|
45
45
|
}] };
|
|
46
46
|
//#endregion
|
|
47
|
+
//#region src/contexts/miscellany.json
|
|
48
|
+
var miscellany_default = { "@context": {
|
|
49
|
+
"as": "https://www.w3.org/ns/activitystreams#",
|
|
50
|
+
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
51
|
+
"Hashtag": "as:Hashtag",
|
|
52
|
+
"manuallyApprovesFollowers": {
|
|
53
|
+
"@id": "as:manuallyApprovesFollowers",
|
|
54
|
+
"@type": "xsd:boolean"
|
|
55
|
+
},
|
|
56
|
+
"movedTo": {
|
|
57
|
+
"@id": "as:movedTo",
|
|
58
|
+
"@type": "@id"
|
|
59
|
+
},
|
|
60
|
+
"sensitive": {
|
|
61
|
+
"@id": "as:sensitive",
|
|
62
|
+
"@type": "xsd:boolean"
|
|
63
|
+
}
|
|
64
|
+
} };
|
|
65
|
+
//#endregion
|
|
47
66
|
//#region src/contexts.ts
|
|
48
67
|
const preloadedContexts = {
|
|
49
68
|
"https://www.w3.org/ns/activitystreams": { "@context": {
|
|
@@ -4290,12 +4309,13 @@ const preloadedContexts = {
|
|
|
4290
4309
|
"@id": "toot:attributionDomains",
|
|
4291
4310
|
"@type": "@id"
|
|
4292
4311
|
}
|
|
4293
|
-
} }
|
|
4312
|
+
} },
|
|
4313
|
+
"https://purl.archive.org/miscellany": miscellany_default
|
|
4294
4314
|
};
|
|
4295
4315
|
//#endregion
|
|
4296
4316
|
//#region deno.json
|
|
4297
4317
|
var name = "@fedify/vocab-runtime";
|
|
4298
|
-
var version = "2.0.
|
|
4318
|
+
var version = "2.0.24-dev.1730+98019918";
|
|
4299
4319
|
//#endregion
|
|
4300
4320
|
//#region src/link.ts
|
|
4301
4321
|
const parametersNeedLowerCase = ["rel", "type"];
|
package/dist/mod.js
CHANGED
|
@@ -40,6 +40,25 @@ var join_lemmy_default = { "@context": ["https://w3id.org/security/v1", {
|
|
|
40
40
|
}
|
|
41
41
|
}] };
|
|
42
42
|
//#endregion
|
|
43
|
+
//#region src/contexts/miscellany.json
|
|
44
|
+
var miscellany_default = { "@context": {
|
|
45
|
+
"as": "https://www.w3.org/ns/activitystreams#",
|
|
46
|
+
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
47
|
+
"Hashtag": "as:Hashtag",
|
|
48
|
+
"manuallyApprovesFollowers": {
|
|
49
|
+
"@id": "as:manuallyApprovesFollowers",
|
|
50
|
+
"@type": "xsd:boolean"
|
|
51
|
+
},
|
|
52
|
+
"movedTo": {
|
|
53
|
+
"@id": "as:movedTo",
|
|
54
|
+
"@type": "@id"
|
|
55
|
+
},
|
|
56
|
+
"sensitive": {
|
|
57
|
+
"@id": "as:sensitive",
|
|
58
|
+
"@type": "xsd:boolean"
|
|
59
|
+
}
|
|
60
|
+
} };
|
|
61
|
+
//#endregion
|
|
43
62
|
//#region src/contexts.ts
|
|
44
63
|
const preloadedContexts = {
|
|
45
64
|
"https://www.w3.org/ns/activitystreams": { "@context": {
|
|
@@ -4286,12 +4305,13 @@ const preloadedContexts = {
|
|
|
4286
4305
|
"@id": "toot:attributionDomains",
|
|
4287
4306
|
"@type": "@id"
|
|
4288
4307
|
}
|
|
4289
|
-
} }
|
|
4308
|
+
} },
|
|
4309
|
+
"https://purl.archive.org/miscellany": miscellany_default
|
|
4290
4310
|
};
|
|
4291
4311
|
//#endregion
|
|
4292
4312
|
//#region deno.json
|
|
4293
4313
|
var name = "@fedify/vocab-runtime";
|
|
4294
|
-
var version = "2.0.
|
|
4314
|
+
var version = "2.0.24-dev.1730+98019918";
|
|
4295
4315
|
//#endregion
|
|
4296
4316
|
//#region src/link.ts
|
|
4297
4317
|
const parametersNeedLowerCase = ["rel", "type"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Do9eywBl.cjs");
|
|
2
|
-
const require_request = require("./request-
|
|
2
|
+
const require_request = require("./request-CANqHyLN.cjs");
|
|
3
3
|
const require_link = require("./link-B6ZWBZhf.cjs");
|
|
4
4
|
const require_url = require("./url-CqwkmczT.cjs");
|
|
5
5
|
let node_assert = require("node:assert");
|
|
@@ -1237,6 +1237,25 @@ var join_lemmy_default = { "@context": ["https://w3id.org/security/v1", {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
}] };
|
|
1239
1239
|
//#endregion
|
|
1240
|
+
//#region src/contexts/miscellany.json
|
|
1241
|
+
var miscellany_default = { "@context": {
|
|
1242
|
+
"as": "https://www.w3.org/ns/activitystreams#",
|
|
1243
|
+
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
1244
|
+
"Hashtag": "as:Hashtag",
|
|
1245
|
+
"manuallyApprovesFollowers": {
|
|
1246
|
+
"@id": "as:manuallyApprovesFollowers",
|
|
1247
|
+
"@type": "xsd:boolean"
|
|
1248
|
+
},
|
|
1249
|
+
"movedTo": {
|
|
1250
|
+
"@id": "as:movedTo",
|
|
1251
|
+
"@type": "@id"
|
|
1252
|
+
},
|
|
1253
|
+
"sensitive": {
|
|
1254
|
+
"@id": "as:sensitive",
|
|
1255
|
+
"@type": "xsd:boolean"
|
|
1256
|
+
}
|
|
1257
|
+
} };
|
|
1258
|
+
//#endregion
|
|
1240
1259
|
//#region src/contexts.ts
|
|
1241
1260
|
const preloadedContexts = {
|
|
1242
1261
|
"https://www.w3.org/ns/activitystreams": { "@context": {
|
|
@@ -5483,7 +5502,8 @@ const preloadedContexts = {
|
|
|
5483
5502
|
"@id": "toot:attributionDomains",
|
|
5484
5503
|
"@type": "@id"
|
|
5485
5504
|
}
|
|
5486
|
-
} }
|
|
5505
|
+
} },
|
|
5506
|
+
"https://purl.archive.org/miscellany": miscellany_default
|
|
5487
5507
|
};
|
|
5488
5508
|
//#endregion
|
|
5489
5509
|
//#region src/docloader.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as name, i as logRequest, n as createActivityPubRequest, o as version, t as FetchError } from "./request-
|
|
1
|
+
import { a as name, i as logRequest, n as createActivityPubRequest, o as version, t as FetchError } from "./request-C__wSvmV.mjs";
|
|
2
2
|
import { t as HttpHeaderLink } from "./link-B8JGXSS2.mjs";
|
|
3
3
|
import { o as validatePublicUrl, t as UrlError } from "./url-BulORwtj.mjs";
|
|
4
4
|
import { deepStrictEqual, ok, rejects } from "node:assert";
|
|
@@ -1256,6 +1256,25 @@ var join_lemmy_default = { "@context": ["https://w3id.org/security/v1", {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
}] };
|
|
1258
1258
|
//#endregion
|
|
1259
|
+
//#region src/contexts/miscellany.json
|
|
1260
|
+
var miscellany_default = { "@context": {
|
|
1261
|
+
"as": "https://www.w3.org/ns/activitystreams#",
|
|
1262
|
+
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
1263
|
+
"Hashtag": "as:Hashtag",
|
|
1264
|
+
"manuallyApprovesFollowers": {
|
|
1265
|
+
"@id": "as:manuallyApprovesFollowers",
|
|
1266
|
+
"@type": "xsd:boolean"
|
|
1267
|
+
},
|
|
1268
|
+
"movedTo": {
|
|
1269
|
+
"@id": "as:movedTo",
|
|
1270
|
+
"@type": "@id"
|
|
1271
|
+
},
|
|
1272
|
+
"sensitive": {
|
|
1273
|
+
"@id": "as:sensitive",
|
|
1274
|
+
"@type": "xsd:boolean"
|
|
1275
|
+
}
|
|
1276
|
+
} };
|
|
1277
|
+
//#endregion
|
|
1259
1278
|
//#region src/contexts.ts
|
|
1260
1279
|
const preloadedContexts = {
|
|
1261
1280
|
"https://www.w3.org/ns/activitystreams": { "@context": {
|
|
@@ -5502,7 +5521,8 @@ const preloadedContexts = {
|
|
|
5502
5521
|
"@id": "toot:attributionDomains",
|
|
5503
5522
|
"@type": "@id"
|
|
5504
5523
|
}
|
|
5505
|
-
} }
|
|
5524
|
+
} },
|
|
5525
|
+
"https://purl.archive.org/miscellany": miscellany_default
|
|
5506
5526
|
};
|
|
5507
5527
|
//#endregion
|
|
5508
5528
|
//#region src/docloader.ts
|
|
@@ -3,7 +3,7 @@ let node_process = require("node:process");
|
|
|
3
3
|
node_process = require_chunk.__toESM(node_process);
|
|
4
4
|
//#region deno.json
|
|
5
5
|
var name = "@fedify/vocab-runtime";
|
|
6
|
-
var version = "2.0.
|
|
6
|
+
var version = "2.0.24-dev.1730+98019918";
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/request.ts
|
|
9
9
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Do9eywBl.cjs");
|
|
2
|
-
const require_request = require("./request-
|
|
2
|
+
const require_request = require("./request-CANqHyLN.cjs");
|
|
3
3
|
let node_assert = require("node:assert");
|
|
4
4
|
let node_test = require("node:test");
|
|
5
5
|
let node_process = require("node:process");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as version, r as getUserAgent } from "./request-
|
|
1
|
+
import { o as version, r as getUserAgent } from "./request-C__wSvmV.mjs";
|
|
2
2
|
import { deepStrictEqual } from "node:assert";
|
|
3
3
|
import { test } from "node:test";
|
|
4
4
|
import process from "node:process";
|
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": {
|
|
3
|
+
"as": "https://www.w3.org/ns/activitystreams#",
|
|
4
|
+
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
5
|
+
"Hashtag": "as:Hashtag",
|
|
6
|
+
"manuallyApprovesFollowers": {
|
|
7
|
+
"@id": "as:manuallyApprovesFollowers",
|
|
8
|
+
"@type": "xsd:boolean"
|
|
9
|
+
},
|
|
10
|
+
"movedTo": {
|
|
11
|
+
"@id": "as:movedTo",
|
|
12
|
+
"@type": "@id"
|
|
13
|
+
},
|
|
14
|
+
"sensitive": {
|
|
15
|
+
"@id": "as:sensitive",
|
|
16
|
+
"@type": "xsd:boolean"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
package/src/contexts.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// cSpell: disable
|
|
4
4
|
|
|
5
5
|
import joinLemmyContext from "./contexts/join-lemmy.json" with { type: "json" };
|
|
6
|
+
import miscellany from "./contexts/miscellany.json" with { type: "json" };
|
|
6
7
|
|
|
7
8
|
const preloadedContexts: Record<string, unknown> = {
|
|
8
9
|
"https://www.w3.org/ns/activitystreams": {
|
|
@@ -4363,6 +4364,18 @@ const preloadedContexts: Record<string, unknown> = {
|
|
|
4363
4364
|
},
|
|
4364
4365
|
},
|
|
4365
4366
|
},
|
|
4367
|
+
|
|
4368
|
+
// The SWICG "ActivityPub Miscellaneous Terms" context. Bridgy Fed (via
|
|
4369
|
+
// granary) references this URL in the @context of every activity it sends,
|
|
4370
|
+
// and other implementations use it as the recommended home for widely
|
|
4371
|
+
// deployed extension terms like as:Hashtag and as:sensitive. It is served
|
|
4372
|
+
// through purl.archive.org (Internet Archive's PURL service), which suffers
|
|
4373
|
+
// recurring outages; while it is unreachable, every activity referencing
|
|
4374
|
+
// this URL fails JSON-LD expansion before application handlers run. The
|
|
4375
|
+
// document is a deliberately stable, versioned SWICG deliverable, so we
|
|
4376
|
+
// ship a built-in copy.
|
|
4377
|
+
// See: https://swicg.github.io/miscellany/
|
|
4378
|
+
"https://purl.archive.org/miscellany": miscellany,
|
|
4366
4379
|
};
|
|
4367
4380
|
|
|
4368
4381
|
export default preloadedContexts;
|