@autofleet/node-common 1.2.5 → 1.2.7

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.5",
3
+ "version": "1.2.7",
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
@@ -388,4 +388,11 @@ module.exports = {
388
388
  defaultValue: 180,
389
389
  context: 'ride',
390
390
  },
391
+ CURRENCY: {
392
+ name: 'Currency of ride price and fees',
393
+ description: 'Currency to calculate the ride price and fees, should be in 3 letter symbol',
394
+ type: 'string',
395
+ defaultValue: 'GBP',
396
+ context: 'ride',
397
+ },
391
398
  };