Comparing version 1.1.3 to 1.1.4
@@ -6,3 +6,3 @@ "use strict"; | ||
const errors_1 = require("./errors"); | ||
let API_URL = 'http://en.wikipedia.org/w/api.php?', REST_API_URL = 'http://en.wikipedia.org/api/rest_v1/'; | ||
let API_URL = 'https://en.wikipedia.org/w/api.php?', REST_API_URL = 'https://en.wikipedia.org/api/rest_v1/'; | ||
// RATE_LIMIT = false, | ||
@@ -74,4 +74,4 @@ // RATE_LIMIT_MIN_WAIT = undefined, | ||
function setAPIUrl(prefix) { | ||
API_URL = 'http://' + prefix.toLowerCase() + '.wikipedia.org/w/api.php?'; | ||
REST_API_URL = 'http://' + prefix.toLowerCase() + '.wikipedia.org/api/rest_v1/'; | ||
API_URL = 'https://' + prefix.toLowerCase() + '.wikipedia.org/w/api.php?'; | ||
REST_API_URL = 'https://' + prefix.toLowerCase() + '.wikipedia.org/api/rest_v1/'; | ||
return API_URL; | ||
@@ -78,0 +78,0 @@ } |
{ | ||
"name": "wikipedia", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "A JavaScript wrapper for the wikipedia apis", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
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
101265