// @flow
import Awral from 'awral'
/**
 * `parseJSON()` adds property "ok"
 *  that identicates that response is OK
 *
 *  This func to determinates is response from API was successful or failed
 *
 * @param  {Object} result - response from API
 * @return {Boolean} - indicates was request successful or not
 */
const check = (result: Object = {ok: false}): boolean => result.ok
const beforeCheck = a => a
const afterCheck = a => a.data
/**
  Create default Awral
  Awral is not recommended for production usage now
  But it can make your work with actions even simpler.
  NOTE:I strongly recommend you check Awral sources!
  Awral is 880B gzipped!
  {@link https://github.com/Metnew/awral}
*/
export const awral = Awral.of({check, beforeCheck, afterCheck})

@@ -25,15 +25,17 @@
 om '
+./
 awral'%0A
-
 /**%0A
@@ -432,16 +432,160 @@
  a.data%0A
+// disable dispatch of GET_LINKS_FINALLY%0Aconst finallyAction = null%0A// disable dispatch of GET_LINKS_BEFORE_PENDING%0Aconst beforePending = null%0A%0A
 /**%0A  Cr
@@ -833,16 +833,16 @@
 ral%7D%0A*/%0A
-
 export c
@@ -894,11 +894,50 @@
 terCheck
+, finally: finallyAction, beforePending
 %7D)%0A

disable "FINALLY", "BEFORE_PENDING" in awral