fleetmap-reports 2.0.192 → 2.0.199

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,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "2.0.192",
3
+ "version": "2.0.199",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -27,6 +27,7 @@
27
27
  "wkt": "^0.1.1"
28
28
  },
29
29
  "devDependencies": {
30
+ "axios-debug-log": "^0.8.4",
30
31
  "eslint": "^8.15.0",
31
32
  "eslint-config-standard": "^17.0.0",
32
33
  "eslint-plugin-import": "^2.26.0",
@@ -96,6 +96,7 @@ async function getAllInOne (
96
96
  console.log(u)
97
97
  requests.push(
98
98
  traccar.axios.get(u, {
99
+ jar: traccar.cookieJar,
99
100
  withCredentials: true,
100
101
  timeout: 900000
101
102
  }).catch(e => {
@@ -482,7 +482,7 @@ function analyseAlerts (alerts, deviceRoute, userData, from, to, device) {
482
482
  async function getInAndOutEvents (devices, route, userData) {
483
483
  const events = []
484
484
  const geofencesFeatures = userData.geofences.map(g => convertToFeature(g))
485
- console.log('getInAndOutEvents', devices.length)
485
+ console.log('getInAndOutEvents', devices)
486
486
  devices.forEach(d => {
487
487
  const deviceRoute = route.filter(p => p.deviceId === d.id)
488
488
  const routePoints = deviceRoute.sort(sortPositions).map(p => convertPositionToFeature(p))