-
Notifications
You must be signed in to change notification settings - Fork 2
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
VDX-76 #1
VDX-76 #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Several remarks. Most not too big.
…rt of function params
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more minor remarks
lib/utils/index.ts
Outdated
if (response.status >= 400) { | ||
return Promise.reject(Error(`Unable to retrieve did configuration resource from ${url}`)) | ||
} | ||
return response.json(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but I typically like to have logic which is so close to object part of that object to prevent bugs. Maybe change it into a method that accepts a boolean to do the check and that defaults to true, so that you can disable it if you want.
No description provided.