redux-paginator-immutable 17.0.3 → 17.0.16

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/lib/Info.js CHANGED
@@ -4,16 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var _words = require("./words");
8
-
9
- var _words2 = _interopRequireDefault(_words);
10
-
11
7
  var _react = require("react");
12
8
 
13
9
  var _react2 = _interopRequireDefault(_react);
14
10
 
15
11
  var _utility = require("x25/utility");
16
12
 
13
+ var _words = require("./words");
14
+
15
+ var _words2 = _interopRequireDefault(_words);
16
+
17
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
18
 
19
19
  var getNumberForm = function getNumberForm(value, one, all) {
@@ -21,7 +21,7 @@ var getNumberForm = function getNumberForm(value, one, all) {
21
21
  return "1 " + one;
22
22
  }
23
23
 
24
- return (0, _utility.numberToLocaleForm)(value) + " " + all;
24
+ return _utility.words.getNumberTense(value) + " " + all;
25
25
  };
26
26
 
27
27
  var Info = function Info(_ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redux-paginator-immutable",
3
- "version": "17.0.3",
3
+ "version": "17.0.16",
4
4
  "description": "redux-paginator-immutable helps you deal with paginated API by composing your existing reducers",
5
5
  "main": "./lib/index.js",
6
6
  "babel": {
@@ -103,6 +103,6 @@
103
103
  "redux": "^4.1.2",
104
104
  "reselect": "^4.1.5",
105
105
  "superagent": "^7.1.1",
106
- "x25": "^17.0.5"
106
+ "x25": "^17.0.16"
107
107
  }
108
108
  }
package/src/Info.jsx CHANGED
@@ -1,6 +1,5 @@
1
1
  // @flow
2
2
 
3
- import words from "./words";
4
3
 
5
4
  type InfoPropTypes = {
6
5
  shown: number;
@@ -10,14 +9,16 @@ type InfoPropTypes = {
10
9
  };
11
10
 
12
11
  import React from "react";
13
- import { numberToLocaleForm } from "x25/utility";
12
+ import { words as x25Words } from "x25/utility";
13
+
14
+ import words from "./words";
14
15
 
15
16
  const getNumberForm = (value : number, one : string, all : string) : string => {
16
17
  if (value === 1) {
17
18
  return `1 ${one}`;
18
19
  }
19
20
 
20
- return `${numberToLocaleForm(value)} ${all}`;
21
+ return `${x25Words.getNumberTense(value)} ${all}`;
21
22
  };
22
23
 
23
24
  const Info = ({ shown, total, one, all } : InfoPropTypes) => (