@shaai/core
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -15,4 +15,9 @@ 'use strict'; | ||
get: async function get(from, size) { | ||
var proxy = 'https://cors-anywhere.herokuapp.com/'; | ||
var mediumURL = 'https://medium.com/feed/' + sanitizedUsername(environment().medium.username); | ||
return axios.get(mediumURL).then(function (response) { | ||
return axios.get(proxy + mediumURL, { | ||
headers: { | ||
'x-requested-with': 'jj' | ||
} | ||
}).then(function (response) { | ||
return mediumParser(response.data); | ||
@@ -19,0 +24,0 @@ }).catch(function (error) { |
{ | ||
"name": "@shaai/core", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "A blogging npm", | ||
@@ -5,0 +5,0 @@ "main": "dist/es5/lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6217
99