@vve/redux-saga 8.4.0 → 9.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/es/effects.js +3 -2
  2. package/es/effects.js.map +1 -0
  3. package/es/index.js +11 -10
  4. package/es/index.js.map +1 -0
  5. package/es/internal/buffers.js +21 -45
  6. package/es/internal/buffers.js.map +1 -0
  7. package/es/internal/channel.js +36 -87
  8. package/es/internal/channel.js.map +1 -0
  9. package/es/internal/channels-trans-table.png +0 -0
  10. package/es/internal/convenient-io.js +6 -19
  11. package/es/internal/convenient-io.js.map +1 -0
  12. package/es/internal/io-helpers.js +7 -9
  13. package/es/internal/io-helpers.js.map +1 -0
  14. package/es/internal/io.js +70 -113
  15. package/es/internal/io.js.map +1 -0
  16. package/es/internal/middleware.js +42 -45
  17. package/es/internal/middleware.js.map +1 -0
  18. package/es/internal/proc.js +188 -358
  19. package/es/internal/proc.js.map +1 -0
  20. package/es/internal/runSaga.js +20 -27
  21. package/es/internal/runSaga.js.map +1 -0
  22. package/es/internal/sagaHelpers/fsmIterator.js +13 -22
  23. package/es/internal/sagaHelpers/fsmIterator.js.map +1 -0
  24. package/es/internal/sagaHelpers/index.js +12 -13
  25. package/es/internal/sagaHelpers/index.js.map +1 -0
  26. package/es/internal/sagaHelpers/takeEvery.js +13 -20
  27. package/es/internal/sagaHelpers/takeEvery.js.map +1 -0
  28. package/es/internal/sagaHelpers/takeLatest.js +19 -33
  29. package/es/internal/sagaHelpers/takeLatest.js.map +1 -0
  30. package/es/internal/sagaHelpers/throttle.js +22 -36
  31. package/es/internal/sagaHelpers/throttle.js.map +1 -0
  32. package/es/internal/scheduler.js +7 -11
  33. package/es/internal/scheduler.js.map +1 -0
  34. package/es/internal/utils.js +101 -205
  35. package/es/internal/utils.js.map +1 -0
  36. package/es/utils.js +5 -4
  37. package/es/utils.js.map +1 -0
  38. package/lib/effects.js +138 -30
  39. package/lib/effects.js.map +1 -0
  40. package/lib/index.js +86 -48
  41. package/lib/index.js.map +1 -0
  42. package/lib/internal/buffers.js +24 -48
  43. package/lib/internal/buffers.js.map +1 -0
  44. package/lib/internal/channel.js +43 -100
  45. package/lib/internal/channel.js.map +1 -0
  46. package/lib/internal/channels-trans-table.png +0 -0
  47. package/lib/internal/convenient-io.js +10 -23
  48. package/lib/internal/convenient-io.js.map +1 -0
  49. package/lib/internal/io-helpers.js +10 -15
  50. package/lib/internal/io-helpers.js.map +1 -0
  51. package/lib/internal/io.js +89 -149
  52. package/lib/internal/io.js.map +1 -0
  53. package/lib/internal/middleware.js +46 -51
  54. package/lib/internal/middleware.js.map +1 -0
  55. package/lib/internal/proc.js +194 -372
  56. package/lib/internal/proc.js.map +1 -0
  57. package/lib/internal/runSaga.js +25 -35
  58. package/lib/internal/runSaga.js.map +1 -0
  59. package/lib/internal/sagaHelpers/fsmIterator.js +19 -29
  60. package/lib/internal/sagaHelpers/fsmIterator.js.map +1 -0
  61. package/lib/internal/sagaHelpers/index.js +37 -27
  62. package/lib/internal/sagaHelpers/index.js.map +1 -0
  63. package/lib/internal/sagaHelpers/takeEvery.js +19 -31
  64. package/lib/internal/sagaHelpers/takeEvery.js.map +1 -0
  65. package/lib/internal/sagaHelpers/takeLatest.js +25 -44
  66. package/lib/internal/sagaHelpers/takeLatest.js.map +1 -0
  67. package/lib/internal/sagaHelpers/throttle.js +28 -49
  68. package/lib/internal/sagaHelpers/throttle.js.map +1 -0
  69. package/lib/internal/scheduler.js +11 -15
  70. package/lib/internal/scheduler.js.map +1 -0
  71. package/lib/internal/utils.js +119 -247
  72. package/lib/internal/utils.js.map +1 -0
  73. package/lib/utils.js +69 -22
  74. package/lib/utils.js.map +1 -0
  75. package/package.json +19 -18
@@ -1,25 +1,16 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
- export var sym = function sym(id) {
4
- return "@@redux-saga/" + id;
5
- };
6
- export var TASK = /*#__PURE__*/sym('TASK');
7
- export var HELPER = /*#__PURE__*/sym('HELPER');
8
- export var MATCH = /*#__PURE__*/sym('MATCH');
9
- export var CANCEL = /*#__PURE__*/sym('CANCEL_PROMISE');
10
- export var SAGA_ACTION = /*#__PURE__*/sym('SAGA_ACTION');
11
- export var SELF_CANCELLATION = /*#__PURE__*/sym('SELF_CANCELLATION');
12
- export var konst = function konst(v) {
13
- return function () {
14
- return v;
15
- };
16
- };
17
- export var kTrue = /*#__PURE__*/konst(true);
18
- export var kFalse = /*#__PURE__*/konst(false);
19
- export var noop = function noop() {};
20
- export var ident = function ident(v) {
21
- return v;
22
- };
1
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
+ export var sym = id => `@@redux-saga/${id}`;
3
+ export var TASK = sym('TASK');
4
+ export var HELPER = sym('HELPER');
5
+ export var MATCH = sym('MATCH');
6
+ export var CANCEL = sym('CANCEL_PROMISE');
7
+ export var SAGA_ACTION = sym('SAGA_ACTION');
8
+ export var SELF_CANCELLATION = sym('SELF_CANCELLATION');
9
+ export var konst = v => () => v;
10
+ export var kTrue = konst(true);
11
+ export var kFalse = konst(false);
12
+ export var noop = () => {};
13
+ export var ident = v => v;
23
14
  export function check(value, predicate, error) {
24
15
  if (!predicate(value)) {
25
16
  log('error', 'uncaught at check', error);
@@ -31,58 +22,26 @@ export function hasOwn(object, property) {
31
22
  return is.notUndef(object) && hasOwnProperty.call(object, property);
32
23
  }
33
24
  export var is = {
34
- undef: function undef(v) {
35
- return v === null || v === undefined;
36
- },
37
- notUndef: function notUndef(v) {
38
- return v !== null && v !== undefined;
39
- },
40
- func: function func(f) {
41
- return typeof f === 'function';
42
- },
43
- number: function number(n) {
44
- return typeof n === 'number';
45
- },
46
- string: function string(s) {
47
- return typeof s === 'string';
48
- },
25
+ undef: v => v === null || v === undefined,
26
+ notUndef: v => v !== null && v !== undefined,
27
+ func: f => typeof f === 'function',
28
+ number: n => typeof n === 'number',
29
+ string: s => typeof s === 'string',
49
30
  array: Array.isArray,
50
- object: function object(obj) {
51
- return obj && !is.array(obj) && typeof obj === 'object';
52
- },
53
- promise: function promise(p) {
54
- return p && is.func(p.then);
55
- },
56
- iterator: function iterator(it) {
57
- return it && is.func(it.next) && is.func(it["throw"]);
58
- },
59
- iterable: function iterable(it) {
60
- return it && is.func(Symbol) ? is.func(it[Symbol.iterator]) : is.array(it);
61
- },
62
- task: function task(t) {
63
- return t && t[TASK];
64
- },
65
- observable: function observable(ob) {
66
- return ob && is.func(ob.subscribe);
67
- },
68
- buffer: function buffer(buf) {
69
- return buf && is.func(buf.isEmpty) && is.func(buf.take) && is.func(buf.put);
70
- },
71
- pattern: function pattern(pat) {
72
- return pat && (is.string(pat) || typeof pat === 'symbol' || is.func(pat) || is.array(pat));
73
- },
74
- channel: function channel(ch) {
75
- return ch && is.func(ch.take) && is.func(ch.close);
76
- },
77
- helper: function helper(it) {
78
- return it && it[HELPER];
79
- },
80
- stringableFunc: function stringableFunc(f) {
81
- return is.func(f) && hasOwn(f, 'toString');
82
- }
31
+ object: obj => obj && !is.array(obj) && typeof obj === 'object',
32
+ promise: p => p && is.func(p.then),
33
+ iterator: it => it && is.func(it.next) && is.func(it.throw),
34
+ iterable: it => it && is.func(Symbol) ? is.func(it[Symbol.iterator]) : is.array(it),
35
+ task: t => t && t[TASK],
36
+ observable: ob => ob && is.func(ob.subscribe),
37
+ buffer: buf => buf && is.func(buf.isEmpty) && is.func(buf.take) && is.func(buf.put),
38
+ pattern: pat => pat && (is.string(pat) || typeof pat === 'symbol' || is.func(pat) || is.array(pat)),
39
+ channel: ch => ch && is.func(ch.take) && is.func(ch.close),
40
+ helper: it => it && it[HELPER],
41
+ stringableFunc: f => is.func(f) && hasOwn(f, 'toString')
83
42
  };
84
43
  export var object = {
85
- assign: function assign(target, source) {
44
+ assign(target, source) {
86
45
  for (var i in source) {
87
46
  if (hasOwn(source, i)) {
88
47
  target[i] = source[i];
@@ -92,32 +51,25 @@ export var object = {
92
51
  };
93
52
  export function remove(array, item) {
94
53
  var index = array.indexOf(item);
95
-
96
54
  if (index >= 0) {
97
55
  array.splice(index, 1);
98
56
  }
99
57
  }
100
58
  export var array = {
101
- from: function from(obj) {
59
+ from(obj) {
102
60
  var arr = Array(obj.length);
103
-
104
61
  for (var i in obj) {
105
62
  if (hasOwn(obj, i)) {
106
63
  arr[i] = obj[i];
107
64
  }
108
65
  }
109
-
110
66
  return arr;
111
67
  }
112
68
  };
113
- export function deferred(props) {
114
- if (props === void 0) {
115
- props = {};
116
- }
117
-
118
- var def = _extends({}, props);
119
-
120
- var promise = new Promise(function (resolve, reject) {
69
+ export function deferred() {
70
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
71
+ var def = _objectSpread({}, props);
72
+ var promise = new Promise((resolve, reject) => {
121
73
  def.resolve = resolve;
122
74
  def.reject = reject;
123
75
  });
@@ -126,116 +78,74 @@ export function deferred(props) {
126
78
  }
127
79
  export function arrayOfDeffered(length) {
128
80
  var arr = [];
129
-
130
81
  for (var i = 0; i < length; i++) {
131
82
  arr.push(deferred());
132
83
  }
133
-
134
84
  return arr;
135
85
  }
136
- export function delay(ms, val) {
137
- if (val === void 0) {
138
- val = true;
139
- }
140
-
86
+ export function delay(ms) {
87
+ var val = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
141
88
  var timeoutId;
142
- var promise = new Promise(function (resolve) {
143
- timeoutId = setTimeout(function () {
144
- return resolve(val);
145
- }, ms);
89
+ var promise = new Promise(resolve => {
90
+ timeoutId = setTimeout(() => resolve(val), ms);
146
91
  });
147
-
148
- promise[CANCEL] = function () {
149
- return clearTimeout(timeoutId);
150
- };
151
-
92
+ promise[CANCEL] = () => clearTimeout(timeoutId);
152
93
  return promise;
153
94
  }
154
95
  export function createMockTask() {
155
- var _ref;
156
-
157
96
  var running = true;
158
-
159
97
  var _result, _error;
160
-
161
- return _ref = {}, _ref[TASK] = true, _ref.isRunning = function isRunning() {
162
- return running;
163
- }, _ref.result = function result() {
164
- return _result;
165
- }, _ref.error = function error() {
166
- return _error;
167
- }, _ref.setRunning = function setRunning(b) {
168
- return running = b;
169
- }, _ref.setResult = function setResult(r) {
170
- return _result = r;
171
- }, _ref.setError = function setError(e) {
172
- return _error = e;
173
- }, _ref;
174
- }
175
- export function autoInc(seed) {
176
- if (seed === void 0) {
177
- seed = 0;
178
- }
179
-
180
- return function () {
181
- return ++seed;
98
+ return {
99
+ [TASK]: true,
100
+ isRunning: () => running,
101
+ result: () => _result,
102
+ error: () => _error,
103
+ setRunning: b => running = b,
104
+ setResult: r => _result = r,
105
+ setError: e => _error = e
182
106
  };
183
107
  }
184
- export var uid = /*#__PURE__*/autoInc();
185
-
186
- var kThrow = function kThrow(err) {
108
+ export function autoInc() {
109
+ var seed = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
110
+ return () => ++seed;
111
+ }
112
+ export var uid = autoInc();
113
+ var kThrow = err => {
187
114
  throw err;
188
115
  };
189
-
190
- var kReturn = function kReturn(value) {
191
- return {
192
- value: value,
193
- done: true
194
- };
195
- };
196
-
197
- export function makeIterator(next, thro, name, isHelper) {
198
- if (thro === void 0) {
199
- thro = kThrow;
200
- }
201
-
202
- if (name === void 0) {
203
- name = '';
204
- }
205
-
116
+ var kReturn = value => ({
117
+ value,
118
+ done: true
119
+ });
120
+ export function makeIterator(next) {
121
+ var thro = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : kThrow;
122
+ var name = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
123
+ var isHelper = arguments.length > 3 ? arguments[3] : undefined;
206
124
  var iterator = {
207
- name: name,
208
- next: next,
209
- "throw": thro,
210
- "return": kReturn
125
+ name,
126
+ next,
127
+ throw: thro,
128
+ return: kReturn
211
129
  };
212
-
213
130
  if (isHelper) {
214
131
  iterator[HELPER] = true;
215
132
  }
216
-
217
133
  if (typeof Symbol !== 'undefined') {
218
- iterator[Symbol.iterator] = function () {
219
- return iterator;
220
- };
134
+ iterator[Symbol.iterator] = () => iterator;
221
135
  }
222
-
223
136
  return iterator;
224
137
  }
138
+
225
139
  /**
226
140
  Print error in a useful way whether in a browser environment
227
141
  (with expandable error stack traces), or in a node.js environment
228
142
  (text-only log output)
229
143
  **/
230
-
231
- export function log(level, message, error) {
232
- if (error === void 0) {
233
- error = '';
234
- }
235
-
144
+ export function log(level, message) {
145
+ var error = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
236
146
  /*eslint-disable no-console*/
237
147
  if (typeof window === 'undefined') {
238
- console.log("redux-saga " + level + ": " + message + "\n" + (error && error.stack || error));
148
+ console.log(`redux-saga ${level}: ${message}\n${error && error.stack || error}`);
239
149
  } else {
240
150
  console[level](message, error);
241
151
  }
@@ -243,51 +153,37 @@ export function log(level, message, error) {
243
153
  export function deprecate(fn, deprecationWarning) {
244
154
  return function () {
245
155
  if (process.env.NODE_ENV === 'development') log('warn', deprecationWarning);
246
- return fn.apply(void 0, arguments);
156
+ return fn(...arguments);
247
157
  };
248
158
  }
249
- export var updateIncentive = function updateIncentive(deprecated, preferred) {
250
- return deprecated + " has been deprecated in favor of " + preferred + ", please update your code";
251
- };
252
- export var internalErr = function internalErr(err) {
253
- return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: " + err + "\n");
254
- };
255
- export var createSetContextWarning = function createSetContextWarning(ctx, props) {
256
- return (ctx ? ctx + '.' : '') + "setContext(props): argument " + props + " is not a plain object";
257
- };
258
- export var wrapSagaDispatch = function wrapSagaDispatch(dispatch) {
259
- return function (action) {
260
- return dispatch(Object.defineProperty(action, SAGA_ACTION, {
261
- value: true
262
- }));
159
+ export var updateIncentive = (deprecated, preferred) => `${deprecated} has been deprecated in favor of ${preferred}, please update your code`;
160
+ export var internalErr = err => new Error(`
161
+ redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug
162
+ in redux-saga code and not yours. Thanks for reporting this in the project's github repo.
163
+ Error: ${err}
164
+ `);
165
+ export var createSetContextWarning = (ctx, props) => `${ctx ? ctx + '.' : ''}setContext(props): argument ${props} is not a plain object`;
166
+ export var wrapSagaDispatch = dispatch => action => dispatch(Object.defineProperty(action, SAGA_ACTION, {
167
+ value: true
168
+ }));
169
+ export var cloneableGenerator = generatorFunc => function () {
170
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
171
+ args[_key] = arguments[_key];
172
+ }
173
+ var history = [];
174
+ var gen = generatorFunc(...args);
175
+ return {
176
+ next: arg => {
177
+ history.push(arg);
178
+ return gen.next(arg);
179
+ },
180
+ clone: () => {
181
+ var clonedGen = cloneableGenerator(generatorFunc)(...args);
182
+ history.forEach(arg => clonedGen.next(arg));
183
+ return clonedGen;
184
+ },
185
+ return: value => gen.return(value),
186
+ throw: exception => gen.throw(exception)
263
187
  };
264
188
  };
265
- export var cloneableGenerator = function cloneableGenerator(generatorFunc) {
266
- return function () {
267
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
268
- args[_key] = arguments[_key];
269
- }
270
-
271
- var history = [];
272
- var gen = generatorFunc.apply(void 0, args);
273
- return {
274
- next: function next(arg) {
275
- history.push(arg);
276
- return gen.next(arg);
277
- },
278
- clone: function clone() {
279
- var clonedGen = cloneableGenerator(generatorFunc).apply(void 0, args);
280
- history.forEach(function (arg) {
281
- return clonedGen.next(arg);
282
- });
283
- return clonedGen;
284
- },
285
- "return": function _return(value) {
286
- return gen["return"](value);
287
- },
288
- "throw": function _throw(exception) {
289
- return gen["throw"](exception);
290
- }
291
- };
292
- };
293
- };
189
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","names":["sym","id","TASK","HELPER","MATCH","CANCEL","SAGA_ACTION","SELF_CANCELLATION","konst","v","kTrue","kFalse","noop","ident","check","value","predicate","error","log","Error","hasOwnProperty","Object","prototype","hasOwn","object","property","is","notUndef","call","undef","undefined","func","f","number","n","string","s","array","Array","isArray","obj","promise","p","then","iterator","it","next","throw","iterable","Symbol","task","t","observable","ob","subscribe","buffer","buf","isEmpty","take","put","pattern","pat","channel","ch","close","helper","stringableFunc","assign","target","source","i","remove","item","index","indexOf","splice","from","arr","length","deferred","props","arguments","def","_objectSpread","Promise","resolve","reject","arrayOfDeffered","push","delay","ms","val","timeoutId","setTimeout","clearTimeout","createMockTask","running","result","isRunning","setRunning","b","setResult","r","setError","e","autoInc","seed","uid","kThrow","err","kReturn","done","makeIterator","thro","name","isHelper","return","level","message","window","console","stack","deprecate","fn","deprecationWarning","process","env","NODE_ENV","updateIncentive","deprecated","preferred","internalErr","createSetContextWarning","ctx","wrapSagaDispatch","dispatch","action","defineProperty","cloneableGenerator","generatorFunc","_len","args","_key","history","gen","arg","clone","clonedGen","forEach","exception"],"sources":["../../utils.js"],"sourcesContent":["export const sym = id => `@@redux-saga/${id}`\n\nexport const TASK = sym('TASK')\nexport const HELPER = sym('HELPER')\nexport const MATCH = sym('MATCH')\nexport const CANCEL = sym('CANCEL_PROMISE')\nexport const SAGA_ACTION = sym('SAGA_ACTION')\nexport const SELF_CANCELLATION = sym('SELF_CANCELLATION')\nexport const konst = v => () => v\nexport const kTrue = konst(true)\nexport const kFalse = konst(false)\nexport const noop = () => {}\nexport const ident = v => v\n\nexport function check(value, predicate, error) {\n if (!predicate(value)) {\n log('error', 'uncaught at check', error)\n throw new Error(error)\n }\n}\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty\nexport function hasOwn(object, property) {\n return is.notUndef(object) && hasOwnProperty.call(object, property)\n}\n\nexport const is = {\n undef: v => v === null || v === undefined,\n notUndef: v => v !== null && v !== undefined,\n func: f => typeof f === 'function',\n number: n => typeof n === 'number',\n string: s => typeof s === 'string',\n array: Array.isArray,\n object: obj => obj && !is.array(obj) && typeof obj === 'object',\n promise: p => p && is.func(p.then),\n iterator: it => it && is.func(it.next) && is.func(it.throw),\n iterable: it => (it && is.func(Symbol) ? is.func(it[Symbol.iterator]) : is.array(it)),\n task: t => t && t[TASK],\n observable: ob => ob && is.func(ob.subscribe),\n buffer: buf => buf && is.func(buf.isEmpty) && is.func(buf.take) && is.func(buf.put),\n pattern: pat => pat && (is.string(pat) || typeof pat === 'symbol' || is.func(pat) || is.array(pat)),\n channel: ch => ch && is.func(ch.take) && is.func(ch.close),\n helper: it => it && it[HELPER],\n stringableFunc: f => is.func(f) && hasOwn(f, 'toString'),\n}\n\nexport const object = {\n assign(target, source) {\n for (let i in source) {\n if (hasOwn(source, i)) {\n target[i] = source[i]\n }\n }\n },\n}\n\nexport function remove(array, item) {\n const index = array.indexOf(item)\n if (index >= 0) {\n array.splice(index, 1)\n }\n}\n\nexport const array = {\n from(obj) {\n const arr = Array(obj.length)\n for (let i in obj) {\n if (hasOwn(obj, i)) {\n arr[i] = obj[i]\n }\n }\n return arr\n },\n}\n\nexport function deferred(props = {}) {\n let def = { ...props }\n const promise = new Promise((resolve, reject) => {\n def.resolve = resolve\n def.reject = reject\n })\n def.promise = promise\n return def\n}\n\nexport function arrayOfDeffered(length) {\n const arr = []\n for (let i = 0; i < length; i++) {\n arr.push(deferred())\n }\n return arr\n}\n\nexport function delay(ms, val = true) {\n let timeoutId\n const promise = new Promise(resolve => {\n timeoutId = setTimeout(() => resolve(val), ms)\n })\n\n promise[CANCEL] = () => clearTimeout(timeoutId)\n\n return promise\n}\n\nexport function createMockTask() {\n let running = true\n let result, error\n\n return {\n [TASK]: true,\n isRunning: () => running,\n result: () => result,\n error: () => error,\n\n setRunning: b => (running = b),\n setResult: r => (result = r),\n setError: e => (error = e),\n }\n}\n\nexport function autoInc(seed = 0) {\n return () => ++seed\n}\n\nexport const uid = autoInc()\n\nconst kThrow = err => {\n throw err\n}\nconst kReturn = value => ({ value, done: true })\nexport function makeIterator(next, thro = kThrow, name = '', isHelper) {\n const iterator = { name, next, throw: thro, return: kReturn }\n\n if (isHelper) {\n iterator[HELPER] = true\n }\n if (typeof Symbol !== 'undefined') {\n iterator[Symbol.iterator] = () => iterator\n }\n return iterator\n}\n\n/**\n Print error in a useful way whether in a browser environment\n (with expandable error stack traces), or in a node.js environment\n (text-only log output)\n **/\nexport function log(level, message, error = '') {\n /*eslint-disable no-console*/\n if (typeof window === 'undefined') {\n console.log(`redux-saga ${level}: ${message}\\n${(error && error.stack) || error}`)\n } else {\n console[level](message, error)\n }\n}\n\nexport function deprecate(fn, deprecationWarning) {\n return (...args) => {\n if (process.env.NODE_ENV === 'development') log('warn', deprecationWarning)\n return fn(...args)\n }\n}\n\nexport const updateIncentive = (deprecated, preferred) =>\n `${deprecated} has been deprecated in favor of ${preferred}, please update your code`\n\nexport const internalErr = err =>\n new Error(\n `\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: ${err}\n`,\n )\n\nexport const createSetContextWarning = (ctx, props) =>\n `${ctx ? ctx + '.' : ''}setContext(props): argument ${props} is not a plain object`\n\nexport const wrapSagaDispatch = dispatch => action =>\n dispatch(Object.defineProperty(action, SAGA_ACTION, { value: true }))\n\nexport const cloneableGenerator = generatorFunc => (...args) => {\n const history = []\n const gen = generatorFunc(...args)\n return {\n next: arg => {\n history.push(arg)\n return gen.next(arg)\n },\n clone: () => {\n const clonedGen = cloneableGenerator(generatorFunc)(...args)\n history.forEach(arg => clonedGen.next(arg))\n return clonedGen\n },\n return: value => gen.return(value),\n throw: exception => gen.throw(exception),\n }\n}\n"],"mappings":";AAAA,OAAO,IAAMA,GAAG,GAAGC,EAAE,IAAK,gBAAeA,EAAG,EAAC;AAE7C,OAAO,IAAMC,IAAI,GAAGF,GAAG,CAAC,MAAM,CAAC;AAC/B,OAAO,IAAMG,MAAM,GAAGH,GAAG,CAAC,QAAQ,CAAC;AACnC,OAAO,IAAMI,KAAK,GAAGJ,GAAG,CAAC,OAAO,CAAC;AACjC,OAAO,IAAMK,MAAM,GAAGL,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AAM,IAChDD,QAAQ,CAAClH,MAAM,CAACoH,cAAc,CAACD,MAAM,EAAElI,WAAW,EAAE;EAAES,KAAK,EAAE;AAAK,CAAC,CAAC,CAAC;AAEvE,OAAO,IAAM2H,kBAAkB,GAAGC,aAAa,IAAI,YAAa;EAAA,SAAAC,IAAA,GAAA3D,SAAA,CAAAH,MAAA,EAAT+D,IAAI,OAAAvG,KAAA,CAAAsG,IAAA,GAAAE,IAAA,MAAAA,IAAA,GAAAF,IAAA,EAAAE,IAAA;IAAJD,IAAI,CAAAC,IAAA,IAAA7D,SAAA,CAAA6D,IAAA;EAAA;EACzD,IAAMC,OAAO,GAAG,EAAE;EAClB,IAAMC,GAAG,GAAGL,aAAa,CAAC,GAAGE,IAAI,CAAC;EAClC,OAAO;IACL/F,IAAI,EAAEmG,GAAG,IAAI;MACXF,OAAO,CAACvD,IAAI,CAACyD,GAAG,CAAC;MACjB,OAAOD,GAAG,CAAClG,IAAI,CAACmG,GAAG,CAAC;IACtB,CAAC;IACDC,KAAK,EAAEA,CAAA,KAAM;MACX,IAAMC,SAAS,GAAGT,kBAAkB,CAACC,aAAa,CAAC,CAAC,GAAGE,IAAI,CAAC;MAC5DE,OAAO,CAACK,OAAO,CAACH,GAAG,IAAIE,SAAS,CAACrG,IAAI,CAACmG,GAAG,CAAC,CAAC;MAC3C,OAAOE,SAAS;IAClB,CAAC;IACD/B,MAAM,EAAErG,KAAK,IAAIiI,GAAG,CAAC5B,MAAM,CAACrG,KAAK,CAAC;IAClCgC,KAAK,EAAEsG,SAAS,IAAIL,GAAG,CAACjG,KAAK,CAACsG,SAAS;EACzC,CAAC;AACH,CAAC"}
package/es/utils.js CHANGED
@@ -1,5 +1,6 @@
1
- export { TASK, SAGA_ACTION, noop, is, deferred, arrayOfDeffered, createMockTask, cloneableGenerator } from './internal/utils';
2
- export { asEffect } from './internal/io';
3
- export { CHANNEL_END } from './internal/proc';
1
+ export { TASK, SAGA_ACTION, noop, is, deferred, arrayOfDeffered, createMockTask, cloneableGenerator } from "./internal/utils";
2
+ export { asEffect } from "./internal/io";
3
+ export { CHANNEL_END } from "./internal/proc";
4
4
  export var pageKey = 'page';
5
- export var reducerKey = 'currentPage';
5
+ export var reducerKey = 'currentPage';
6
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","names":["TASK","SAGA_ACTION","noop","is","deferred","arrayOfDeffered","createMockTask","cloneableGenerator","asEffect","CHANNEL_END","pageKey","reducerKey"],"sources":["../utils.js"],"sourcesContent":["export {\n TASK,\n SAGA_ACTION,\n noop,\n is,\n deferred,\n arrayOfDeffered,\n createMockTask,\n cloneableGenerator,\n} from './internal/utils'\nexport { asEffect } from './internal/io'\nexport { CHANNEL_END } from './internal/proc'\n\nexport const pageKey = 'page';\nexport const reducerKey = 'currentPage';\n"],"mappings":"AAAA,SACEA,IAAI,EACJC,WAAW,EACXC,IAAI,EACJC,EAAE,EACFC,QAAQ,EACRC,eAAe,EACfC,cAAc,EACdC,kBAAkB;AAEpB,SAASC,QAAQ;AACjB,SAASC,WAAW;AAEpB,OAAO,IAAMC,OAAO,GAAG,MAAM;AAC7B,OAAO,IAAMC,UAAU,GAAG,aAAa"}
package/lib/effects.js CHANGED
@@ -1,32 +1,140 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
4
- exports.throttle = exports.takeLatest = exports.takeEvery = exports.setContext = exports.getContext = exports.flush = exports.cancelled = exports.actionChannel = exports.select = exports.cancel = exports.join = exports.spawn = exports.fork = exports.cps = exports.apply = exports.call = exports.race = exports.all = exports.putAsyncAction = exports.put = exports.takem = exports.take = void 0;
5
-
6
- var _io = /*#__PURE__*/require("./internal/io");
7
-
8
- exports.take = _io.take;
9
- exports.takem = _io.takem;
10
- exports.put = _io.put;
11
- exports.putAsyncAction = _io.putAsyncAction;
12
- exports.all = _io.all;
13
- exports.race = _io.race;
14
- exports.call = _io.call;
15
- exports.apply = _io.apply;
16
- exports.cps = _io.cps;
17
- exports.fork = _io.fork;
18
- exports.spawn = _io.spawn;
19
- exports.join = _io.join;
20
- exports.cancel = _io.cancel;
21
- exports.select = _io.select;
22
- exports.actionChannel = _io.actionChannel;
23
- exports.cancelled = _io.cancelled;
24
- exports.flush = _io.flush;
25
- exports.getContext = _io.getContext;
26
- exports.setContext = _io.setContext;
27
-
28
- var _ioHelpers = /*#__PURE__*/require("./internal/io-helpers");
29
-
30
- exports.takeEvery = _ioHelpers.takeEvery;
31
- exports.takeLatest = _ioHelpers.takeLatest;
32
- exports.throttle = _ioHelpers.throttle;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "actionChannel", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _io.actionChannel;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "all", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _io.all;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "apply", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _io.apply;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "call", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _io.call;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "cancel", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _io.cancel;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "cancelled", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _io.cancelled;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "cps", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _io.cps;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "flush", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _io.flush;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "fork", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _io.fork;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "getContext", {
61
+ enumerable: true,
62
+ get: function get() {
63
+ return _io.getContext;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "join", {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return _io.join;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "put", {
73
+ enumerable: true,
74
+ get: function get() {
75
+ return _io.put;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "putAsyncAction", {
79
+ enumerable: true,
80
+ get: function get() {
81
+ return _io.putAsyncAction;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "race", {
85
+ enumerable: true,
86
+ get: function get() {
87
+ return _io.race;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "select", {
91
+ enumerable: true,
92
+ get: function get() {
93
+ return _io.select;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "setContext", {
97
+ enumerable: true,
98
+ get: function get() {
99
+ return _io.setContext;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "spawn", {
103
+ enumerable: true,
104
+ get: function get() {
105
+ return _io.spawn;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "take", {
109
+ enumerable: true,
110
+ get: function get() {
111
+ return _io.take;
112
+ }
113
+ });
114
+ Object.defineProperty(exports, "takeEvery", {
115
+ enumerable: true,
116
+ get: function get() {
117
+ return _ioHelpers.takeEvery;
118
+ }
119
+ });
120
+ Object.defineProperty(exports, "takeLatest", {
121
+ enumerable: true,
122
+ get: function get() {
123
+ return _ioHelpers.takeLatest;
124
+ }
125
+ });
126
+ Object.defineProperty(exports, "takem", {
127
+ enumerable: true,
128
+ get: function get() {
129
+ return _io.takem;
130
+ }
131
+ });
132
+ Object.defineProperty(exports, "throttle", {
133
+ enumerable: true,
134
+ get: function get() {
135
+ return _ioHelpers.throttle;
136
+ }
137
+ });
138
+ var _io = require("./internal/io");
139
+ var _ioHelpers = require("./internal/io-helpers");
140
+ //# sourceMappingURL=effects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"effects.js","names":["_io","require","_ioHelpers"],"sources":["../effects.js"],"sourcesContent":["export {\n take,\n takem,\n put,\n putAsyncAction,\n all,\n race,\n call,\n apply,\n cps,\n fork,\n spawn,\n join,\n cancel,\n select,\n actionChannel,\n cancelled,\n flush,\n getContext,\n setContext,\n} from './internal/io'\n\nexport { takeEvery, takeLatest, throttle } from './internal/io-helpers'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AAsBA,IAAAC,UAAA,GAAAD,OAAA"}