Guard against pure numerical version numbers.

This commit is contained in:
Aaron Suen 2019-03-30 00:20:41 -04:00
parent 057b9f469f
commit 4522b3d864

View File

@ -25,6 +25,7 @@ Object.keys(config).sort().forEach(k => {
if(missing.length)
throw 'missing/invalid options: ' + missing.join(', ');
config.root = config.root.replace(/\/+$/, '');
config.version = '' + config.version;
const cookiejar = {};
async function fetch(uri, meth, data, opts, ref, ...rest) {