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 7.5.0 to 7.6.0

4

package.json
{
"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');

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