diff --git a/lib/get-repo.js b/lib/get-repo.js index dc04cb48..1774ba64 100644 --- a/lib/get-repo.js +++ b/lib/get-repo.js @@ -1,4 +1,4 @@ -const obj2map = obj => Object.keys(obj).reduce((m, k) => m.set(k, obj[k]), new Map()) +const obj2map = (o) => new Map(Object.entries(o)) const repos = obj2map(require('all-the-package-repos')) delete require.cache[require.resolve('all-the-package-repos')]