Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@twreporter/redux

Package Overview
Dependencies
Maintainers
0
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twreporter/redux - npm Package Compare versions

Comparing version 8.1.3 to 8.2.0-rc.0

lib/actions/receipt.js

3

lib/constants/api-endpoints.js

@@ -18,3 +18,4 @@ "use strict";

postReviews: 'post_reviews',
postFollowups: 'post_followups'
postFollowups: 'post_followups',
receipt: 'donations/prime/receipt'
};

@@ -8,3 +8,2 @@ "use strict";

var _authorArticles = require("./author-articles");
var _redux = require("redux");
var _posts = require("./posts");

@@ -31,3 +30,3 @@ var _authors = require("./authors");

var _postFollowups = _interopRequireDefault(require("./post-followups"));
var _combineReducers;
var _rootReducer;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -38,3 +37,3 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }

function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
var rootReducer = (0, _redux.combineReducers)((_combineReducers = {}, _defineProperty(_combineReducers, _reduxStateFieldNames["default"].articlesByAuthor, _authorArticles.articlesByAuthor), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].auth, _auth["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].authorsList, _authors.authorsList), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].bookmarks, _bookmarks["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].bookmarkWidget, _bookmarkWidget["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].entities, _entities["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].indexPage, _indexPage["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].lists, _posts.posts), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].searchedAuthorsList, _authors.searchedAuthorsList), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].selectedPost, _posts.post), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].selectedTopic, _topics.topic), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].topicList, _topics.topics), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].relatedPostsOf, _relatedPostsOf["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].featureTopic, _featureTopic["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].entitiesForAuthors, _entitiesForAuthors["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].origins, _origins["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].settings, _settings["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].latest, _latest["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].user, _user["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].analytics, _analytics["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].footprints, _footprints["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].donationHistory, _donationHistory["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].postReviews, _postReviews["default"]), _defineProperty(_combineReducers, _reduxStateFieldNames["default"].postFollowups, _postFollowups["default"]), _combineReducers));
var rootReducer = (_rootReducer = {}, _defineProperty(_rootReducer, _reduxStateFieldNames["default"].articlesByAuthor, _authorArticles.articlesByAuthor), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].auth, _auth["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].authorsList, _authors.authorsList), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].bookmarks, _bookmarks["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].bookmarkWidget, _bookmarkWidget["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].entities, _entities["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].indexPage, _indexPage["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].lists, _posts.posts), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].searchedAuthorsList, _authors.searchedAuthorsList), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].selectedPost, _posts.post), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].selectedTopic, _topics.topic), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].topicList, _topics.topics), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].relatedPostsOf, _relatedPostsOf["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].featureTopic, _featureTopic["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].entitiesForAuthors, _entitiesForAuthors["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].origins, _origins["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].settings, _settings["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].latest, _latest["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].user, _user["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].analytics, _analytics["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].footprints, _footprints["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].donationHistory, _donationHistory["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].postReviews, _postReviews["default"]), _defineProperty(_rootReducer, _reduxStateFieldNames["default"].postFollowups, _postFollowups["default"]), _rootReducer);
var _default = exports["default"] = rootReducer;

@@ -9,5 +9,13 @@ "use strict";

var _axios = _interopRequireDefault(require("axios"));
var _receipt = _interopRequireDefault(require("../actions/receipt"));
var _reducers = _interopRequireDefault(require("../reducers"));
var _bindActionsToStore = require("./bind-actions-to-store");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } // rtk api
// reducers
/**

@@ -37,3 +45,3 @@ * Create a redux store with custom setting

var store = (0, _toolkit.configureStore)({
reducer: _reducers["default"],
reducer: _objectSpread(_objectSpread({}, _reducers["default"]), {}, _defineProperty({}, _receipt["default"].reducerPath, _receipt["default"].reducer)),
preloadedState: initialState,

@@ -47,3 +55,3 @@ middleware: function middleware(getDefaultMiddleware) {

}
});
}).concat(_receipt["default"].middleware);
},

@@ -50,0 +58,0 @@ devTools: isDev

{
"name": "@twreporter/redux",
"version": "8.1.3",
"version": "8.2.0-rc.0",
"description": "redux actions and reducers for twreporter website",

@@ -49,3 +49,3 @@ "repository": "https://github.com/twreporter/twreporter-npm-packages.git",

],
"gitHead": "53887ce91ff13e1e44f4d671ecbbccda0e9ef14f"
"gitHead": "fc644a034c34f7501acc669bcffc389e2c40ec69"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc