'use strict';

const request = require('./_request');

function history(uuid) {
  if (Array.isArray(uuid)) {
    let master = [];
    uuid.forEach(u => master.push(history(u)));
    return master;
  }

  return request({
    method: 'GET',
    url: 'api.mojang.com',
    path: '/user/profiles/' + uuid + '/names'
  });
}

module.exports = history;

@@ -222,30 +222,16 @@
     
-method: 'GET',%0A    url
+hostname
 : 'a
@@ -291,16 +291,17 @@
 '/names'
+,
 %0A  %7D);%0A%7D

Fix more