github-contributions-counter
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -47,5 +47,4 @@ /** | ||
method: 'get', | ||
url: `https://github.com/${username}`, | ||
url: `https://cors-anywhere.herokuapp.com/https://github.com/${username}`, | ||
responseType: 'text', | ||
headers: { 'Access-Control-Allow-Origin': '*' }, | ||
}) | ||
@@ -70,5 +69,4 @@ } catch (e) { | ||
method: 'get', | ||
url: `https://github.com/${DateSelectors[i].href}`, | ||
url: `https://cors-anywhere.herokuapp.com/https://github.com/${DateSelectors[i].href}`, | ||
responseType: 'text', | ||
headers: { 'Access-Control-Allow-Origin': '*' }, | ||
}) | ||
@@ -121,5 +119,4 @@ } catch (e) { | ||
method: 'get', | ||
url: `https://github.com/users/${username}/contributions`, | ||
url: `https://cors-anywhere.herokuapp.com/https://github.com/users/${username}/contributions`, | ||
responseType: 'text', | ||
headers: { 'Access-Control-Allow-Origin': '*' }, | ||
}) | ||
@@ -126,0 +123,0 @@ } catch (e) { |
{ | ||
"name": "github-contributions-counter", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A simple Javascript API that will return the public github contributions history for a user based on a universal function", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
8344
134