Unverified Commit 3b55db22 authored by Hong Minhee's avatar Hong Minhee
Browse files

Fix `toJsonLd()` incorrectly compacting `name`

parent c3a693ac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
.DS_Store
deno.lock
t.ts
+3 −0
Original line number Diff line number Diff line
@@ -8,6 +8,9 @@ Version 1.0.2

To be released.

 -  Fixed a bug of `Object.toJsonLd()` method where it had incorrectly compacted
    the `name` property when it was not a language map.


Version 1.0.1
-------------
+30 −757

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -733,9 +733,9 @@ test("handleCollection()", async () => {
    "application/activity+json",
  );
  const createCtx = [
    "https://w3id.org/identity/v1",
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/data-integrity/v1",
    "https://w3id.org/identity/v1",
    {
      toot: "http://joinmastodon.org/ns#",
      misskey: "https://misskey-hub.net/ns#",
+2 −2
Original line number Diff line number Diff line
@@ -84,8 +84,8 @@ test("createProof()", async () => {
  assertEquals(
    proof.proofValue,
    decodeHex(
      "fc953e2bcff0712c49354a997ba29bc58d9f8061dee3895495e627cd27ecb968" +
        "36adc9b823dbd670d49829c6a13a45f2d0950376800cca561b4784de79801b0a",
      "3bbedb606c2fa17d81e6ba700c9c2e84ea708304a9e6f3843882e37236006215" +
        "51765bd8ef242e50bdc39fe56386954654bbf53750bfbe1f28dea2ecb85c2f0b",
    ),
  );
  assertEquals(proof.created, created);
Loading