Skip to content

Commit 8421622

Browse files
committedSep 14, 2020
Update dependencies
1 parent 0601800 commit 8421622

File tree

4 files changed

+600
-323
lines changed

4 files changed

+600
-323
lines changed
 

‎CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
### 1.1.2
4+
- Update dependencies
5+
36
### 1.1.1
47
- remove console.log
58

‎lib/redux-sagas-injector.js

+31-34
Original file line numberDiff line numberDiff line change
@@ -48,43 +48,40 @@ var original_store = {};
4848

4949
function createAbortableSaga(key, saga) {
5050
if (process.env.NODE_ENV === 'development') {
51-
return (
52-
/*#__PURE__*/
53-
_regenerator["default"].mark(function main() {
54-
var sagaTask, _ref, payload;
55-
56-
return _regenerator["default"].wrap(function main$(_context) {
57-
while (1) {
58-
switch (_context.prev = _context.next) {
59-
case 0:
60-
_context.next = 2;
61-
return (0, _effects.fork)(saga);
62-
63-
case 2:
64-
sagaTask = _context.sent;
65-
_context.next = 5;
66-
return (0, _effects.take)(CANCEL_SAGAS_HMR);
67-
68-
case 5:
69-
_ref = _context.sent;
70-
payload = _ref.payload;
71-
72-
if (!(payload === key)) {
73-
_context.next = 10;
74-
break;
75-
}
76-
51+
return /*#__PURE__*/_regenerator["default"].mark(function main() {
52+
var sagaTask, _yield$take, payload;
53+
54+
return _regenerator["default"].wrap(function main$(_context) {
55+
while (1) {
56+
switch (_context.prev = _context.next) {
57+
case 0:
58+
_context.next = 2;
59+
return (0, _effects.fork)(saga);
60+
61+
case 2:
62+
sagaTask = _context.sent;
63+
_context.next = 5;
64+
return (0, _effects.take)(CANCEL_SAGAS_HMR);
65+
66+
case 5:
67+
_yield$take = _context.sent;
68+
payload = _yield$take.payload;
69+
70+
if (!(payload === key)) {
7771
_context.next = 10;
78-
return (0, _effects.cancel)(sagaTask);
72+
break;
73+
}
74+
75+
_context.next = 10;
76+
return (0, _effects.cancel)(sagaTask);
7977

80-
case 10:
81-
case "end":
82-
return _context.stop();
83-
}
78+
case 10:
79+
case "end":
80+
return _context.stop();
8481
}
85-
}, main);
86-
})
87-
);
82+
}
83+
}, main);
84+
});
8885
} else {
8986
return saga;
9087
}

‎package-lock.json

+564-287
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-sagas-injector",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Allows dynamically injecting sagas into a redux store at runtime. Support HMR and SSR.",
55
"main": "lib/redux-sagas-injector.js",
66
"scripts": {
@@ -50,7 +50,7 @@
5050
},
5151
"dependencies": {
5252
"redux": "4.0.4",
53-
"redux-reducers-injector": "0.3.0",
53+
"redux-reducers-injector": "0.3.1",
5454
"redux-saga": "1.1.1"
5555
}
5656
}

0 commit comments

Comments
 (0)
Please sign in to comment.