@fedify/vocab 2.1.0-dev.536 → 2.1.0-dev.565
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/accept.yaml +1 -0
- package/dist/activity.yaml +1 -0
- package/dist/actor.test.js +5 -5
- package/dist/add.yaml +1 -0
- package/dist/announce.yaml +1 -0
- package/dist/announceauthorization.yaml +40 -0
- package/dist/announcerequest.yaml +24 -0
- package/dist/application.yaml +1 -0
- package/dist/arrive.yaml +1 -0
- package/dist/article.yaml +1 -0
- package/dist/audio.yaml +1 -0
- package/dist/block.yaml +1 -0
- package/dist/chatmessage.yaml +1 -0
- package/dist/collection.yaml +1 -0
- package/dist/collectionpage.yaml +1 -0
- package/dist/create.yaml +1 -0
- package/dist/delete.yaml +1 -0
- package/dist/{deno-DtLTceue.js → deno-D6ZtKO2-.js} +2 -2
- package/dist/dislike.yaml +1 -0
- package/dist/document.yaml +1 -0
- package/dist/emojireact.yaml +1 -0
- package/dist/event.yaml +1 -0
- package/dist/flag.yaml +1 -0
- package/dist/follow.yaml +1 -0
- package/dist/group.yaml +1 -0
- package/dist/ignore.yaml +1 -0
- package/dist/image.yaml +4 -1
- package/dist/interactionpolicy.yaml +54 -0
- package/dist/interactionrule.yaml +50 -0
- package/dist/intransitiveactivity.yaml +1 -0
- package/dist/invite.yaml +1 -0
- package/dist/join.yaml +1 -0
- package/dist/leave.yaml +1 -0
- package/dist/like.yaml +1 -0
- package/dist/likeauthorization.yaml +39 -0
- package/dist/likerequest.yaml +23 -0
- package/dist/listen.yaml +1 -0
- package/dist/lookup.test.js +7 -6
- package/dist/mod.cjs +3924 -405
- package/dist/mod.d.cts +2154 -1
- package/dist/mod.d.ts +2154 -1
- package/dist/mod.js +3917 -406
- package/dist/move.yaml +1 -0
- package/dist/note.yaml +1 -0
- package/dist/object.yaml +61 -0
- package/dist/offer.yaml +1 -0
- package/dist/orderedcollection.yaml +1 -0
- package/dist/orderedcollectionpage.yaml +1 -0
- package/dist/organization.yaml +1 -0
- package/dist/page.yaml +1 -0
- package/dist/person.yaml +1 -0
- package/dist/place.yaml +1 -0
- package/dist/profile.yaml +1 -0
- package/dist/question.yaml +1 -0
- package/dist/read.yaml +1 -0
- package/dist/reject.yaml +1 -0
- package/dist/relationship.yaml +1 -0
- package/dist/remove.yaml +1 -0
- package/dist/replyauthorization.yaml +39 -0
- package/dist/replyrequest.yaml +23 -0
- package/dist/service.yaml +1 -0
- package/dist/tentativeaccept.yaml +1 -0
- package/dist/tentativereject.yaml +1 -0
- package/dist/tombstone.yaml +1 -0
- package/dist/travel.yaml +1 -0
- package/dist/type.test.js +3 -2
- package/dist/undo.yaml +1 -0
- package/dist/update.yaml +1 -0
- package/dist/video.yaml +1 -0
- package/dist/view.yaml +1 -0
- package/dist/{vocab-DNa6QysH.js → vocab-DErmegmL.js} +6904 -9618
- package/dist/vocab.test.js +15 -5
- package/package.json +4 -4
- package/src/__snapshots__/vocab.test.ts.snap +1756 -34
- package/src/accept.yaml +1 -0
- package/src/activity.yaml +1 -0
- package/src/add.yaml +1 -0
- package/src/announce.yaml +1 -0
- package/src/announceauthorization.yaml +40 -0
- package/src/announcerequest.yaml +24 -0
- package/src/application.yaml +1 -0
- package/src/arrive.yaml +1 -0
- package/src/article.yaml +1 -0
- package/src/audio.yaml +1 -0
- package/src/block.yaml +1 -0
- package/src/chatmessage.yaml +1 -0
- package/src/collection.yaml +1 -0
- package/src/collectionpage.yaml +1 -0
- package/src/create.yaml +1 -0
- package/src/delete.yaml +1 -0
- package/src/dislike.yaml +1 -0
- package/src/document.yaml +1 -0
- package/src/emojireact.yaml +1 -0
- package/src/event.yaml +1 -0
- package/src/flag.yaml +1 -0
- package/src/follow.yaml +1 -0
- package/src/group.yaml +1 -0
- package/src/ignore.yaml +1 -0
- package/src/image.yaml +4 -1
- package/src/interactionpolicy.yaml +54 -0
- package/src/interactionrule.yaml +50 -0
- package/src/intransitiveactivity.yaml +1 -0
- package/src/invite.yaml +1 -0
- package/src/join.yaml +1 -0
- package/src/leave.yaml +1 -0
- package/src/like.yaml +1 -0
- package/src/likeauthorization.yaml +39 -0
- package/src/likerequest.yaml +23 -0
- package/src/listen.yaml +1 -0
- package/src/move.yaml +1 -0
- package/src/note.yaml +1 -0
- package/src/object.yaml +61 -0
- package/src/offer.yaml +1 -0
- package/src/orderedcollection.yaml +1 -0
- package/src/orderedcollectionpage.yaml +1 -0
- package/src/organization.yaml +1 -0
- package/src/page.yaml +1 -0
- package/src/person.yaml +1 -0
- package/src/place.yaml +1 -0
- package/src/profile.yaml +1 -0
- package/src/question.yaml +1 -0
- package/src/read.yaml +1 -0
- package/src/reject.yaml +1 -0
- package/src/relationship.yaml +1 -0
- package/src/remove.yaml +1 -0
- package/src/replyauthorization.yaml +39 -0
- package/src/replyrequest.yaml +23 -0
- package/src/service.yaml +1 -0
- package/src/tentativeaccept.yaml +1 -0
- package/src/tentativereject.yaml +1 -0
- package/src/tombstone.yaml +1 -0
- package/src/travel.yaml +1 -0
- package/src/undo.yaml +1 -0
- package/src/update.yaml +1 -0
- package/src/video.yaml +1 -0
- package/src/view.yaml +1 -0
- package/src/vocab.test.ts +7 -1
- package/tsdown.config.ts +1 -1
- package/dist/chunk-BeeFIeNn.js +0 -45
- package/dist/execAsync-Bj-9hhe9.js +0 -17
- package/dist/getMachineId-bsd-JZpH2DVB.js +0 -34
- package/dist/getMachineId-darwin-CIJUQhqg.js +0 -30
- package/dist/getMachineId-linux-l0DNcix-.js +0 -27
- package/dist/getMachineId-unsupported-DFK1bZgt.js +0 -20
- package/dist/getMachineId-win-B0bq2tSf.js +0 -32
- /package/dist/{type-Dnf0m2yO.js → type-CNuABalk.js} +0 -0
- /package/dist/{utils-Dm0Onkcz.js → utils-BSWXlrig.js} +0 -0
package/dist/vocab.test.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
|
|
5
|
-
import { Activity, Announce, Collection, Create, CryptographicKey, Endpoints, Follow, Hashtag, Link, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source,
|
|
6
|
-
import { assertInstanceOf } from "./utils-
|
|
5
|
+
import { Activity, Announce, Collection, Create, CryptographicKey, Endpoints, Follow, Hashtag, Link, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "./vocab-DErmegmL.js";
|
|
6
|
+
import { assertInstanceOf } from "./utils-BSWXlrig.js";
|
|
7
|
+
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
7
8
|
import { deepStrictEqual, notDeepStrictEqual, ok, rejects, throws } from "node:assert/strict";
|
|
8
9
|
import { LanguageString, decodeMultibase } from "@fedify/vocab-runtime";
|
|
9
10
|
import { pascalCase } from "es-toolkit";
|
|
@@ -129,6 +130,7 @@ test("Object.toJsonLd()", async () => {
|
|
|
129
130
|
"@context": [
|
|
130
131
|
"https://www.w3.org/ns/activitystreams",
|
|
131
132
|
"https://w3id.org/security/data-integrity/v1",
|
|
133
|
+
"https://gotosocial.org/ns",
|
|
132
134
|
{
|
|
133
135
|
fedibird: "http://fedibird.com/ns#",
|
|
134
136
|
sensitive: "as:sensitive",
|
|
@@ -155,6 +157,7 @@ test("Note.toJsonLd()", async () => {
|
|
|
155
157
|
"@context": [
|
|
156
158
|
"https://www.w3.org/ns/activitystreams",
|
|
157
159
|
"https://w3id.org/security/data-integrity/v1",
|
|
160
|
+
"https://gotosocial.org/ns",
|
|
158
161
|
{
|
|
159
162
|
Emoji: "toot:Emoji",
|
|
160
163
|
Hashtag: "as:Hashtag",
|
|
@@ -253,7 +256,8 @@ test({
|
|
|
253
256
|
"https://w3id.org/identity/v1",
|
|
254
257
|
"https://www.w3.org/ns/activitystreams",
|
|
255
258
|
"https://w3id.org/security/v1",
|
|
256
|
-
"https://w3id.org/security/data-integrity/v1"
|
|
259
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
260
|
+
"https://gotosocial.org/ns"
|
|
257
261
|
],
|
|
258
262
|
type: "Activity",
|
|
259
263
|
object: {
|
|
@@ -396,6 +400,7 @@ test("Person.toJsonLd()", async () => {
|
|
|
396
400
|
"https://w3id.org/security/data-integrity/v1",
|
|
397
401
|
"https://www.w3.org/ns/did/v1",
|
|
398
402
|
"https://w3id.org/security/multikey/v1",
|
|
403
|
+
"https://gotosocial.org/ns",
|
|
399
404
|
{
|
|
400
405
|
PropertyValue: "schema:PropertyValue",
|
|
401
406
|
alsoKnownAs: {
|
|
@@ -700,6 +705,7 @@ test("Note.quoteUrl", async () => {
|
|
|
700
705
|
"@context": [
|
|
701
706
|
"https://www.w3.org/ns/activitystreams",
|
|
702
707
|
"https://w3id.org/security/data-integrity/v1",
|
|
708
|
+
"https://gotosocial.org/ns",
|
|
703
709
|
{
|
|
704
710
|
Emoji: "toot:Emoji",
|
|
705
711
|
Hashtag: "as:Hashtag",
|
|
@@ -805,7 +811,11 @@ test("Place.fromJsonLd()", async () => {
|
|
|
805
811
|
contextLoader: mockDocumentLoader
|
|
806
812
|
});
|
|
807
813
|
deepStrictEqual(jsonLd, {
|
|
808
|
-
"@context": [
|
|
814
|
+
"@context": [
|
|
815
|
+
"https://www.w3.org/ns/activitystreams",
|
|
816
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
817
|
+
"https://gotosocial.org/ns"
|
|
818
|
+
],
|
|
809
819
|
type: "Place",
|
|
810
820
|
name: "Fresno Area",
|
|
811
821
|
latitude: 36.75,
|
|
@@ -1492,7 +1502,7 @@ for (const typeUri in types) {
|
|
|
1492
1502
|
});
|
|
1493
1503
|
const jsonLd = await instance.toJsonLd({ contextLoader: mockDocumentLoader });
|
|
1494
1504
|
deepStrictEqual(jsonLd["@context"], type.defaultContext);
|
|
1495
|
-
deepStrictEqual(jsonLd.id, "https://example.com/");
|
|
1505
|
+
if (type.entity) deepStrictEqual(jsonLd.id, "https://example.com/");
|
|
1496
1506
|
const restored = await cls.fromJsonLd(jsonLd, {
|
|
1497
1507
|
documentLoader: mockDocumentLoader,
|
|
1498
1508
|
contextLoader: mockDocumentLoader
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/vocab",
|
|
3
|
-
"version": "2.1.0-dev.
|
|
3
|
+
"version": "2.1.0-dev.565+b4d238a9",
|
|
4
4
|
"homepage": "https://fedify.dev/",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"jsonld": "^9.0.0",
|
|
48
48
|
"multicodec": "^3.2.1",
|
|
49
49
|
"pkijs": "^3.3.3",
|
|
50
|
-
"@fedify/vocab-tools": "2.1.0-dev.
|
|
51
|
-
"@fedify/
|
|
52
|
-
"@fedify/
|
|
50
|
+
"@fedify/vocab-tools": "2.1.0-dev.565+b4d238a9",
|
|
51
|
+
"@fedify/webfinger": "2.1.0-dev.565+b4d238a9",
|
|
52
|
+
"@fedify/vocab-runtime": "2.1.0-dev.565+b4d238a9"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^22.17.0",
|