old_contents: import {requestApi} from '../utils/request';
  
  function searchable(state) {
  	return {
  		searchAnimes(name) {
  			return requestApi(state.authToken, `/anime/search.xml`, {q: name});
  		},
  
  		searchMangas(name) {
  			return requestApi(state.authToken, `/manga/search.xml`, {q: name});
  		},
  	};
  }
  
  module.exports = searchable;
  
new_contents: import {requestApi} from '../utils/request';
  
  export default function searchable(state) {
  	return {
  		searchAnimes(name) {
  			return requestApi(state.authToken, `/anime/search.xml`, {q: name});
  		},
  
  		searchMangas(name) {
  			return requestApi(state.authToken, `/manga/search.xml`, {q: name});
  		},
  	};
  }
  
subject: Use ES6 export in searchable.js