redux-paginator-immutable 17.0.3 → 17.0.4

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,10 +4,6 @@ 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);
@@ -21,7 +17,7 @@ var getNumberForm = function getNumberForm(value, one, all) {
21
17
  return "1 " + one;
22
18
  }
23
19
 
24
- return (0, _utility.numberToLocaleForm)(value) + " " + all;
20
+ return _utility.words.getNumberTense(value) + " " + all;
25
21
  };
26
22
 
27
23
  var Info = function Info(_ref) {
@@ -32,8 +28,8 @@ var Info = function Info(_ref) {
32
28
  return _react2.default.createElement(
33
29
  "div",
34
30
  { className: "text-muted" },
35
- _words2.default.Showing + " ",
36
- shown === total ? _words2.default.All + " - " : shown + " " + _words2.default.Of,
31
+ _utility.words.Showing + " ",
32
+ shown === total ? _utility.words.All + " - " : shown + " " + _utility.words.Of,
37
33
  " " + getNumberForm(total, one, all)
38
34
  );
39
35
  };
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.4",
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.15"
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,14 @@ type InfoPropTypes = {
10
9
  };
11
10
 
12
11
  import React from "react";
13
- import { numberToLocaleForm } from "x25/utility";
12
+ import { words } from "x25/utility";
14
13
 
15
14
  const getNumberForm = (value : number, one : string, all : string) : string => {
16
15
  if (value === 1) {
17
16
  return `1 ${one}`;
18
17
  }
19
18
 
20
- return `${numberToLocaleForm(value)} ${all}`;
19
+ return `${words.getNumberTense(value)} ${all}`;
21
20
  };
22
21
 
23
22
  const Info = ({ shown, total, one, all } : InfoPropTypes) => (