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

try-catch-callback

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

try-catch-callback - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="1.0.2"></a>
## [1.0.2](https://github.com/tunnckocore/try-catch-callback/compare/v1.0.1...v1.0.2) (2016-09-22)
### Bug Fixes
* **docs:** fix a docs of `passCallback` option ([04a2a73](https://github.com/tunnckocore/try-catch-callback/commit/04a2a73))
<a name="1.0.1"></a>

@@ -7,0 +17,0 @@ ## [1.0.1](https://github.com/tunnckocore/try-catch-callback/compare/v1.0.0...v1.0.1) (2016-09-22)

2

index.js

@@ -34,3 +34,3 @@ /*!

* @param {Function} `[cb]` callback with `cb(err, res)` signature.
* @param {Function} `[passCallback]` pass the `cb` to `fn` when calling it.
* @param {Boolean} `[passCallback]` pass `true` if you want `cb` to be passed to `fn` args.
* @return {Function} `thunk` if `cb` not given.

@@ -37,0 +37,0 @@ * @throws {TypError} if `fn` not a function.

{
"name": "try-catch-callback",
"version": "1.0.1",
"version": "1.0.2",
"description": "try/catch block with a callback, used in [try-catch-core][]. Use it when you don't care about asyncness so much and don't want guarantees. If you care use [try-catch-core][].",

@@ -5,0 +5,0 @@ "repository": "tunnckoCore/try-catch-callback",

@@ -26,3 +26,3 @@ # [try-catch-callback][author-www-url] [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] [![npm downloads][downloads-img]][downloads-url]

* `[cb]` **{Function}**: callback with `cb(err, res)` signature.
* `[passCallback]` **{Function}**: pass the `cb` to `fn` when calling it.
* `[passCallback]` **{Boolean}**: pass `true` if you want `cb` to be passed to `fn` args.
* `returns` **{Function}** `thunk`: if `cb` not given.

@@ -29,0 +29,0 @@ * `throws` **{TypError}** if `fn` not a function.

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