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

async-deco

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-deco - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

4

package.json
{
"name": "async-deco",
"version": "5.1.0",
"version": "5.1.1",
"description": "A collection of decorators for adding features to asynchronous functions (callback or promise based).",

@@ -28,3 +28,3 @@ "main": "index.js",

"husky": "^0.10.2",
"memoize-cache": "^3.0.0",
"memoize-cache": "^3.1.2",
"mocha": "^2.1.0",

@@ -31,0 +31,0 @@ "npm-release": "^1.0.0"

@@ -8,2 +8,16 @@ async-deco

Here is the list of the decorators (available for callback/promise functions):
* [Log](#log)
* [Memoize](#memoize)
* [Cache](#cache)
* [Proxy](#proxy)
* [Fallback](#fallback)
* [Fallback value](#fallback-value)
* [Fallback cache](#fallback-cache)
* [Timeout](#timeout)
* [Retry](#retry)
* [Limit](#limit)
* [Dedupe](#dedupe)
Callback and promises

@@ -297,4 +311,2 @@ =====================

logger('limit-drop', { queueSize: queues[cacheKey].length, parallel: executionNumbers[cacheKey], key: cacheKey });
It logs "limit-queue" when a function gets queued or "limit-drop" when a function gets rejected (queue full). It'll also log these data: { queueSize: number of function queued, key: cache key, parallel: number of functions currently running }

@@ -367,3 +379,3 @@

---------
Convert a callback based function to a function returning a promise. (It uses https://www.npmjs.com/package/es6-promisify)
Convert a callback based function to a function returning a promise. It is a just a reference to https://www.npmjs.com/package/es6-promisify. It is exposed here for convenience.
```js

@@ -370,0 +382,0 @@ var promisify = require('async-deco/utils/promisify');

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