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;

@@ -39,16 +39,31 @@
 uest';%0A%0A
+export default 
 function
@@ -302,34 +302,4 @@
 ;%0A%7D%0A
-%0Amodule.exports = searchable;%0A

Use ES6 export in searchable.js