@twin.org/immutable-proof-service 0.0.1-next.21 → 0.0.1-next.22
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/dist/cjs/index.cjs +2 -3
- package/dist/esm/index.mjs +2 -3
- package/docs/changelog.md +1 -1
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -502,8 +502,7 @@ class ImmutableProofService {
|
|
|
502
502
|
}
|
|
503
503
|
try {
|
|
504
504
|
const { immutableProof } = await this.internalGet(id, false);
|
|
505
|
-
|
|
506
|
-
return compacted;
|
|
505
|
+
return dataJsonLd.JsonLdProcessor.compact(immutableProof);
|
|
507
506
|
}
|
|
508
507
|
catch (error) {
|
|
509
508
|
throw new core.GeneralError(this.CLASS_NAME, "getFailed", undefined, error);
|
|
@@ -622,7 +621,7 @@ class ImmutableProofService {
|
|
|
622
621
|
if (core.Is.stringValue(immutableProof.proof.created)) {
|
|
623
622
|
proofEntity.dateCreated = immutableProof.proof.created;
|
|
624
623
|
}
|
|
625
|
-
const compacted = await dataJsonLd.JsonLdProcessor.compact(immutableProof
|
|
624
|
+
const compacted = await dataJsonLd.JsonLdProcessor.compact(immutableProof);
|
|
626
625
|
const immutableStoreResult = await this._immutableStorage.store(proofEntity.nodeIdentity, core.ObjectHelper.toBytes(compacted));
|
|
627
626
|
proofEntity.immutableStorageId = immutableStoreResult.id;
|
|
628
627
|
await this._proofStorage.set(proofEntity);
|
package/dist/esm/index.mjs
CHANGED
|
@@ -500,8 +500,7 @@ class ImmutableProofService {
|
|
|
500
500
|
}
|
|
501
501
|
try {
|
|
502
502
|
const { immutableProof } = await this.internalGet(id, false);
|
|
503
|
-
|
|
504
|
-
return compacted;
|
|
503
|
+
return JsonLdProcessor.compact(immutableProof);
|
|
505
504
|
}
|
|
506
505
|
catch (error) {
|
|
507
506
|
throw new GeneralError(this.CLASS_NAME, "getFailed", undefined, error);
|
|
@@ -620,7 +619,7 @@ class ImmutableProofService {
|
|
|
620
619
|
if (Is.stringValue(immutableProof.proof.created)) {
|
|
621
620
|
proofEntity.dateCreated = immutableProof.proof.created;
|
|
622
621
|
}
|
|
623
|
-
const compacted = await JsonLdProcessor.compact(immutableProof
|
|
622
|
+
const compacted = await JsonLdProcessor.compact(immutableProof);
|
|
624
623
|
const immutableStoreResult = await this._immutableStorage.store(proofEntity.nodeIdentity, ObjectHelper.toBytes(compacted));
|
|
625
624
|
proofEntity.immutableStorageId = immutableStoreResult.id;
|
|
626
625
|
await this._proofStorage.set(proofEntity);
|
package/docs/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/immutable-proof-service",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.22",
|
|
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.
|
|
27
|
-
"@twin.org/immutable-proof-task": "0.0.1-next.
|
|
26
|
+
"@twin.org/immutable-proof-models": "0.0.1-next.22",
|
|
27
|
+
"@twin.org/immutable-proof-task": "0.0.1-next.22",
|
|
28
28
|
"@twin.org/immutable-storage-models": "next",
|
|
29
29
|
"@twin.org/nameof": "next",
|
|
30
30
|
"@twin.org/standards-w3c-did": "next",
|