@autofleet/node-common 1.2.6 → 1.2.8

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": "@autofleet/node-common",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "coverage": "jest --coverage --forceExit --runInBand",
package/router/index.js CHANGED
@@ -34,7 +34,7 @@ const AfRouter = (options) => {
34
34
  if (index === 0) {
35
35
  return arg;
36
36
  }
37
- return AfEntryPoint(arg);
37
+ return typeof arg === 'function' ? AfEntryPoint(arg) : arg;
38
38
  }));
39
39
  };
40
40
  return true;
package/settings/map.js CHANGED
@@ -395,4 +395,11 @@ module.exports = {
395
395
  defaultValue: 'GBP',
396
396
  context: 'ride',
397
397
  },
398
+ BUFFER: {
399
+ name: 'Buffer around a polygon of a route',
400
+ description: 'The buffer around a polygon of a route to calculate tiled from',
401
+ type: 'number',
402
+ defaultValue: 1,
403
+ context: 'matching',
404
+ },
398
405
  };