universal-composable
Version:
Universal composable middleware for the browser and node
1 lines • 1.47 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.composable=e():t.composable=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";var o=n(1),r=n(2);t.exports={composable:{use:o.use},Composable:r.Composable}},function(t,e,n){"use strict";var o=function t(){for(var e=[],n=function(){e=null},o=function t(o){if(e instanceof Array&&e.length>0){var r=e.shift();r&&r(o,t,n)}},r=0,u=arguments.length;r<u;r++)"function"==typeof arguments[r]&&e.push(arguments[r]);return e.length>0&&e.shift()(void 0,o,n),{use:t}};t.exports={use:o}},function(t,e,n){"use strict";function o(){var t=[],e=function e(o){if(t instanceof Array&&t.length>0){var r=t.shift();r&&r(o,e,n)}},n=function(){t=null};this.use=function(){for(var o=0,r=arguments.length;o<r;o++)"function"==typeof arguments[o]&&t.push(arguments[o]);t.length>0&&t.shift()(void 0,e,n)},this.next=e,this.abort=n}t.exports={Composable:o}}])});