@twreporter/redux 8.3.4 → 8.4.0-rc.0

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.
@@ -33,7 +33,8 @@ var initState = {
33
33
  maillist: [],
34
34
  agreeDataCollection: true,
35
35
  readPostsCount: 0,
36
- readPostsSec: 0
36
+ readPostsSec: 0,
37
+ isPeriodicPatron: false
37
38
  };
38
39
  function user() {
39
40
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initState;
@@ -61,6 +62,7 @@ function user() {
61
62
  var agreeDataCollection = _.get(payload, 'data.data.agree_data_collection');
62
63
  var readPostsCount = _.get(payload, 'data.data.read_posts_count');
63
64
  var readPostsSec = _.get(payload, 'data.data.read_posts_sec');
65
+ var isPeriodicPatron = _.get(payload, 'data.data.is_periodic_patron');
64
66
  return _objectSpread(_objectSpread({}, state), {}, {
65
67
  error: null,
66
68
  isFetching: false,
@@ -76,7 +78,8 @@ function user() {
76
78
  maillist: maillist,
77
79
  agreeDataCollection: agreeDataCollection,
78
80
  readPostsCount: readPostsCount,
79
- readPostsSec: readPostsSec
81
+ readPostsSec: readPostsSec,
82
+ isPeriodicPatron: isPeriodicPatron
80
83
  });
81
84
  }
82
85
  case _actionTypes["default"].user.read.failure:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twreporter/redux",
3
- "version": "8.3.4",
3
+ "version": "8.4.0-rc.0",
4
4
  "description": "redux actions and reducers for twreporter website",
5
5
  "repository": "https://github.com/twreporter/twreporter-npm-packages.git",
6
6
  "author": "twreporter <developer@twreporter.org>",
@@ -26,7 +26,7 @@
26
26
  "homepage": "https://github.com/twreporter/twreporter-redux/#readme",
27
27
  "dependencies": {
28
28
  "@reduxjs/toolkit": "^2.2.5",
29
- "@twreporter/core": "^1.25.0",
29
+ "@twreporter/core": "^1.26.0-rc.0",
30
30
  "axios": "^0.19.0",
31
31
  "es6-error": "^4.0.2",
32
32
  "humps": "^0.6.0",
@@ -46,5 +46,5 @@
46
46
  "files": [
47
47
  "lib"
48
48
  ],
49
- "gitHead": "9f07f03e73804fdfed6ec077ce352cb4db791a84"
49
+ "gitHead": "666a7b9c16a5e8ba895e1a722598359b69909d6c"
50
50
  }