fleetmap-reports 1.0.267 → 1.0.268

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,11 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="eb665c86-c893-4333-bd2a-721dc27980b9" name="Changes" comment="check if weekDays parameter is set">
4
+ <list default="true" id="eb665c86-c893-4333-bd2a-721dc27980b9" name="Changes" comment="fix trip report">
5
5
  <change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
6
6
  <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
7
7
  <change beforePath="$PROJECT_DIR$/src/index.test.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.test.js" afterDir="false" />
8
- <change beforePath="$PROJECT_DIR$/src/trip-report.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/trip-report.js" afterDir="false" />
8
+ <change beforePath="$PROJECT_DIR$/src/speeding-report.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/speeding-report.js" afterDir="false" />
9
9
  </list>
10
10
  <option name="SHOW_DIALOG" value="false" />
11
11
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -225,7 +225,8 @@
225
225
  <workItem from="1641509412324" duration="41000" />
226
226
  <workItem from="1641510744190" duration="1404000" />
227
227
  <workItem from="1641526151665" duration="1679000" />
228
- <workItem from="1641640203903" duration="3434000" />
228
+ <workItem from="1641640203903" duration="5320000" />
229
+ <workItem from="1641740608739" duration="552000" />
229
230
  </task>
230
231
  <task id="LOCAL-00001" summary="Fix getStyle">
231
232
  <created>1636983717385</created>
@@ -395,7 +396,14 @@
395
396
  <option name="project" value="LOCAL" />
396
397
  <updated>1641527800170</updated>
397
398
  </task>
398
- <option name="localTasksCounter" value="25" />
399
+ <task id="LOCAL-00025" summary="fix trip report">
400
+ <created>1641664506677</created>
401
+ <option name="number" value="00025" />
402
+ <option name="presentableId" value="LOCAL-00025" />
403
+ <option name="project" value="LOCAL" />
404
+ <updated>1641664506679</updated>
405
+ </task>
406
+ <option name="localTasksCounter" value="26" />
399
407
  <servers />
400
408
  </component>
401
409
  <component name="TypeScriptGeneratedFilesManager">
@@ -448,6 +456,7 @@
448
456
  <MESSAGE value="fix kms-report by driver and fix activity report with time period" />
449
457
  <MESSAGE value="Refactor trip and speeding reports" />
450
458
  <MESSAGE value="check if weekDays parameter is set" />
451
- <option name="LAST_COMMIT_MESSAGE" value="check if weekDays parameter is set" />
459
+ <MESSAGE value="fix trip report" />
460
+ <option name="LAST_COMMIT_MESSAGE" value="fix trip report" />
452
461
  </component>
453
462
  </project>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "1.0.267",
3
+ "version": "1.0.268",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -195,12 +195,10 @@ async function findEventsPosition(from, to, devices, events, routes){
195
195
  }
196
196
  }
197
197
 
198
- if(!a.position) {
199
- a.position = positions[pIndex]
200
- pIndex = calculateEventData(positions, pIndex, a, d, geofence)
198
+ a.position = positions[pIndex]
199
+ pIndex = calculateEventData(positions, pIndex, a, d, geofence)
201
200
 
202
- positions.slice(pIndex)
203
- }
201
+ positions.slice(pIndex)
204
202
  }
205
203
  }
206
204
  }
@@ -238,7 +236,7 @@ async function getCustomSpeedLimitEvents(devices, routes){
238
236
  }
239
237
 
240
238
  async function getHereEvents(devices, routes){
241
- console.log('calculate custom speed limit events')
239
+ console.log('calculate here speed limit events')
242
240
  const events = []
243
241
  for (const d of devices) {
244
242
  const positions = routes.filter(p => p.deviceId === d.id)