Skip to content

Commit

Permalink
Fix typo (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanodevium authored and sindresorhus committed Nov 6, 2019
1 parent 44d1b1f commit 3728f5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
@@ -1,11 +1,11 @@
'use strict';
const packageJson = require('package-json');

const lastestVersion = async (packageName, options) => {
const latestVersion = async (packageName, options) => {
const {version} = await packageJson(packageName.toLowerCase(), options);
return version;
};

module.exports = lastestVersion;
module.exports = latestVersion;
// TODO: Remove this for the next major release
module.exports.default = lastestVersion;
module.exports.default = latestVersion;

0 comments on commit 3728f5f

Please sign in to comment.