is-async-function
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -1,5 +0,21 @@ | ||
# Change Log | ||
# Changelog | ||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
## [1.3.0](https://github.com/tunnckocore/is-async-function/compare/v1.2.4...v1.3.0) (2020-01-15) | ||
### Features | ||
* update deps, ci, readme ([dbb52a7](https://github.com/tunnckocore/is-async-function/commit/dbb52a7714887e897df62302a6ad8e8402d67fe4)) | ||
### [1.2.4](https://github.com/tunnckocore/is-async-function/compare/v1.2.3...v1.2.4) (2020-01-15) | ||
### Bug Fixes | ||
* add npm funding field ([c05ef28](https://github.com/tunnckocore/is-async-function/commit/c05ef28a1aa33543fc29c1c897613dc8676c1afc)) | ||
* update deps + the tests; close [#17](https://github.com/tunnckocore/is-async-function/issues/17) ([f2474fc](https://github.com/tunnckocore/is-async-function/commit/f2474fcd339935b9aba7f96668a4a3c66a12a5c3)) | ||
* **src:** remove unneeded condition ([#16](https://github.com/tunnckocore/is-async-function/issues/16)) ([a4d5b41](https://github.com/tunnckocore/is-async-function/commit/a4d5b41fb38efabf735dc3f63779070b0e762c17)) | ||
<a name="1.2.3"></a> | ||
@@ -6,0 +22,0 @@ ## [1.2.3](https://github.com/tunnckocore/is-async-function/compare/v1.2.2...v1.2.3) (2017-03-11) |
@@ -15,2 +15,5 @@ /*! | ||
/* istanbul ignore next */ | ||
arrIncludes = arrIncludes.default || arrIncludes | ||
/** | ||
@@ -60,3 +63,3 @@ * > Trying to guess is `fn` asynchronous function or not. | ||
names = Array.isArray(names) ? names : arrayify(names) | ||
names = arrayify(names) | ||
names = names.length ? names : callbackNames | ||
@@ -63,0 +66,0 @@ |
{ | ||
"name": "is-async-function", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"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.", | ||
@@ -23,4 +23,4 @@ "repository": "tunnckoCore/is-async-function", | ||
"dependencies": { | ||
"arr-includes": "^2.0.3", | ||
"arrify": "^1.0.1", | ||
"arr-includes": "^2.2.0", | ||
"arrify": "^2.0.1", | ||
"common-callback-names": "^2.0.1", | ||
@@ -30,12 +30,15 @@ "function-arguments": "^1.0.8" | ||
"devDependencies": { | ||
"commitizen": "~2.7.0", | ||
"cz-conventional-changelog": "1.1.5", | ||
"is-match": "^0.4.1", | ||
"mukla": "^0.4.8", | ||
"npm-run-all": "~3.1.2", | ||
"nyc": "^10.1.2", | ||
"commitizen": "^4.0.3", | ||
"cz-conventional-changelog": "^3.0.2", | ||
"micromatch": "^4.0.2", | ||
"mukla": "^0.4.9", | ||
"npm-run-all": "^4.1.5", | ||
"nyc": "^15.0.0", | ||
"pre-commit": "^1.2.2", | ||
"standard": "^9.0.0", | ||
"standard-version": "^4.0.0" | ||
"standard": "^14.3.1", | ||
"standard-version": "^7.0.1" | ||
}, | ||
"funding": { | ||
"url": "https://ko-fi.com/tunnckoCore" | ||
}, | ||
"files": [ | ||
@@ -42,0 +45,0 @@ "index.js" |
@@ -1,12 +0,11 @@ | ||
# is-async-function [![NPM version](https://img.shields.io/npm/v/is-async-function.svg?style=flat)](https://www.npmjs.com/package/is-async-function) [![mit license][license-img]][license-url] [![NPM monthly downloads](https://img.shields.io/npm/dm/is-async-function.svg?style=flat)](https://npmjs.org/package/is-async-function) [![npm total downloads][downloads-img]][downloads-url] | ||
# is-async-function [![npm version][npmv-img]][npmv-url] [![mit license][license-img]][license-url] [![NPM monthly downloads](https://img.shields.io/npm/dm/is-async-function.svg?style=flat)](https://npmjs.org/package/is-async-function) [![npm total downloads][downloads-img]][downloads-url] | ||
> 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. | ||
[![code climate][codeclimate-img]][codeclimate-url] | ||
[![code style][standard-img]][standard-url] | ||
[![linux build][travis-img]][travis-url] | ||
[![windows build][appveyor-img]][appveyor-url] | ||
[![code coverage][coverage-img]][coverage-url] | ||
[![code style][standard-img]][standard-url] | ||
[![linux build][travis-img]][travis-url] | ||
[![code coverage][coverage-img]][coverage-url] | ||
[![dependency status][david-img]][david-url] | ||
[![paypal donate][paypalme-img]][paypalme-url] | ||
[![paypal donate][paypalme-img]][paypalme-url] | ||
[![Buy me a Kofi][kofi-img]][kofi-url] | ||
@@ -49,5 +48,8 @@ You might also be interested in [always-done](https://github.com/hybridables/always-done#readme). | ||
_**Important Note:** It may fail, if the given function is using "default params" like `options = { foo: 1 }`. | ||
That limitation comes currently from the `function-arguments` package. It may or may not be fixed there in future._ | ||
## API | ||
### [isAsyncFunction](index.js#L50) | ||
### [isAsyncFunction](index.js#L53) | ||
> Trying to guess is `fn` asynchronous function or not. But not [is-callback-function][] be aware of that diff. | ||
@@ -123,3 +125,3 @@ | ||
- [fn-args](https://www.npmjs.com/package/fn-args): Get the arguments of a function, arrow function, generator function, async function | [homepage](https://github.com/sindresorhus/fn-args#readme "Get the arguments of a function, arrow function, generator function, async function") | ||
- [fn-name](https://www.npmjs.com/package/fn-name): Get the name of a named function | [homepage](https://github.com/sindresorhus/fn-name "Get the name of a named function") | ||
- [fn-name](https://www.npmjs.com/package/fn-name): Get the name of a named function | [homepage](https://github.com/sindresorhus/fn-name#readme "Get the name of a named function") | ||
- [function-arguments](https://www.npmjs.com/package/function-arguments): Get arguments of a function, useful for and used in dependency injectors. Works for regular functions, generator functions and arrow… [more](https://github.com/tunnckocore/function-arguments#readme) | [homepage](https://github.com/tunnckocore/function-arguments#readme "Get arguments of a function, useful for and used in dependency injectors. Works for regular functions, generator functions and arrow functions.") | ||
@@ -129,8 +131,8 @@ - [get-fn-name](https://www.npmjs.com/package/get-fn-name): Get function name with strictness and correctness in mind. Also works for arrow functions and getting correct name of bounded… [more](https://github.com/tunnckocore/get-fn-name#readme) | [homepage](https://github.com/tunnckocore/get-fn-name#readme "Get function name with strictness and correctness in mind. Also works for arrow functions and getting correct name of bounded functions. Powered by [fn-name][].") | ||
- [minibase](https://www.npmjs.com/package/minibase): Minimalist alternative for Base. Build complex APIs with small units called plugins. Works well with most of the already existing… [more](https://github.com/node-minibase/minibase#readme) | [homepage](https://github.com/node-minibase/minibase#readme "Minimalist alternative for Base. Build complex APIs with small units called plugins. Works well with most of the already existing [base][] plugins.") | ||
- [parse-function](https://www.npmjs.com/package/parse-function): Parse a function into an object that has its name, body, args and a few more useful properties. | [homepage](https://github.com/tunnckocore/parse-function#readme "Parse a function into an object that has its name, body, args and a few more useful properties.") | ||
- [parse-function](https://www.npmjs.com/package/parse-function): Parse a function into an object using espree, acorn or babylon parsers. Extensible through Smart Plugins | [homepage](https://tunnckocore.com/opensource "Parse a function into an object using espree, acorn or babylon parsers. Extensible through Smart Plugins") | ||
- [try-catch-core](https://www.npmjs.com/package/try-catch-core): Low-level package to handle completion and errors of sync or asynchronous functions, using [once][] and [dezalgo][] libs. Useful for and… [more](https://github.com/hybridables/try-catch-core#readme) | [homepage](https://github.com/hybridables/try-catch-core#readme "Low-level package to handle completion and errors of sync or asynchronous functions, using [once][] and [dezalgo][] libs. Useful for and used in higher-level libs such as [always-done][] to handle completion of anything.") | ||
## Contributing | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/is-async-function/issues/new). | ||
Please read the [contributing guidelines](CONTRIBUTING.md) for advice on opening issues, pull requests, and coding standards. | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/is-async-function/issues/new). | ||
Please read the [contributing guidelines](CONTRIBUTING.md) for advice on opening issues, pull requests, and coding standards. | ||
If you need some help and can spent some cash, feel free to [contact me at CodeMentor.io](https://www.codementor.io/tunnckocore?utm_source=github&utm_medium=button&utm_term=tunnckocore&utm_campaign=github) too. | ||
@@ -165,13 +167,14 @@ | ||
**Charlike Mike Reagent** | ||
+ [GitHub Profile](https://github.com/Charlike Mike Reagent) | ||
+ [Twitter Profile](https://twitter.com/Charlike Mike Reagent) | ||
+ [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) | ||
+ [github/tunnckoCore](https://github.com/tunnckoCore) | ||
+ [twitter/tunnckoCore](https://twitter.com/tunnckoCore) | ||
+ [codementor/tunnckoCore](https://codementor.io/tunnckoCore) | ||
## License | ||
Copyright © 2015, 2017, [Charlike Mike Reagent](https://i.am.charlike.online). Released under the [MIT License](LICENSE). | ||
Copyright © 2015, 2020, [Charlike Mike Reagent](https://i.am.charlike.online). Released under the [MIT License](LICENSE). | ||
*** | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on March 11, 2017._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on January 15, 2020._ | ||
_Project scaffolded using [charlike][] cli._ | ||
@@ -182,3 +185,3 @@ | ||
[base]: https://github.com/node-base/base | ||
[charlike]: https://github.com/tunnckocore/charlike | ||
[charlike]: https://github.com/tunnckoCoreLabs/charlike | ||
[commitizen]: https://github.com/commitizen/cz-cli | ||
@@ -195,27 +198,27 @@ [common-callback-names]: https://github.com/tunnckocore/common-callback-names | ||
[license-url]: https://www.npmjs.com/package/is-async-function | ||
[license-img]: https://img.shields.io/npm/l/is-async-function.svg | ||
[license-img]: https://badgen.net/npm/license/is-async-function | ||
[downloads-url]: https://www.npmjs.com/package/is-async-function | ||
[downloads-img]: https://img.shields.io/npm/dt/is-async-function.svg | ||
[downloads-img]: https://badgen.net/npm/dt/is-async-function | ||
[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/is-async-function | ||
[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/is-async-function.svg | ||
[travis-url]: https://travis-ci.org/tunnckoCore/is-async-function | ||
[travis-img]: https://img.shields.io/travis/tunnckoCore/is-async-function/master.svg?label=linux | ||
[travis-img]: https://badgen.net/travis/tunnckoCore/is-async-function/master?label=build&icon=travis | ||
[appveyor-url]: https://ci.appveyor.com/project/tunnckoCore/is-async-function | ||
[appveyor-img]: https://img.shields.io/appveyor/ci/tunnckoCore/is-async-function/master.svg?label=windows | ||
[coverage-url]: https://codecov.io/gh/tunnckoCore/is-async-function | ||
[coverage-img]: https://img.shields.io/codecov/c/github/tunnckoCore/is-async-function/master.svg | ||
[coverage-img]: https://badgen.net/codecov/c/github/tunnckoCore/is-async-function/master | ||
[david-url]: https://david-dm.org/tunnckoCore/is-async-function | ||
[david-img]: https://img.shields.io/david/tunnckoCore/is-async-function.svg | ||
[david-img]: https://badgen.net/david/dep/tunnckoCore/is-async-function | ||
[standard-url]: https://github.com/feross/standard | ||
[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg | ||
[standard-img]: https://badgen.net/badge/code%20style/standard/green | ||
[paypalme-url]: https://www.paypal.me/tunnckoCore | ||
[paypalme-img]: https://img.shields.io/badge/paypal-donate-brightgreen.svg | ||
[paypalme-img]: https://badgen.net/badge/paypal/donate/green | ||
[kofi-url]: https://ko-fi.com/tunnckoCore | ||
[kofi-img]: https://badgen.net/badge/Buy%20me/a%20coffee/29abe0c2?icon=https://rawcdn.githack.com/tunnckoCore/badgen-icons/f8264c6414e0bec449dd86f2241d50a9b89a1203/icons/kofi.svg | ||
[npmv-url]: https://www.npmjs.com/package/is-async-function | ||
[npmv-img]: https://badgen.net/npm/v/is-async-function?icon=npm | ||
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
23290
59
219
- Removedarrify@1.0.1(transitive)
Updatedarr-includes@^2.2.0
Updatedarrify@^2.0.1