fleetmap-reports 2.0.25 → 2.0.27

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/lang/enGB.js CHANGED
@@ -161,6 +161,8 @@ module.exports = {
161
161
  delete_geofence: 'Delete'
162
162
  },
163
163
  report: {
164
+ distanceIn: 'Kms inside',
165
+ distanceOut: 'Kms outside',
164
166
  closed: 'Door Closed',
165
167
  opened: 'Door Opened',
166
168
  sun: 'Sun',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "2.0.25",
3
+ "version": "2.0.27",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -366,6 +366,10 @@ async function invokeValhalla (route, i, chunk, country, threshold, results, ret
366
366
  } catch (e) {
367
367
  countError++
368
368
  if (--retry) {
369
+ if (e.error_code === 444) {
370
+ console.warn(e.error)
371
+ return
372
+ }
369
373
  console.error('retry', retry, e.message, (e.response && e.response.data) || url, 'deviceId',
370
374
  slice[0] && slice[0].deviceId, slice[0] && slice[0].address, slice[0] && slice[0].fixTime, country, 'chunk', chunk,
371
375
  'success', countSuccess, 'error', countError, lastSuccessDuration)