Skip to content

Commit

Permalink
add note to jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
hmalik88 committed Sep 17, 2024
1 parent bb80c95 commit 396bc37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/snaps-utils/src/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const SNAP_PATHS = ['/home'];
* Parse a url string to an object containing the authority, path and Snap id (if snap authority).
* This also validates the url before parsing it.
*
* Note: The Snap id returned from this function should always be validated to be an installed snap.
*
* @param str - The url string to validate and parse.
* @returns A parsed url object.
* @throws If the authority or path is invalid.
Expand Down

0 comments on commit 396bc37

Please sign in to comment.