attlaz-client 1.4.5 → 1.4.6

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.
@@ -96,20 +96,20 @@ export class LogEndpoint extends Endpoint {
96
96
  }
97
97
  const rawData = dataResult.getData();
98
98
  const logLevels = new Map();
99
- Object.keys(rawData.level_count).forEach((key, index) => {
100
- const logLevel = LogLevel.fromString(key);
101
- const parsedCount = parseInt(rawData.level_count[key], undefined);
99
+ Object.keys(rawData.level_count).forEach((logLevelKey, index) => {
100
+ const logLevel = LogLevel.fromString(logLevelKey);
101
+ const parsedCount = parseInt(rawData.level_count[logLevelKey], undefined);
102
102
  if (parsedCount !== null) {
103
103
  logLevels.set(logLevel, parsedCount);
104
104
  }
105
105
  else {
106
- console.error('Unserialize log level count: Unable to parse log level count', rawData.level_count[key]);
106
+ console.error('Unserialize log level count: Unable to parse log level count', rawData.level_count[logLevelKey]);
107
107
  }
108
108
  });
109
109
  const tags = new Map();
110
- Object.keys(rawData.tags).forEach((key, index) => {
111
- const values = rawData.level_count[key];
112
- tags.set(key, values);
110
+ Object.keys(rawData.tags).forEach((tagKey, index) => {
111
+ const values = rawData.tags[tagKey];
112
+ tags.set(tagKey, values);
113
113
  });
114
114
  return { logLevels: logLevels, tags };
115
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",