@dillonkearns/elm-graphql
Version:
<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">
3 lines (2 loc) • 900 B
JavaScript
;function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),utilsComposite=require("@jumpn/utils-composite"),_this$1=void 0,find=function(e,t,i){return _newArrowCheck(this,_this$1),e.find(utilsComposite.hasIn([t],i))}.bind(void 0),_this=void 0,createEventHandler=function(e,t){return _newArrowCheck(this,_this),function(i){return _newArrowCheck(this,_this),function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];_newArrowCheck(this,_this);var s=find(e.notifiers,"request",t);s&&i.apply(void 0,[e,s].concat(n))}.bind(this)}.bind(this)}.bind(void 0),createPushHandler=function(e,t,i){return _newArrowCheck(this,_this),utilsComposite.map(createEventHandler(t,i),e)}.bind(void 0);module.exports=createPushHandler;
//# sourceMappingURL=createPushHandler.js.map