Skip to content

Commit

Permalink
make rawMessage public on the Record class (#745)
Browse files Browse the repository at this point in the history
* make `rawMessage` public on the `Record` class, fix `did:ion` failure in credentails package

* add changeset
  • Loading branch information
LiranCohen committed Jul 12, 2024
1 parent 5b0c61a commit a956f72
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/silly-taxis-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@web5/api": patch
---

make `rawMessage` not private in `Record` class
2 changes: 1 addition & 1 deletion packages/api/src/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export class Record implements RecordModel {
/**
* Returns a copy of the raw `RecordsWriteMessage` that was used to create the current `Record` instance.
*/
private get rawMessage(): DwnMessage[DwnInterface.RecordsWrite] | DwnMessage[DwnInterface.RecordsDelete] {
get rawMessage(): DwnMessage[DwnInterface.RecordsWrite] | DwnMessage[DwnInterface.RecordsDelete] {
const messageType = this._descriptor.interface + this._descriptor.method;
let message: DwnMessage[DwnInterface.RecordsWrite] | DwnMessage[DwnInterface.RecordsDelete];
if (messageType === DwnInterface.RecordsWrite) {
Expand Down
4 changes: 3 additions & 1 deletion packages/credentials/tests/verifiable-credential.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ describe('Verifiable Credential Tests', () => {
}
});

it('create and sign vc with did:ion', async () => {
// TBD's `did:ion` resolver has been sunset so skipping tests
// TODO: Move `did:ion` functionality to separate repo
xit('create and sign vc with did:ion', async () => {
const did = await DidIon.create();

const vc = await VerifiableCredential.create({
Expand Down

0 comments on commit a956f72

Please sign in to comment.