text: export default {
    fetchUsername(username) {
      return new Promise(function (resolve) {
        fetch(`https://api.github.com/users/${username}`)
          .then((res) => res.json())
          .then((data) => {
            resolve(data);
          });
      });
    },
  
    fetchReposByUsername(username) {
      return new Promise(function (resolve) {
        fetch(`https://api.github.com/users/${username}/repos`)
          .then((res) => res.json())
          .then((data) => {
            resolve(data);
          });
      });
    }
  };
  