diff --git a/browser/requestqueue.js b/browser/requestqueue.js index bf8f026..4190a9d 100644 --- a/browser/requestqueue.js +++ b/browser/requestqueue.js @@ -1 +1 @@ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.RequestQueue=t()}}(function(){var define,module,exports;return function t(e,i,r){function o(s,u){if(!i[s]){if(!e[s]){var c="function"==typeof require&&require;if(!u&&c)return c(s,!0);if(n)return n(s,!0);var a=new Error("Cannot find module '"+s+"'");throw a.code="MODULE_NOT_FOUND",a}var p=i[s]={exports:{}};e[s][0].call(p.exports,function(t){var i=e[s][1][t];return o(i?i:t)},p,p.exports,t,e,i,r)}return i[s].exports}for(var n="function"==typeof require&&require,s=0;s0?setTimeout(function(){t.apply(null,e)},i):t.apply(null,e))}function n(t,e){var i=e.priorityQueue.indexOf(t.id);return!(i<0)&&(e.priorityQueue.splice(i,1),!0)}function s(t,e){var i=f(t.url,e.options),r=t.id;return i===!1?new TypeError("Invalid URL"):(null==r&&(r=e.counter++),void 0!==e.items[r]?new Error("Non-unique ID"):(e.items[r]={active:!1,hostKey:i,id:r,input:t},e.priorityQueue.push(r),r))}function u(t,e){return function(){e.activeSockets--,c(t,e),a(e)}}function c(t,e){e.activeHosts[t.hostKey]--,e.activeHosts[t.hostKey]<=0&&delete e.activeHosts[t.hostKey],delete e.items[t.id],e.priorityQueue.length<=0&&e.activeSockets<=0&&(e.counter=0,o(e.handlers.end,[]))}function a(t){var e,i,r=t.options.maxSockets-t.activeSockets,s=0;if(t.paused!==!0&&!(r<=0))for(;s0&&(void 0===t.activeHosts[i.hostKey]?(t.activeHosts[i.hostKey]=1,e=!0):t.activeHosts[i.hostKey]0?setTimeout(function(){t.apply(null,e)},o):t.apply(null,e))}function r(t,e){var o=e.priorityQueue.indexOf(t.id);return!(o<0)&&(e.priorityQueue.splice(o,1),!0)}function s(t,e){var o=p(t.url,e.options),n=t.id;return o===!1?new TypeError("Invalid URL"):(null==n&&(n=e.counter++),void 0!==e.items[n]?new Error("Non-unique ID"):(e.items[n]={active:!1,hostKey:o,id:n,input:t},e.priorityQueue.push(n),n))}function u(t,e){return function(){e.activeSockets--,c(t,e),f(e)}}function c(t,e){e.activeHosts[t.hostKey]--,e.activeHosts[t.hostKey]<=0&&delete e.activeHosts[t.hostKey],delete e.items[t.id],e.priorityQueue.length<=0&&e.activeSockets<=0&&(e.counter=0,i(e.handlers.end,[]))}function f(t){var e,o,n=t.options.maxSockets-t.activeSockets,s=0;if(t.paused!==!0&&!(n<=0))for(;s0&&(void 0===t.activeHosts[o.hostKey]?(t.activeHosts[o.hostKey]=1,e=!0):t.activeHosts[o.hostKey] (https://www.svachon.com/)", "main": "lib", "repository": "stevenvachon/limited-request-queue", "dependencies": { - "is-browser": "^2.0.1", + "broquire": "^1.0.0", "is-string": "^1.0.4", "parse-domain": "~0.2.1", "whatwg-url": "^3.0.0"