async-deco
Advanced tools
Comparing version 7.5.0 to 7.6.0
{ | ||
"name": "async-deco", | ||
"version": "7.5.0", | ||
"version": "7.6.0", | ||
"description": "A collection of decorators for adding features to asynchronous functions (callback or promise based).", | ||
@@ -37,3 +37,3 @@ "main": "index.js", | ||
"memoize-cache-utils": "^0.0.2", | ||
"occamsrazor-match": "^3.0.0", | ||
"occamsrazor-match": "^4.0.0", | ||
"require-all": "^2.0.0", | ||
@@ -40,0 +40,0 @@ "setimmediate": "^1.0.4", |
@@ -238,9 +238,5 @@ async-deco | ||
--------- | ||
It uses [occamsrazor-match](https://github.com/sithmel/occamsrazor-match) (or any function) to perform arguments validation. It throws an exception if the validation fail. | ||
It is available in 3 flavours, the usual callback, promise and synchronous. | ||
It uses [occamsrazor-match](https://github.com/sithmel/occamsrazor-match) to perform arguments validation on asynchronous function. It returns an exception if the validation fail. For simpler synchronous functions you can use the decorator included in occamsrazor-match. | ||
```js | ||
// var validatorDecorator = require('async-deco/promise/validator'); promise based | ||
// var validatorDecorator = require('async-deco/utils/validator'); synchronous | ||
var validatorDecorator = require('async-deco/callback/validator'); | ||
@@ -247,0 +243,0 @@ |
var defaultLogger = require('../utils/default-logger'); | ||
var ValidatorError = require('../errors/validator-error'); | ||
var ValidatorError = require('occamsrazor-match/validate-error'); | ||
var match = require('occamsrazor-match'); | ||
@@ -4,0 +4,0 @@ var and = require('occamsrazor-match/extra/and'); |
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
144524
123
3843
730
+ Addedoccamsrazor-match@4.1.1(transitive)
- Removedoccamsrazor-match@3.0.0(transitive)
Updatedoccamsrazor-match@^4.0.0