Socket
Socket
Sign inDemoInstall

is-async-function

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-async-function - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

5

CHANGELOG.md
## 1.1.3 - 2016-04-21
- Release v1.1.3 / npm@v1.1.3
- use `common-callback-names` package
- bump deps
## 1.1.2 - 2016-03-18

@@ -4,0 +9,0 @@ - Release v1.1.2 / npm@v1.1.2

9

index.js

@@ -42,9 +42,4 @@ /*!

}
var defaults = ['callback', 'callback_', 'done', 'next', 'cb']
var args = require('function-arguments')(fn)
names = require('isarray')(names) ? names : defaults
return require('arr-includes')(args, names)
names = require('isarray')(names) ? names : require('common-callback-names')
return require('arr-includes')(require('function-arguments')(fn), names)
}
{
"name": "is-async-function",
"version": "1.1.2",
"version": "1.1.3",
"description": "Is function really asynchronous function? Trying to guess that based on check if [common-callback-names][] exists as function arguments names or you can pass your custom.",

@@ -15,2 +15,3 @@ "repository": "tunnckoCore/is-async-function",

"arr-includes": "^1.0.0",
"common-callback-names": "^1.0.2",
"function-arguments": "^1.0.1",

@@ -23,3 +24,3 @@ "isarray": "^1.0.0"

"got": "^3.2.0",
"is-match": "^0.2.0",
"is-match": "^0.4.1",
"pre-commit": "^1.1.2",

@@ -78,2 +79,2 @@ "request": "^2.57.0"

}
}
}
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