Created
July 17, 2018 00:09
-
-
Save knowthen/58aef23559228108113e05d37f229eb5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({5:[function(require,module,exports) { | |
var t,e,n=module.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function u(t){if(e===clearTimeout)return clearTimeout(t);if((e===o||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{return e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{e="function"==typeof clearTimeout?clearTimeout:o}catch(t){e=o}}();var c,s=[],l=!1,a=-1;function f(){l&&c&&(l=!1,c.length?s=c.concat(s):a=-1,s.length&&h())}function h(){if(!l){var t=i(f);l=!0;for(var e=s.length;e;){for(c=s,s=[];++a<e;)c&&c[a].run();a=-1,e=s.length}c=null,l=!1,u(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new m(t,e)),1!==s.length||l||i(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}; | |
},{}],3:[function(require,module,exports) { | |
var process = require("process"); | |
var e=require("process");function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r,n=function(){function e(r,n){if(t(this,e),"function"!=typeof r)throw new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but got: "+r+".");this._batchLoadFn=r,this._options=n,this._promiseCache=s(n),this._queue=[]}return e.prototype.load=function(e){var t=this;if(null==e)throw new TypeError("The loader.load() function must be called with a value,but got: "+String(e)+".");var r=this._options,n=!r||!1!==r.batch,a=!r||!1!==r.cache,c=r&&r.cacheKeyFn,s=c?c(e):e;if(a){var u=this._promiseCache.get(s);if(u)return u}var h=new Promise(function(r,a){t._queue.push({key:e,resolve:r,reject:a}),1===t._queue.length&&(n?o(function(){return i(t)}):i(t))});return a&&this._promiseCache.set(s,h),h},e.prototype.loadMany=function(e){var t=this;if(!Array.isArray(e))throw new TypeError("The loader.loadMany() function must be called with Array<key> but got: "+e+".");return Promise.all(e.map(function(e){return t.load(e)}))},e.prototype.clear=function(e){var t=this._options&&this._options.cacheKeyFn,r=t?t(e):e;return this._promiseCache.delete(r),this},e.prototype.clearAll=function(){return this._promiseCache.clear(),this},e.prototype.prime=function(e,t){var r=this._options&&this._options.cacheKeyFn,n=r?r(e):e;if(void 0===this._promiseCache.get(n)){var o=t instanceof Error?Promise.reject(t):Promise.resolve(t);this._promiseCache.set(n,o)}return this},e}(),o="object"==typeof e&&"function"==typeof e.nextTick?function(t){r||(r=Promise.resolve()),r.then(function(){return e.nextTick(t)})}:setImmediate||setTimeout;function i(e){var t=e._queue;e._queue=[];var r=e._options&&e._options.maxBatchSize;if(r&&r>0&&r<t.length)for(var n=0;n<t.length/r;n++)a(e,t.slice(n*r,(n+1)*r));else a(e,t)}function a(e,t){var r=t.map(function(e){return e.key}),n=(0,e._batchLoadFn)(r);if(!n||"function"!=typeof n.then)return c(e,t,new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise: "+String(n)+"."));n.then(function(e){if(!Array.isArray(e))throw new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array: "+String(e)+".");if(e.length!==r.length)throw new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys.\n\nKeys:\n"+String(r)+"\n\nValues:\n"+String(e));t.forEach(function(t,r){var n=t.resolve,o=t.reject,i=e[r];i instanceof Error?o(i):n(i)})}).catch(function(r){return c(e,t,r)})}function c(e,t,r){t.forEach(function(t){var n=t.key,o=t.reject;e.clear(n),o(r)})}function s(e){var t=e&&e.cacheMap;if(!t)return new Map;var r=["get","set","delete","clear"].filter(function(e){return t&&"function"!=typeof t[e]});if(0!==r.length)throw new TypeError("Custom cacheMap missing methods: "+r.join(", "));return t}module.exports=n; | |
},{"process":5}],1:[function(require,module,exports) { | |
var a=require("dataloader");window.Dataloader=a; | |
},{"dataloader":3}]},{},[1], null) | |
//# sourceMappingURL=/index.map |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment