@twreporter/redux
Advanced tools
Comparing version 5.0.0-beta.11 to 5.0.0-beta.12
@@ -101,7 +101,11 @@ "use strict"; | ||
var httpClientWithToken = _ref2.httpClientWithToken; | ||
var url = (0, _url.formURL)("/v1/users/".concat(userID, "/bookmarks"), { | ||
var state = getState(); | ||
var apiOrigin = _.get(state, [_reduxStateFieldNames["default"].origins, 'api']); | ||
var url = (0, _url.formURL)(apiOrigin, "/v1/users/".concat(userID, "/bookmarks"), { | ||
offset: offset, | ||
limit: limit, | ||
sort: sort | ||
}, undefined, false); | ||
}, false); | ||
var axiosConfig = { | ||
@@ -144,5 +148,9 @@ timeout: apiTimeout, | ||
var httpClientWithToken = _ref3.httpClientWithToken; | ||
var url = (0, _url.formURL)("/v1/users/".concat(userID, "/bookmarks/").concat(bookmarkSlug), { | ||
var state = getState(); | ||
var apiOrigin = _.get(state, [_reduxStateFieldNames["default"].origins, 'api']); | ||
var url = (0, _url.formURL)(apiOrigin, "/v1/users/".concat(userID, "/bookmarks/").concat(bookmarkSlug), { | ||
host: bookmarkHost | ||
}, undefined, false); | ||
}, false); | ||
var axiosConfig = { | ||
@@ -185,3 +193,7 @@ timeout: apiTimeout, | ||
var httpClientWithToken = _ref4.httpClientWithToken; | ||
var url = (0, _url.formURL)("/v1/users/".concat(userID, "/bookmarks/").concat(bookmarkID), {}, undefined, false); | ||
var state = getState(); | ||
var apiOrigin = _.get(state, [_reduxStateFieldNames["default"].origins, 'api']); | ||
var url = (0, _url.formURL)(apiOrigin, "/v1/users/".concat(userID, "/bookmarks/").concat(bookmarkID), {}, false); | ||
var axiosConfig = { | ||
@@ -188,0 +200,0 @@ timeout: apiTimeout, |
@@ -22,3 +22,3 @@ "use strict"; | ||
actionType: '', | ||
debugDetails: null, | ||
lastAction: null, | ||
isAuthed: false, | ||
@@ -43,4 +43,6 @@ isRequesting: false, | ||
accessToken: initState.accessToken, | ||
actionType: action.type, | ||
debugDetails: action.payload, | ||
lastAction: { | ||
type: action.type, | ||
payload: action.payload | ||
}, | ||
isAuthed: false, | ||
@@ -56,4 +58,6 @@ isRequesting: true, | ||
accessToken: initState.accessToken, | ||
actionType: action.type, | ||
debugDetails: action.payload, | ||
lastAction: { | ||
type: action.type, | ||
payload: action.payload | ||
}, | ||
isAuthed: false, | ||
@@ -73,4 +77,6 @@ isRequesting: false, | ||
accessToken: jwt, | ||
actionType: action.type, | ||
debugDetails: action.payload, | ||
lastAction: { | ||
type: action.type, | ||
payload: action.payload | ||
}, | ||
isAuthed: true, | ||
@@ -77,0 +83,0 @@ isRequesting: false, |
{ | ||
"name": "@twreporter/redux", | ||
"version": "5.0.0-beta.11", | ||
"version": "5.0.0-beta.12", | ||
"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
137936
3027