diff --git a/LICENSE b/LICENSE index 0bb98b9..948def1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Kaleab S. Melkie +Copyright (c) 2020-2021 Kaleab S. Melkie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index f3f12d5..9c3b1da 100644 --- a/README.md +++ b/README.md @@ -31,18 +31,18 @@ module.exports = { // Could be just a strings, `first@example.com`, // Or an object, to pass an optional gravatar `query` parameter per email (see below). - { email: `second@example.com`, query: `?size=128` } - ] + { email: `second@example.com`, query: `?size=128` }, + ], // Optional. // No query string is passed to gravatar by default. // But you can add your gravatar query parameters here. // See https://en.gravatar.com/site/implement/images/ // If this is set, it will be the default for `emails` (see above) with no `query` options. - query: `?size=64&m=dp` - } - } - ] + query: `?size=64&m=dp`, + }, + }, + ], } ``` @@ -90,7 +90,7 @@ import { toUrl } from 'gatsby-source-gravatar' function Profile({ email }) { const url = useMemo(() => toUrl(email, 'size=128'), [email]) - return <>... + return {`${email}'s } ``` @@ -109,4 +109,4 @@ Read up on [this article](https://medium.com/swlh/optimizing-gravatars-in-gatsby Made with ♥ in Addis Ababa. -[MIT License](LICENSE) © 2020 [Kaleab S. Melkie](https://bit.ly/kaleab). +[MIT License](LICENSE) © 2020-2021 [Kaleab S. Melkie](https://bit.ly/kaleab). diff --git a/src/index.js b/src/index.js index ec0162b..ac61692 100644 --- a/src/index.js +++ b/src/index.js @@ -1,10 +1,10 @@ -const digest = require('./lib/digest') +const md5 = require('md5') const parseData = require('./lib/parse-data') const parseNode = require('./lib/parse-node') const toUrl = require('./lib/to-url') module.exports = { - digest, + digest: md5, parseData, parseNode, toUrl,