This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
admin-panel/graphql-types/node_modules/latest-version/index.js

12 lines
334 B
JavaScript

'use strict';
const packageJson = require('package-json');
const lastestVersion = async (packageName, options) => {
const {version} = await packageJson(packageName.toLowerCase(), options);
return version;
};
module.exports = lastestVersion;
// TODO: Remove this for the next major release
module.exports.default = lastestVersion;