fleetmap-reports 1.0.285 → 1.0.289

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,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="JavaScriptLibraryMappings">
4
- <file url="file://$PROJECT_DIR$" libraries="{Node.js Core}" />
4
+ <includedPredefinedLibrary name="Node.js Core" />
5
5
  </component>
6
6
  </project>
package/.idea/modules.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <project version="4">
3
3
  <component name="ProjectModuleManager">
4
4
  <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/fleetmap-reports.iml" filepath="$PROJECT_DIR$/.idea/fleetmap-reports.iml" />
5
+ <module fileurl="file://$PROJECT_DIR$/fleetmap-reports.iml" filepath="$PROJECT_DIR$/fleetmap-reports.iml" />
6
6
  </modules>
7
7
  </component>
8
8
  </project>
package/.idea/vcs.xml CHANGED
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
5
  </component>
6
6
  </project>
@@ -1,9 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="JAVA_MODULE" version="4">
2
+ <module type="WEB_MODULE" version="4">
3
3
  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
4
  <exclude-output />
5
5
  <content url="file://$MODULE_DIR$" />
6
- <orderEntry type="inheritedJdk" />
7
6
  <orderEntry type="sourceFolder" forTests="false" />
8
7
  </component>
9
8
  </module>
package/lang/enGB.js CHANGED
@@ -198,7 +198,7 @@ module.exports = {
198
198
  stopTime: 'Stop',
199
199
  distance: 'Distance',
200
200
  speed: 'Speed',
201
- roadSpeedLimit: 'Limite da estrada',
201
+ roadSpeedLimit: 'Road Speed Limit',
202
202
  overspeed: 'Alert On',
203
203
  avgSpeed: 'Avg Speed',
204
204
  maxSpeed: 'Max Speed',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "1.0.285",
3
+ "version": "1.0.289",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -237,12 +237,10 @@ async function getCustomSpeedLimitEvents(devices, routes){
237
237
  async function getHereEvents(devices, routes, threshold){
238
238
  console.log('here speed limit events')
239
239
  const events = []
240
- await Promise.all(devices.map(d =>
241
- here.routeMatch(routes.filter(p => p.deviceId === d.id)).then(r => d.results = r)
242
- ))
243
240
  for (const d of devices) {
241
+ const positions = routes.filter(p => p.deviceId === d.id)
244
242
  try {
245
- const results = d.results
243
+ const results = await here.routeMatch(positions)
246
244
  const hereAlerts = results.filter(r => r.currentSpeedKmh > (parseInt(r.speedLimit) + threshold)).map(r => {
247
245
  const position = positions.find(p => new Date(p.fixTime).getTime() === r.timestamp)
248
246
  return {
package/.idea/aws.xml DELETED
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="accountSettings">
4
- <option name="activeProfile" value="profile:default" />
5
- <option name="activeRegion" value="us-east-1" />
6
- <option name="recentlyUsedProfiles">
7
- <list>
8
- <option value="profile:default" />
9
- </list>
10
- </option>
11
- <option name="recentlyUsedRegions">
12
- <list>
13
- <option value="us-east-1" />
14
- </list>
15
- </option>
16
- </component>
17
- </project>
@@ -1,7 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <code_scheme name="Project" version="173">
3
- <ScalaCodeStyleSettings>
4
- <option name="MULTILINE_STRING_CLOSING_QUOTES_ON_NEW_LINE" value="true" />
5
- </ScalaCodeStyleSettings>
6
- </code_scheme>
7
- </component>