limited-request-queue
Advanced tools
Comparing version 3.0.0 to 3.0.1
"use strict"; | ||
var isBrowser = require("is-browser"); | ||
var isString = require("is-string"); | ||
var parseDomain,URL; | ||
var parseDomain,_require,URL; | ||
if (isBrowser === true) | ||
@@ -15,4 +16,6 @@ { | ||
{ | ||
parseDomain = require("parse-domain"); | ||
URL = require("whatwg-url").URL; | ||
// Avoid including libs with browserify | ||
_require = eval("require"); | ||
parseDomain = _require("parse-domain"); | ||
URL = _require("whatwg-url").URL; | ||
} | ||
@@ -19,0 +22,0 @@ |
{ | ||
"name": "limited-request-queue", | ||
"description": "Interactively manage concurrency for outbound requests.", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"license": "MIT", | ||
@@ -29,7 +29,7 @@ "homepage": "https://github.com/stevenvachon/limited-request-queue", | ||
"chai": "^3.5.0", | ||
"mocha": "^3.0.1", | ||
"mocha": "^3.0.2", | ||
"mocha-phantomjs": "4.1.0", | ||
"napa": "^2.3.0", | ||
"object.assign": "^4.0.4", | ||
"phantomjs-prebuilt": "^2.1.10", | ||
"phantomjs-prebuilt": "^2.1.11", | ||
"uglify-js": "^2.7.0" | ||
@@ -44,3 +44,3 @@ }, | ||
"scripts": { | ||
"browserify": "browserify lib/ --exclude parse-domain --exclude whatwg-url --standalone RequestQueue | uglifyjs --compress --mangle -o browser/requestqueue.js", | ||
"browserify": "browserify lib/ --standalone RequestQueue | uglifyjs --compress --mangle -o browser/requestqueue.js", | ||
"install": "napa", | ||
@@ -47,0 +47,0 @@ "test": "npm run test_server && npm run test_browser", |
# limited-request-queue [![NPM Version][npm-image]][npm-url] [![Bower Version][bower-image]][bower-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][david-image]][david-url] | ||
> Interactively manage concurrency for outgoing requests. | ||
> Interactively manage concurrency for outbound requests. | ||
@@ -57,7 +57,7 @@ Features: | ||
### `.enqueue(input)` | ||
Adds a URL to the queue. `input` can either be a URL `String` or an `Object`. Returns a queue ID on success or an `Error` on failure. | ||
Adds a URL to the queue. `input` can either be a URL `String` or a [`URL`](https://developer.mozilla.org/en/docs/Web/API/URL/)-compatible `Object`. Returns a queue ID on success or an `Error` on failure. | ||
If `input` is an `Object`, it will acccept the following keys: | ||
* `url`: a URL `String` or [`URL`](https://developer.mozilla.org/en/docs/Web/API/URL/)-compatible `Object`. | ||
* `url`: a URL `String` or `URL`-compatible `Object`. | ||
* `data`: additional data to be stored in the queue item. | ||
@@ -64,0 +64,0 @@ * `id`: a unique ID (`String` or `Number`). If not defined, one will be generated. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14400
287
1