@escapenavigator/utils 1.6.20 → 1.6.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.
@@ -4,5 +4,5 @@ declare type Props = {
4
4
  increaseType: PrepaymentTypeEnum;
5
5
  sum: number;
6
6
  };
7
- export declare const getIncreaseByType: ({ increase, increaseType, sum, }: Props) => number;
7
+ export declare const getIncreaseByType: ({ increase, increaseType, sum }: Props) => number;
8
8
  export {};
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getIncreaseByType = void 0;
4
4
  const prepayment_type_enum_1 = require("@escapenavigator/types/dist/slot/enum/prepayment-type.enum");
5
- const getIncreaseByType = ({ increase, increaseType, sum, }) => {
5
+ const getIncreaseByType = ({ increase, increaseType, sum }) => {
6
6
  if (increaseType === prepayment_type_enum_1.PrepaymentTypeEnum.NO)
7
7
  return 0;
8
8
  return Math.round(increaseType === prepayment_type_enum_1.PrepaymentTypeEnum.FIXED ? increase : (sum / 100) * increase);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/utils",
3
- "version": "1.6.20",
3
+ "version": "1.6.22",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -14,7 +14,7 @@
14
14
  "test": "jest"
15
15
  },
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.6.20",
17
+ "@escapenavigator/types": "^1.6.22",
18
18
  "axios": "^0.21.4",
19
19
  "class-transformer": "^0.5.1",
20
20
  "class-validator": "^0.13.1",
@@ -55,5 +55,5 @@
55
55
  "node_modules"
56
56
  ]
57
57
  },
58
- "gitHead": "651dd276ae0ea13d191fb7aacd40854e33a95004"
58
+ "gitHead": "6d0aaab184da832fce61f4f4f2d7e9c50d0dd4c1"
59
59
  }