async-deco
Advanced tools
Comparing version 5.1.0 to 5.1.1
{ | ||
"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'); |
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
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
101616
530