@hahnpro/hpc-api 3.8.0 → 3.8.1

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.
@@ -97,6 +97,7 @@ class MockAPI {
97
97
  cause: v.cause,
98
98
  level: v.level,
99
99
  group: v.group,
100
+ createdAt: v.createdAt,
100
101
  }));
101
102
  const timeseriesValues = timeSeries.map((v) => v.values);
102
103
  const diagrams1 = diagrams.map((v) => (Object.assign(Object.assign({}, v), { json: '', author: 'nobody' })));
@@ -53,7 +53,7 @@ class TimeseriesMockService extends BaseService {
53
53
  };
54
54
  return this.addOne(dto);
55
55
  }
56
- ts.data = [...ts.data, ...data];
56
+ ts.data = ts.data ? [...ts.data, ...data] : data;
57
57
  return Promise.resolve(ts);
58
58
  }
59
59
  async addValue(id, value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hahnpro/hpc-api",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "description": "Module for easy access to the HahnPRO API",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -24,17 +24,17 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "axios": "~1.3.5",
27
+ "axios": "~1.3.6",
28
28
  "eventsource": "^2.0.2",
29
29
  "form-data": "^4.0.0",
30
- "jose": "^4.13.1",
30
+ "jose": "^4.14.1",
31
31
  "jwt-decode": "^3.1.2",
32
32
  "p-queue": "^6.6.2",
33
33
  "ts-mixer": "^6.0.3",
34
34
  "uuid": "^9.0.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/eventsource": "1.1.10",
37
+ "@types/eventsource": "1.1.11",
38
38
  "axios-mock-adapter": "^1.21.4"
39
39
  },
40
40
  "engines": {