x25 5.1.21 → 5.1.22

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/Header/util.js CHANGED
@@ -45,14 +45,18 @@ var getDefaultCompanyRoute = exports.getDefaultCompanyRoute = function getDefaul
45
45
  parts = modules.split(",");
46
46
 
47
47
  if (modules === "") {
48
- return "info";
48
+ return ID + "/info";
49
49
  }
50
50
 
51
51
  var _parts = _slicedToArray(parts, 1),
52
52
  first = _parts[0];
53
53
 
54
- return first + "/list";
54
+ if (first === "auto") {
55
+ return "auto/" + ID;
56
+ }
57
+
58
+ return ID + "/" + first + "/list";
55
59
  };
56
60
 
57
- return "/company/" + ID + "/" + getModule();
61
+ return "/company/" + getModule();
58
62
  };
package/Inputs/common.js CHANGED
@@ -8,19 +8,19 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = [
8
8
 
9
9
  /* eslint-disable require-unicode-regexp */
10
10
 
11
- var isFloat = function isFloat(raw) {
12
- var floatRegex = /^-?\d+(?:[.]\d*?)?$/;
13
-
14
- return floatRegex.test(raw);
15
- },
16
- floatToEnglishComma = function floatToEnglishComma(raw) {
11
+ var floatToEnglishComma = function floatToEnglishComma(raw) {
17
12
  return String(raw).replace(",", ".");
18
13
  },
19
14
  floatToLocalComma = function floatToLocalComma(raw) {
20
15
  return String(raw).replace(".", ",");
21
16
  };
22
17
 
23
- var getFloatValueToStore = exports.getFloatValueToStore = function getFloatValueToStore(raw) {
18
+ var isFloat = exports.isFloat = function isFloat(raw) {
19
+ var floatRegex = /^-?\d+(?:[.]\d*?)?$/;
20
+
21
+ return floatRegex.test(raw);
22
+ },
23
+ getFloatValueToStore = exports.getFloatValueToStore = function getFloatValueToStore(raw) {
24
24
  var parsedFloat = floatToEnglishComma(raw),
25
25
  parsedValue = parseFloat(parsedFloat),
26
26
  canGetNumericValue = isFloat(parsedFloat) && !isNaN(parsedValue);
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.1.21",
2
+ "version": "5.1.22",
3
3
  "name": "x25",
4
4
  "description": "x25",
5
5
  "scripts": {