wappsto-redux
Advanced tools
Comparing version 3.4.0 to 3.5.0
@@ -167,2 +167,4 @@ import querystring from 'query-string'; | ||
} | ||
options.controller = new AbortController(); | ||
options.signal = options.controller.signal; | ||
const response = await fetch(options.url, options); | ||
@@ -270,1 +272,7 @@ try{ | ||
} | ||
export function cancelAllRequests(){ | ||
for(let key in pendingRequestsCache){ | ||
pendingRequestsCache[key].options.controller.abort(); | ||
} | ||
} |
import './reducers'; | ||
import { REMOVE_SESSION } from './actions/session'; | ||
import { applyMiddleware, combineReducers, createStore } from 'redux'; | ||
import { cancelAllRequests } from './actions/request'; | ||
import { trigger } from './events'; | ||
@@ -21,2 +23,4 @@ import thunk from 'redux-thunk'; | ||
state = undefined; | ||
cancelAllRequests(); | ||
trigger('logout'); | ||
} | ||
@@ -23,0 +27,0 @@ return appReducer(state, action); |
import config from './config'; | ||
import configureStore from './configureStore'; | ||
import { overrideRequest } from './actions/request'; | ||
export { default as configureStore } from './configureStore'; | ||
export { overrideRequest } from './actions/request'; | ||
export { configureStore }; | ||
export { overrideRequest }; | ||
export function use(newConfig){ | ||
Object.assign(config, newConfig); | ||
} |
{ | ||
"name": "wappsto-redux", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"description": "", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/Samislx/wappsto-redux.git" | ||
"url": "git+https://github.com/Wappsto/wappsto-redux.git" | ||
}, | ||
@@ -21,5 +21,5 @@ "author": { | ||
"bugs": { | ||
"url": "https://github.com/Samislx/wappsto-redux/issues" | ||
"url": "https://github.com/Wappsto/wappsto-redux/issues" | ||
}, | ||
"homepage": "https://github.com/Samislx/wappsto-redux#readme", | ||
"homepage": "https://github.com/Wappsto/wappsto-redux#readme", | ||
"dependencies": { | ||
@@ -26,0 +26,0 @@ "deep-equal": "^2.0.3", |
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
52455
30
1363