Guard against pure numerical version numbers.
This commit is contained in:
parent
057b9f469f
commit
4522b3d864
1
index.js
1
index.js
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user