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

async-compat

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-compat - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

4

package.json
{
"name": "async-compat",
"version": "1.4.0",
"version": "1.4.1",
"description": "Compatibility functions for writing libraries that support synchronous, callback and promise signatures",

@@ -42,4 +42,4 @@ "main": "index.js",

"mocha": "^7.1.1",
"prettier": "^2.0.2"
"prettier": "^2.0.4"
}
}

@@ -19,3 +19,3 @@ ## async-compat

compat.asyncFunction(fn, false /* no callback */, 1, function (err, result) {
compat.asyncFunction(fn, false /* no callbacks */, 1, function (err, result) {
assert.ok(!err);

@@ -30,3 +30,3 @@ assert.equal(result, 4);

compat.asyncFunction(errorFn, false /* no callback */, 1, function (err, result) {
compat.asyncFunction(errorFn, false /* no callbacks */, 1, function (err, result) {
assert.ok(!!err);

@@ -43,3 +43,3 @@ });

compat.asyncFunction(callbackFn, true /* use callback */, 1, function (err, result) {
compat.asyncFunction(callbackFn, true /* no callbacks */, 1, function (err, result) {
assert.ok(!err);

@@ -54,3 +54,3 @@ assert.equal(result, 4);

compat.asyncFunction(errorCallbackFn, true /* use callback */, 1, function (err, result) {
compat.asyncFunction(errorCallbackFn, true /* no callbacks */, 1, function (err, result) {
assert.ok(!!err);

@@ -67,3 +67,3 @@ });

compat.asyncFunction(promiseFn, false /* no callback */, 1, function (err, result) {
compat.asyncFunction(promiseFn, false /* no callbacks */, 1, function (err, result) {
assert.ok(!err);

@@ -78,5 +78,5 @@ assert.equal(result, 4);

compat.errorPromiseFn(promiseFn, false /* no callback */, 1, function (err, result) {
compat.errorPromiseFn(promiseFn, false /* no callbacks */, 1, function (err, result) {
assert.ok(!!err);
});
```
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