@twin.org/auditable-item-graph-service 0.0.1-next.13 → 0.0.1-next.14
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 +1 -4
- package/dist/esm/index.mjs +1 -4
- package/docs/changelog.md +1 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -1207,11 +1207,8 @@ class AuditableItemGraphService {
|
|
|
1207
1207
|
};
|
|
1208
1208
|
}
|
|
1209
1209
|
else {
|
|
1210
|
-
// Create the JSON-LD object we want to use for the proof
|
|
1211
|
-
// this is a subset of fixed properties from the changeset object.
|
|
1212
|
-
const reducedChangesetJsonLd = await this.changesetEntityToJsonLd(core.ObjectHelper.pick(storedChangeset, AuditableItemGraphService._PROOF_KEYS_CHANGESET));
|
|
1213
1210
|
// Verify the proof for the changeset object
|
|
1214
|
-
storedChangesetJsonLd.verification = await this._immutableProofComponent.verify(storedChangeset.proofId
|
|
1211
|
+
storedChangesetJsonLd.verification = await this._immutableProofComponent.verify(storedChangeset.proofId);
|
|
1215
1212
|
if (!storedChangesetJsonLd.verification.verified) {
|
|
1216
1213
|
verified = false;
|
|
1217
1214
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1205,11 +1205,8 @@ class AuditableItemGraphService {
|
|
|
1205
1205
|
};
|
|
1206
1206
|
}
|
|
1207
1207
|
else {
|
|
1208
|
-
// Create the JSON-LD object we want to use for the proof
|
|
1209
|
-
// this is a subset of fixed properties from the changeset object.
|
|
1210
|
-
const reducedChangesetJsonLd = await this.changesetEntityToJsonLd(ObjectHelper.pick(storedChangeset, AuditableItemGraphService._PROOF_KEYS_CHANGESET));
|
|
1211
1208
|
// Verify the proof for the changeset object
|
|
1212
|
-
storedChangesetJsonLd.verification = await this._immutableProofComponent.verify(storedChangeset.proofId
|
|
1209
|
+
storedChangesetJsonLd.verification = await this._immutableProofComponent.verify(storedChangeset.proofId);
|
|
1213
1210
|
if (!storedChangesetJsonLd.verification.verified) {
|
|
1214
1211
|
verified = false;
|
|
1215
1212
|
}
|
package/docs/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/auditable-item-graph-service",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.14",
|
|
4
4
|
"description": "Auditable Item Graph contract implementation and REST endpoint definitions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/api-models": "next",
|
|
18
|
-
"@twin.org/auditable-item-graph-models": "0.0.1-next.
|
|
18
|
+
"@twin.org/auditable-item-graph-models": "0.0.1-next.14",
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
20
|
"@twin.org/crypto": "next",
|
|
21
21
|
"@twin.org/data-json-ld": "next",
|