Comparing version 1.0.7 to 1.0.8
@@ -82,3 +82,3 @@ 'use strict'; | ||
this.bearerToken = opts.bearerToken || '-'; | ||
this.baseUrl = opts.baseUrl || 'https://api.bankson.fi/v2'; | ||
this.baseUrl = opts.baseUrl || 'https://api.bankson.fi'; | ||
this.testMode = typeof opts.test !== 'undefined' ? opts.test : false; | ||
@@ -142,3 +142,3 @@ if (opts.privateKey && opts.apiKey) { | ||
value: function post(path, data) { | ||
return request('POST', path, data); | ||
return this.request('POST', path, data); | ||
} | ||
@@ -148,3 +148,3 @@ }, { | ||
value: function put(path, data) { | ||
return request('PUT', path, data); | ||
return this.request('PUT', path, data); | ||
} | ||
@@ -151,0 +151,0 @@ }, { |
{ | ||
"name": "bankson-js", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Bankson.fi Node client", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
26743