@8ms/helpers 1.1.12 → 1.1.13

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Map the Age Group and return the user-friendly string.
3
3
  */
4
- export declare const getAgeGroup: ({ input }: {
4
+ declare const getAgeGroup: ({ input }: {
5
5
  input: number;
6
6
  }) => string;
7
7
  export default getAgeGroup;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAgeGroup = void 0;
4
3
  var ageGroups_1 = require("./ageGroups");
5
4
  /**
6
5
  * Map the Age Group and return the user-friendly string.
@@ -13,5 +12,4 @@ var getAgeGroup = function (_a) {
13
12
  }
14
13
  return 'Undefined';
15
14
  };
16
- exports.getAgeGroup = getAgeGroup;
17
- exports.default = exports.getAgeGroup;
15
+ exports.default = getAgeGroup;
@@ -9,8 +9,8 @@ var getNumber_1 = __importDefault(require("./getNumber"));
9
9
  */
10
10
  var getDivide = function (_a) {
11
11
  var _b = _a.defaultValue, defaultValue = _b === void 0 ? 0 : _b, divisor = _a.divisor, numerator = _a.numerator;
12
- var numeratorInt = (0, getNumber_1.default)(numerator);
13
- var divisorInt = (0, getNumber_1.default)(divisor);
12
+ var numeratorInt = (0, getNumber_1.default)({ input: numerator });
13
+ var divisorInt = (0, getNumber_1.default)({ input: divisor });
14
14
  if (0 === divisorInt) {
15
15
  return defaultValue;
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"