Skip to content

Commit e821efa

Browse files
Version 1.0.3 with changable base url and version
1 parent ee0849e commit e821efa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
module.exports = function (apiKey, forceRun) {
19+
module.exports = function (apiKey, forceRun, baseUrl, version) {
2020
var request = require('request'),
2121
fs = require('fs'),
22-
baseUrl = 'https://api.atlauncher.com/',
23-
version = 'v1',
22+
baseUrl = baseUrl || 'https://api.atlauncher.com/',
23+
version = version || 'v1',
2424
forceRun = forceRun || false;
2525

2626
var makeUrl = function (path) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "atlauncher-api",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Node.js module for interacting with the ATLauncher API",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)