Socket
Socket
Sign inDemoInstall

limited-request-queue

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

limited-request-queue - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

9

lib/getHostKey.js
"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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc