Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export methods getVerificationMethod(..) and isDataAuthentic(...) related to VerifiableURI encoding #432

Merged
merged 4 commits into from
May 29, 2024

Conversation

CJ42
Copy link
Collaborator

@CJ42 CJ42 commented May 13, 2024

What kind of change does this PR introduce (bug fix, feature, docs update, ...)?

✨ Feature

What is the current behaviour (you can also link to an open issue here)?

Some methods defined in the lib are only available internally, but exposed to the class or exported in the main index.js of the lib.

What is the new behaviour (if this is a feature change)?

Add the following methods + their relevant docs:

  • getVerificationMethod
  • isDataAuthentic

@CJ42 CJ42 force-pushed the feat/encoding-features-with-docs branch 3 times, most recently from c76a69f to 378d833 Compare May 13, 2024 15:21
@CJ42 CJ42 marked this pull request as ready for review May 13, 2024 15:21
@CJ42 CJ42 force-pushed the feat/encoding-features-with-docs branch 3 times, most recently from aecb6b2 to 6ebcdd0 Compare May 13, 2024 15:50
@CJ42 CJ42 changed the title feat: export methods related to VerifiableURI encoding feat: export methods getVerificationMethod(..) and isDataAuthentic(...) related to VerifiableURI encoding May 17, 2024
@CJ42 CJ42 force-pushed the feat/encoding-features-with-docs branch from 5f7afb8 to 335608f Compare May 21, 2024 15:32
Copy link
Contributor

@Hugoo Hugoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to consider having a proper mock to remove external dependencies.

const result = await getDataFromExternalSources(
[schema],
dataFromChain,
'https://api.universalprofile.cloud/ipfs/',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please mock this as we can't rely on outside API/server for the testing of this lib.

@Hugoo
Copy link
Contributor

Hugoo commented May 21, 2024

@Hugoo Hugoo merged commit dc02ccd into develop May 29, 2024
2 checks passed
@Hugoo Hugoo deleted the feat/encoding-features-with-docs branch May 29, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants