@golemio/energetics 1.2.12-dev.1210136153 → 1.2.12-dev.1210260890

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.
@@ -1 +1,2 @@
1
+ truncate commodity_static_meter_settings;
1
2
  truncate consumption_energy_measurements;
@@ -1,5 +1,5 @@
1
1
  export interface ICemConfig {
2
- authCookieName: string;
2
+ authcookiename: string;
3
3
  user: string;
4
4
  pass: string;
5
5
  }
@@ -28,7 +28,7 @@ class UnimonitorCemApiHelper {
28
28
  this.createSession = () => __awaiter(this, void 0, void 0, function* () {
29
29
  var _a;
30
30
  try {
31
- const { authCookieName, user, pass } = this.config;
31
+ const { authcookiename, user, pass } = this.config;
32
32
  const params = new URLSearchParams({
33
33
  id: UnimonitorCemApiHelper.resourceType.UserLogin,
34
34
  pass,
@@ -40,7 +40,7 @@ class UnimonitorCemApiHelper {
40
40
  };
41
41
  const { headers } = yield axios_1.default.get(axiosUrl, axiosConfig);
42
42
  const cookieHeader = (_a = headers["set-cookie"]) === null || _a === void 0 ? void 0 : _a[0];
43
- return UnimonitorCemApiHelper.processAndFilterAuthCookie(cookieHeader, authCookieName);
43
+ return UnimonitorCemApiHelper.processAndFilterAuthCookie(cookieHeader, authcookiename);
44
44
  }
45
45
  catch (err) {
46
46
  throw new golemio_errors_1.GeneralError("Cannot retrieve Unimonitor CEM API authorization token", UnimonitorCemApiHelper.name, err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/energetics",
3
- "version": "1.2.12-dev.1210136153",
3
+ "version": "1.2.12-dev.1210260890",
4
4
  "description": "Golemio Energetics Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",