async-deco
Advanced tools
Comparing version 4.1.0 to 4.2.1
{ | ||
"name": "async-deco", | ||
"version": "4.1.0", | ||
"version": "4.2.1", | ||
"description": "A collection of decorators for adding features to asynchronous functions (callback or promise based).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -362,2 +362,15 @@ async-deco | ||
Decorate | ||
-------- | ||
This is a shortcut that allows to compose and decorate in a single instruction: | ||
```js | ||
var decorate = require('async-deco/utils/decorate'); | ||
var newfunc = decorate( | ||
retryDecorator(10, Error, logger), | ||
timeoutDecorator(20, logger), | ||
function (..., cb) { .... }); | ||
``` | ||
The function to decorate has to be the last argument. | ||
Examples and use cases | ||
@@ -364,0 +377,0 @@ ====================== |
@@ -121,3 +121,2 @@ var assert = require('chai').assert; | ||
}); |
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
81222
77
2160
412