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 +2 -1
- package/src/util/traccar.js +1 -0
- package/src/zone-report.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fleetmap-reports",
|
|
3
|
-
"version": "2.0.
|
|
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",
|
package/src/util/traccar.js
CHANGED
package/src/zone-report.js
CHANGED
|
@@ -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
|
|
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))
|