@fedify/vocab 2.1.0-dev.536 → 2.1.0-dev.543
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 +2 -2
- 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-D76TUHGu.js} +1 -1
- 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 +2 -2
- 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 +1 -1
- 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-BL0T9S6o.js} +3923 -404
- package/dist/vocab.test.js +13 -4
- 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/dist/vocab.test.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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, mockDocumentLoader, test, vocab_exports } from "./vocab-
|
|
5
|
+
import { Activity, Announce, Collection, Create, CryptographicKey, Endpoints, Follow, Hashtag, Link, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, mockDocumentLoader, test, vocab_exports } from "./vocab-BL0T9S6o.js";
|
|
6
6
|
import { assertInstanceOf } from "./utils-Dm0Onkcz.js";
|
|
7
7
|
import { deepStrictEqual, notDeepStrictEqual, ok, rejects, throws } from "node:assert/strict";
|
|
8
8
|
import { LanguageString, decodeMultibase } from "@fedify/vocab-runtime";
|
|
@@ -129,6 +129,7 @@ test("Object.toJsonLd()", async () => {
|
|
|
129
129
|
"@context": [
|
|
130
130
|
"https://www.w3.org/ns/activitystreams",
|
|
131
131
|
"https://w3id.org/security/data-integrity/v1",
|
|
132
|
+
"https://gotosocial.org/ns",
|
|
132
133
|
{
|
|
133
134
|
fedibird: "http://fedibird.com/ns#",
|
|
134
135
|
sensitive: "as:sensitive",
|
|
@@ -155,6 +156,7 @@ test("Note.toJsonLd()", async () => {
|
|
|
155
156
|
"@context": [
|
|
156
157
|
"https://www.w3.org/ns/activitystreams",
|
|
157
158
|
"https://w3id.org/security/data-integrity/v1",
|
|
159
|
+
"https://gotosocial.org/ns",
|
|
158
160
|
{
|
|
159
161
|
Emoji: "toot:Emoji",
|
|
160
162
|
Hashtag: "as:Hashtag",
|
|
@@ -253,7 +255,8 @@ test({
|
|
|
253
255
|
"https://w3id.org/identity/v1",
|
|
254
256
|
"https://www.w3.org/ns/activitystreams",
|
|
255
257
|
"https://w3id.org/security/v1",
|
|
256
|
-
"https://w3id.org/security/data-integrity/v1"
|
|
258
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
259
|
+
"https://gotosocial.org/ns"
|
|
257
260
|
],
|
|
258
261
|
type: "Activity",
|
|
259
262
|
object: {
|
|
@@ -396,6 +399,7 @@ test("Person.toJsonLd()", async () => {
|
|
|
396
399
|
"https://w3id.org/security/data-integrity/v1",
|
|
397
400
|
"https://www.w3.org/ns/did/v1",
|
|
398
401
|
"https://w3id.org/security/multikey/v1",
|
|
402
|
+
"https://gotosocial.org/ns",
|
|
399
403
|
{
|
|
400
404
|
PropertyValue: "schema:PropertyValue",
|
|
401
405
|
alsoKnownAs: {
|
|
@@ -700,6 +704,7 @@ test("Note.quoteUrl", async () => {
|
|
|
700
704
|
"@context": [
|
|
701
705
|
"https://www.w3.org/ns/activitystreams",
|
|
702
706
|
"https://w3id.org/security/data-integrity/v1",
|
|
707
|
+
"https://gotosocial.org/ns",
|
|
703
708
|
{
|
|
704
709
|
Emoji: "toot:Emoji",
|
|
705
710
|
Hashtag: "as:Hashtag",
|
|
@@ -805,7 +810,11 @@ test("Place.fromJsonLd()", async () => {
|
|
|
805
810
|
contextLoader: mockDocumentLoader
|
|
806
811
|
});
|
|
807
812
|
deepStrictEqual(jsonLd, {
|
|
808
|
-
"@context": [
|
|
813
|
+
"@context": [
|
|
814
|
+
"https://www.w3.org/ns/activitystreams",
|
|
815
|
+
"https://w3id.org/security/data-integrity/v1",
|
|
816
|
+
"https://gotosocial.org/ns"
|
|
817
|
+
],
|
|
809
818
|
type: "Place",
|
|
810
819
|
name: "Fresno Area",
|
|
811
820
|
latitude: 36.75,
|
|
@@ -1492,7 +1501,7 @@ for (const typeUri in types) {
|
|
|
1492
1501
|
});
|
|
1493
1502
|
const jsonLd = await instance.toJsonLd({ contextLoader: mockDocumentLoader });
|
|
1494
1503
|
deepStrictEqual(jsonLd["@context"], type.defaultContext);
|
|
1495
|
-
deepStrictEqual(jsonLd.id, "https://example.com/");
|
|
1504
|
+
if (type.entity) deepStrictEqual(jsonLd.id, "https://example.com/");
|
|
1496
1505
|
const restored = await cls.fromJsonLd(jsonLd, {
|
|
1497
1506
|
documentLoader: mockDocumentLoader,
|
|
1498
1507
|
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.543+e09fd1b4",
|
|
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/vocab-runtime": "2.1.0-dev.
|
|
52
|
-
"@fedify/webfinger": "2.1.0-dev.
|
|
50
|
+
"@fedify/vocab-tools": "2.1.0-dev.543+e09fd1b4",
|
|
51
|
+
"@fedify/vocab-runtime": "2.1.0-dev.543+e09fd1b4",
|
|
52
|
+
"@fedify/webfinger": "2.1.0-dev.543+e09fd1b4"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^22.17.0",
|