Loading CHANGES.md +2 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,8 @@ To be released. - Added `Hashtag` class to Activity Vocabulary API. [[#48]] - Added `Emoji` class to Activity Vocabulary API. [[#48]] - Added more log messages using the [LogTape] library. Currently the below logger categories are used: Loading codegen/__snapshots__/class.test.ts.snap +1367 −1169 File changed.Preview size limit exceeded, changes collapsed. Show changes federation/handler.test.ts +8 −0 Original line number Diff line number Diff line Loading @@ -397,8 +397,10 @@ Deno.test("handleObject()", async () => { "@context": [ "https://www.w3.org/ns/activitystreams", { Emoji: "toot:Emoji", Hashtag: "as:Hashtag", sensitive: "as:sensitive", toot: "http://joinmastodon.org/ns#", }, ], id: "https://example.com/users/someone/notes/123", Loading Loading @@ -489,8 +491,10 @@ Deno.test("handleObject()", async () => { "@context": [ "https://www.w3.org/ns/activitystreams", { Emoji: "toot:Emoji", Hashtag: "as:Hashtag", sensitive: "as:sensitive", toot: "http://joinmastodon.org/ns#", }, ], id: "https://example.com/users/someone/notes/123", Loading Loading @@ -865,8 +869,10 @@ Deno.test("respondWithObject()", async () => { "@context": [ "https://www.w3.org/ns/activitystreams", { Emoji: "toot:Emoji", Hashtag: "as:Hashtag", sensitive: "as:sensitive", toot: "http://joinmastodon.org/ns#", }, ], id: "https://example.com/notes/1", Loading Loading @@ -897,8 +903,10 @@ Deno.test("respondWithObjectIfAcceptable", async () => { "@context": [ "https://www.w3.org/ns/activitystreams", { Emoji: "toot:Emoji", Hashtag: "as:Hashtag", sensitive: "as:sensitive", toot: "http://joinmastodon.org/ns#", }, ], id: "https://example.com/notes/1", Loading vocab/__snapshots__/vocab.test.ts.snap +97 −0 Original line number Diff line number Diff line export const snapshot = {}; snapshot[`Deno.inspect(Emoji) [auto] 1`] = ` 'Emoji { id: URL "https://example.com/", attachments: [ Object {}, Link {}, PropertyValue {} ], attributions: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], audience: Object {}, contents: [ "hello", <en> "hello" ], contexts: [ Object {}, Link {} ], names: [ "hello", <en> "hello" ], endTime: 2024-03-03T08:30:06.796196096Z, generators: [ Object {}, Link {} ], icon: Image {}, image: Image {}, replyTargets: [ Object {}, Link {} ], locations: [ Object {}, Link {} ], previews: [ Link {}, Object {} ], published: 2024-03-03T08:30:06.796196096Z, replies: Collection {}, startTime: 2024-03-03T08:30:06.796196096Z, summaries: [ "hello", <en> "hello" ], tags: [ Object {}, Link {} ], updated: 2024-03-03T08:30:06.796196096Z, urls: [ URL "https://example.com/", Link {} ], to: Object {}, bto: Object {}, cc: Object {}, bcc: Object {}, mediaType: "hello", duration: PT1H, sensitive: true }' `; snapshot[`Deno.inspect(Emoji) [auto] 2`] = ` 'Emoji { attachments: [ URL "https://example.com/" ], attribution: URL "https://example.com/", audience: URL "https://example.com/", contents: [ "hello", <en> "hello" ], contexts: [ URL "https://example.com/" ], names: [ "hello", <en> "hello" ], endTime: 2024-03-03T08:30:06.796196096Z, generators: [ URL "https://example.com/" ], icon: URL "https://example.com/", image: URL "https://example.com/", replyTarget: URL "https://example.com/", location: URL "https://example.com/", preview: URL "https://example.com/", published: 2024-03-03T08:30:06.796196096Z, replies: URL "https://example.com/", startTime: 2024-03-03T08:30:06.796196096Z, summaries: [ "hello", <en> "hello" ], tags: [ URL "https://example.com/" ], updated: 2024-03-03T08:30:06.796196096Z, urls: [ URL "https://example.com/", Link {} ], to: URL "https://example.com/", bto: URL "https://example.com/", cc: URL "https://example.com/", bcc: URL "https://example.com/", mediaType: "hello", duration: PT1H, sensitive: true }' `; snapshot[`Deno.inspect(Emoji) [auto] 3`] = ` 'Emoji { attachments: [ Object {}, Object {} ], attributions: [ Application {}, Application {} ], audiences: [ Object {}, Object {} ], contents: [ "hello", "hello" ], contexts: [ Object {}, Object {} ], names: [ "hello", "hello" ], endTime: 2024-03-03T08:30:06.796196096Z, generators: [ Object {}, Object {} ], icons: [ Image {}, Image {} ], images: [ Image {}, Image {} ], replyTargets: [ Object {}, Object {} ], locations: [ Object {}, Object {} ], previews: [ Link {}, Link {} ], published: 2024-03-03T08:30:06.796196096Z, replies: Collection {}, startTime: 2024-03-03T08:30:06.796196096Z, summaries: [ "hello", "hello" ], tags: [ Object {}, Object {} ], updated: 2024-03-03T08:30:06.796196096Z, urls: [ URL "https://example.com/", URL "https://example.com/" ], tos: [ Object {}, Object {} ], btos: [ Object {}, Object {} ], ccs: [ Object {}, Object {} ], bccs: [ Object {}, Object {} ], mediaType: "hello", duration: PT1H, sensitive: true }' `; snapshot[`Deno.inspect(PropertyValue) [auto] 1`] = `'PropertyValue { id: URL "https://example.com/", name: "hello", value: "hello" }'`; snapshot[`Deno.inspect(PropertyValue) [auto] 2`] = `'PropertyValue { name: "hello", value: "hello" }'`; Loading vocab/announce.yaml +3 −1 Original line number Diff line number Diff line Loading @@ -9,6 +9,8 @@ description: | The `origin` typically has no defined meaning. defaultContext: - "https://www.w3.org/ns/activitystreams" - sensitive: "as:sensitive" - toot: "http://joinmastodon.org/ns#" sensitive: "as:sensitive" Emoji: "toot:Emoji" Hashtag: "as:Hashtag" properties: [] Loading
CHANGES.md +2 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,8 @@ To be released. - Added `Hashtag` class to Activity Vocabulary API. [[#48]] - Added `Emoji` class to Activity Vocabulary API. [[#48]] - Added more log messages using the [LogTape] library. Currently the below logger categories are used: Loading
codegen/__snapshots__/class.test.ts.snap +1367 −1169 File changed.Preview size limit exceeded, changes collapsed. Show changes
federation/handler.test.ts +8 −0 Original line number Diff line number Diff line Loading @@ -397,8 +397,10 @@ Deno.test("handleObject()", async () => { "@context": [ "https://www.w3.org/ns/activitystreams", { Emoji: "toot:Emoji", Hashtag: "as:Hashtag", sensitive: "as:sensitive", toot: "http://joinmastodon.org/ns#", }, ], id: "https://example.com/users/someone/notes/123", Loading Loading @@ -489,8 +491,10 @@ Deno.test("handleObject()", async () => { "@context": [ "https://www.w3.org/ns/activitystreams", { Emoji: "toot:Emoji", Hashtag: "as:Hashtag", sensitive: "as:sensitive", toot: "http://joinmastodon.org/ns#", }, ], id: "https://example.com/users/someone/notes/123", Loading Loading @@ -865,8 +869,10 @@ Deno.test("respondWithObject()", async () => { "@context": [ "https://www.w3.org/ns/activitystreams", { Emoji: "toot:Emoji", Hashtag: "as:Hashtag", sensitive: "as:sensitive", toot: "http://joinmastodon.org/ns#", }, ], id: "https://example.com/notes/1", Loading Loading @@ -897,8 +903,10 @@ Deno.test("respondWithObjectIfAcceptable", async () => { "@context": [ "https://www.w3.org/ns/activitystreams", { Emoji: "toot:Emoji", Hashtag: "as:Hashtag", sensitive: "as:sensitive", toot: "http://joinmastodon.org/ns#", }, ], id: "https://example.com/notes/1", Loading
vocab/__snapshots__/vocab.test.ts.snap +97 −0 Original line number Diff line number Diff line export const snapshot = {}; snapshot[`Deno.inspect(Emoji) [auto] 1`] = ` 'Emoji { id: URL "https://example.com/", attachments: [ Object {}, Link {}, PropertyValue {} ], attributions: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], audience: Object {}, contents: [ "hello", <en> "hello" ], contexts: [ Object {}, Link {} ], names: [ "hello", <en> "hello" ], endTime: 2024-03-03T08:30:06.796196096Z, generators: [ Object {}, Link {} ], icon: Image {}, image: Image {}, replyTargets: [ Object {}, Link {} ], locations: [ Object {}, Link {} ], previews: [ Link {}, Object {} ], published: 2024-03-03T08:30:06.796196096Z, replies: Collection {}, startTime: 2024-03-03T08:30:06.796196096Z, summaries: [ "hello", <en> "hello" ], tags: [ Object {}, Link {} ], updated: 2024-03-03T08:30:06.796196096Z, urls: [ URL "https://example.com/", Link {} ], to: Object {}, bto: Object {}, cc: Object {}, bcc: Object {}, mediaType: "hello", duration: PT1H, sensitive: true }' `; snapshot[`Deno.inspect(Emoji) [auto] 2`] = ` 'Emoji { attachments: [ URL "https://example.com/" ], attribution: URL "https://example.com/", audience: URL "https://example.com/", contents: [ "hello", <en> "hello" ], contexts: [ URL "https://example.com/" ], names: [ "hello", <en> "hello" ], endTime: 2024-03-03T08:30:06.796196096Z, generators: [ URL "https://example.com/" ], icon: URL "https://example.com/", image: URL "https://example.com/", replyTarget: URL "https://example.com/", location: URL "https://example.com/", preview: URL "https://example.com/", published: 2024-03-03T08:30:06.796196096Z, replies: URL "https://example.com/", startTime: 2024-03-03T08:30:06.796196096Z, summaries: [ "hello", <en> "hello" ], tags: [ URL "https://example.com/" ], updated: 2024-03-03T08:30:06.796196096Z, urls: [ URL "https://example.com/", Link {} ], to: URL "https://example.com/", bto: URL "https://example.com/", cc: URL "https://example.com/", bcc: URL "https://example.com/", mediaType: "hello", duration: PT1H, sensitive: true }' `; snapshot[`Deno.inspect(Emoji) [auto] 3`] = ` 'Emoji { attachments: [ Object {}, Object {} ], attributions: [ Application {}, Application {} ], audiences: [ Object {}, Object {} ], contents: [ "hello", "hello" ], contexts: [ Object {}, Object {} ], names: [ "hello", "hello" ], endTime: 2024-03-03T08:30:06.796196096Z, generators: [ Object {}, Object {} ], icons: [ Image {}, Image {} ], images: [ Image {}, Image {} ], replyTargets: [ Object {}, Object {} ], locations: [ Object {}, Object {} ], previews: [ Link {}, Link {} ], published: 2024-03-03T08:30:06.796196096Z, replies: Collection {}, startTime: 2024-03-03T08:30:06.796196096Z, summaries: [ "hello", "hello" ], tags: [ Object {}, Object {} ], updated: 2024-03-03T08:30:06.796196096Z, urls: [ URL "https://example.com/", URL "https://example.com/" ], tos: [ Object {}, Object {} ], btos: [ Object {}, Object {} ], ccs: [ Object {}, Object {} ], bccs: [ Object {}, Object {} ], mediaType: "hello", duration: PT1H, sensitive: true }' `; snapshot[`Deno.inspect(PropertyValue) [auto] 1`] = `'PropertyValue { id: URL "https://example.com/", name: "hello", value: "hello" }'`; snapshot[`Deno.inspect(PropertyValue) [auto] 2`] = `'PropertyValue { name: "hello", value: "hello" }'`; Loading
vocab/announce.yaml +3 −1 Original line number Diff line number Diff line Loading @@ -9,6 +9,8 @@ description: | The `origin` typically has no defined meaning. defaultContext: - "https://www.w3.org/ns/activitystreams" - sensitive: "as:sensitive" - toot: "http://joinmastodon.org/ns#" sensitive: "as:sensitive" Emoji: "toot:Emoji" Hashtag: "as:Hashtag" properties: []