Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

async-promise-queue

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-promise-queue - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

index.js
'use strict';
var debug = require('debug')('async-promise-queue:');
// helper function that promisifies the queue
module.exports = function queue(worker, work, concurrency) {
debug('started, with concurrency=' + concurrency)
return new Promise(function(resolve, reject) {

@@ -6,0 +8,0 @@ var q = require('async').queue(worker, concurrency);

8

package.json
{
"dependencies": {
"async": "^2.4.1"
"async": "^2.4.1",
"debug": "^2.6.8"
},
"name": "async-promise-queue",
"version": "1.0.3",
"version": "1.0.4",
"description": "wrapper around async.queue to make some common usages simpler",

@@ -13,3 +14,4 @@ "main": "index.js",

"scripts": {
"test": "mocha test"
"test": "mocha test",
"test:debug": "mocha debug test"
},

@@ -16,0 +18,0 @@ "devDependencies": {

@@ -24,2 +24,10 @@ # async-promise-queue

### Debug logging
```
DEBUG="async-promise-queue*" node <your program>
```
And you will be informed when a queue is used, and what its concurrency becomes (note: we can always add more logging, submit your ideas as pull requests!)
## Example

@@ -26,0 +34,0 @@

Sorry, the diff of this file is not supported yet

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