diff --git a/polyfills/request.js b/polyfills/request.js index b4c4c67..a0a1ace 100644 --- a/polyfills/request.js +++ b/polyfills/request.js @@ -70,6 +70,7 @@ const request = (...args) => { // Main function } // log('Polyfill > Request', options.method, options.url); + console.log('[OpenAsar Request Polyfill]', options.url); const listeners = {}; @@ -107,6 +108,7 @@ const request = (...args) => { // Main function return ret; }; +['get'] // Method functions request.get = (url, callback) => request({ url: url, method: 'GET' }, callback); request.post = (url, callback) => request({ url: url, method: 'POST' }, callback); @@ -117,4 +119,4 @@ request.del = request.delete; // Random shortened func because request request.head = (url, callback) => request({ url: url, method: 'HEAD' }, callback); request.options = (url, callback) => request({ url: url, method: 'OPTIONS' }, callback); -module.exports = request; \ No newline at end of file +module.exports = request;