@twin.org/immutable-proof-service 0.0.1-next.22 → 0.0.1-next.23

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.
@@ -502,7 +502,7 @@ class ImmutableProofService {
502
502
  }
503
503
  try {
504
504
  const { immutableProof } = await this.internalGet(id, false);
505
- return dataJsonLd.JsonLdProcessor.compact(immutableProof);
505
+ return dataJsonLd.JsonLdProcessor.compact(immutableProof, immutableProof["@context"]);
506
506
  }
507
507
  catch (error) {
508
508
  throw new core.GeneralError(this.CLASS_NAME, "getFailed", undefined, error);
@@ -621,7 +621,7 @@ class ImmutableProofService {
621
621
  if (core.Is.stringValue(immutableProof.proof.created)) {
622
622
  proofEntity.dateCreated = immutableProof.proof.created;
623
623
  }
624
- const compacted = await dataJsonLd.JsonLdProcessor.compact(immutableProof);
624
+ const compacted = await dataJsonLd.JsonLdProcessor.compact(immutableProof, immutableProof["@context"]);
625
625
  const immutableStoreResult = await this._immutableStorage.store(proofEntity.nodeIdentity, core.ObjectHelper.toBytes(compacted));
626
626
  proofEntity.immutableStorageId = immutableStoreResult.id;
627
627
  await this._proofStorage.set(proofEntity);
@@ -500,7 +500,7 @@ class ImmutableProofService {
500
500
  }
501
501
  try {
502
502
  const { immutableProof } = await this.internalGet(id, false);
503
- return JsonLdProcessor.compact(immutableProof);
503
+ return JsonLdProcessor.compact(immutableProof, immutableProof["@context"]);
504
504
  }
505
505
  catch (error) {
506
506
  throw new GeneralError(this.CLASS_NAME, "getFailed", undefined, error);
@@ -619,7 +619,7 @@ class ImmutableProofService {
619
619
  if (Is.stringValue(immutableProof.proof.created)) {
620
620
  proofEntity.dateCreated = immutableProof.proof.created;
621
621
  }
622
- const compacted = await JsonLdProcessor.compact(immutableProof);
622
+ const compacted = await JsonLdProcessor.compact(immutableProof, immutableProof["@context"]);
623
623
  const immutableStoreResult = await this._immutableStorage.store(proofEntity.nodeIdentity, ObjectHelper.toBytes(compacted));
624
624
  proofEntity.immutableStorageId = immutableStoreResult.id;
625
625
  await this._proofStorage.set(proofEntity);
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/immutable-proof-service - Changelog
2
2
 
3
- ## v0.0.1-next.22
3
+ ## v0.0.1-next.23
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/immutable-proof-service",
3
- "version": "0.0.1-next.22",
3
+ "version": "0.0.1-next.23",
4
4
  "description": "Immutable proof contract implementation and REST endpoint definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,8 +23,8 @@
23
23
  "@twin.org/entity-storage-models": "next",
24
24
  "@twin.org/event-bus-models": "next",
25
25
  "@twin.org/identity-models": "next",
26
- "@twin.org/immutable-proof-models": "0.0.1-next.22",
27
- "@twin.org/immutable-proof-task": "0.0.1-next.22",
26
+ "@twin.org/immutable-proof-models": "0.0.1-next.23",
27
+ "@twin.org/immutable-proof-task": "0.0.1-next.23",
28
28
  "@twin.org/immutable-storage-models": "next",
29
29
  "@twin.org/nameof": "next",
30
30
  "@twin.org/standards-w3c-did": "next",