homebridge-tauron-elicznik 0.0.2-beta57 → 0.0.2-beta58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Tauron eLicznik",
3
3
  "name": "homebridge-tauron-elicznik",
4
- "version": "0.0.2-beta57",
4
+ "version": "0.0.2-beta58",
5
5
  "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to read data from Tauron eLicznik.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/tauronAuth.js CHANGED
@@ -5,7 +5,6 @@ class axiosTauronAuth {
5
5
  constructor({
6
6
  options
7
7
  }) {
8
- this.method = options.method;
9
8
  this.baseUrl = options.baseURL;
10
9
  this.username = options.username;
11
10
  this.password = options.password;
@@ -21,11 +20,10 @@ class axiosTauronAuth {
21
20
  };
22
21
 
23
22
  const options = {
24
- method: this.method,
25
23
  baseURL: this.baseUrl,
26
24
  data: data
27
25
  };
28
- const response = await axios(options);
26
+ const response = await axios.post(options);
29
27
  console.log(response)
30
28
  return response;
31
29
  } catch (err) {}