@twreporter/redux
Advanced tools
Comparing version 5.0.0-beta.4 to 5.0.0-beta.5
@@ -25,6 +25,6 @@ "use strict"; | ||
var _httpProtocol = _interopRequireDefault(require("../constants/http-protocol")); | ||
var _qs = _interopRequireDefault(require("qs")); | ||
var _statusCode = _interopRequireDefault(require("../constants/status-code")); | ||
var _get = _interopRequireDefault(require("lodash/get")); | ||
@@ -40,2 +40,3 @@ | ||
}; | ||
var statusCode = _httpProtocol["default"].statusCode; | ||
@@ -77,3 +78,3 @@ function requestAuthorCollection(authorId) { | ||
var err = new Error('Bad response from API, response:' + JSON.stringify(response)); | ||
err.status = _statusCode["default"].internalServerError; | ||
err.status = statusCode.internalServerError; | ||
throw err; | ||
@@ -80,0 +81,0 @@ } |
@@ -25,6 +25,6 @@ "use strict"; | ||
var _httpProtocol = _interopRequireDefault(require("../constants/http-protocol")); | ||
var _qs = _interopRequireDefault(require("qs")); | ||
var _statusCode = _interopRequireDefault(require("../constants/status-code")); | ||
var _assign = _interopRequireDefault(require("lodash/assign")); | ||
@@ -46,2 +46,3 @@ | ||
}; | ||
var statusCode = _httpProtocol["default"].statusCode; | ||
@@ -85,3 +86,3 @@ function requestSearchAuthors() { | ||
var err = new Error('Bad response from API, response:' + JSON.stringify(response)); | ||
err.status = _statusCode["default"].internalServerError; | ||
err.status = statusCode.internalServerError; | ||
throw err; | ||
@@ -88,0 +89,0 @@ } |
@@ -11,2 +11,4 @@ "use strict"; | ||
var _apiConfig = _interopRequireDefault(require("../conf/api-config")); | ||
var _actionTypes = _interopRequireDefault(require("../constants/action-types")); | ||
@@ -33,5 +35,3 @@ | ||
}; | ||
var apiConfig = { | ||
timeout: 5000 | ||
}; | ||
var apiTimeout = _apiConfig["default"].API_TIME_OUT; | ||
var apiEndpoints = { | ||
@@ -72,3 +72,3 @@ getBookmarks: function getBookmarks(userID) { | ||
var axiosConfig = { | ||
timeout: apiConfig.timeout, | ||
timeout: apiTimeout, | ||
headers: { | ||
@@ -114,3 +114,3 @@ 'Content-Type': 'application/json', | ||
var axiosConfig = { | ||
timeout: apiConfig.timeout, | ||
timeout: apiTimeout, | ||
headers: { | ||
@@ -154,3 +154,3 @@ Authorization: "Bearer ".concat(jwt) | ||
var axiosConfig = { | ||
timeout: apiConfig.timeout, | ||
timeout: apiTimeout, | ||
headers: { | ||
@@ -193,3 +193,3 @@ Authorization: "Bearer ".concat(jwt) | ||
var axiosConfig = { | ||
timeout: apiConfig.timeout, | ||
timeout: apiTimeout, | ||
headers: { | ||
@@ -196,0 +196,0 @@ Authorization: "Bearer ".concat(jwt) |
@@ -8,2 +8,4 @@ "use strict"; | ||
var _httpProtocol = _interopRequireDefault(require("../constants/http-protocol")); | ||
var _get = _interopRequireDefault(require("lodash/get")); | ||
@@ -13,4 +15,2 @@ | ||
var _statusCode = _interopRequireDefault(require("../constants/status-code")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -22,2 +22,3 @@ | ||
}; | ||
var statusCode = _httpProtocol["default"].statusCode; | ||
@@ -30,3 +31,3 @@ function handleValidationFailureBeforeRequest(invalidFields, failActionType) { | ||
data: invalidFields, | ||
statusCode: _statusCode["default"].badRequest | ||
statusCode: statusCode.badRequest | ||
} | ||
@@ -33,0 +34,0 @@ }; |
@@ -8,2 +8,4 @@ "use strict"; | ||
var _auth = require("./auth"); | ||
var _authorArticles = require("./author-articles"); | ||
@@ -38,2 +40,3 @@ | ||
fetchTopicsOnIndexPage: _topics.fetchTopicsOnIndexPage, | ||
getAccessToken: _auth.getAccessToken, | ||
getMultipleBookmarks: _bookmarks.getMultipleBookmarks, | ||
@@ -40,0 +43,0 @@ getSingleBookmark: _bookmarks.getSingleBookmark, |
@@ -12,4 +12,4 @@ "use strict"; | ||
API_DEFAULT_VERSION: '/v1/', | ||
API_TIME_OUT: 3000 | ||
API_TIME_OUT: 5000 | ||
}; | ||
exports["default"] = _default; |
@@ -8,2 +8,6 @@ "use strict"; | ||
var _default = { | ||
REQUEST_AUTH: 'request_authorization', | ||
AUTH_SUCCESS: 'grant_authorization_success', | ||
AUTH_FAILURE: 'grant_authorization_failure', | ||
AUTH_CLEAR: 'clear_authorization', | ||
CHANGE_SELECTED_POST: 'CHANGE_SELECTED_POST', | ||
@@ -10,0 +14,0 @@ CHANGE_SELECTED_TOPIC: 'CHANGE_SELECTED_TOPIC', |
@@ -16,2 +16,4 @@ "use strict"; | ||
var _actionTypes = _interopRequireDefault(require("./constants/action-types")); | ||
var _createStore = _interopRequireDefault(require("./store/create-store")); | ||
@@ -36,6 +38,5 @@ | ||
var _default = { | ||
actions: _actions["default"], | ||
actionTypes: _actionTypes["default"], | ||
createStore: _createStore["default"], | ||
ReduxStoreProvider: _provider["default"], | ||
ReduxStoreContext: _reduxStore["default"], | ||
actions: _actions["default"], | ||
reducers: { | ||
@@ -50,2 +51,4 @@ entities: _entities["default"], | ||
reduxStateFields: _reduxStateFieldNames["default"], | ||
ReduxStoreContext: _reduxStore["default"], | ||
ReduxStoreProvider: _provider["default"], | ||
utils: { | ||
@@ -52,0 +55,0 @@ denormalizePosts: _denormalizeAsset.denormalizePosts, |
{ | ||
"name": "@twreporter/redux", | ||
"version": "5.0.0-beta.4", | ||
"version": "5.0.0-beta.5", | ||
"description": "redux actions and reducers for twreporter website", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
133076
48
2916