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

@types/bluebird

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/bluebird - npm Package Compare versions

Comparing version 3.0.37 to 3.5.0

25

bluebird/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for bluebird 3.0.0
// Type definitions for bluebird 3.5.0
// Project: https://github.com/petkaantonov/bluebird

@@ -71,6 +71,6 @@ // Definitions by: Leonard Hecker <https://github.com/lhecker>

caught(predicate: (error: any) => boolean, onReject: (error: any) => R | Bluebird.Thenable<R> | void | Bluebird.Thenable<void>): Bluebird<R>;
catch<U>(predicate: (error: any) => boolean, onReject: (error: any) => U | Bluebird.Thenable<U>): Bluebird<U | R>;
caught<U>(predicate: (error: any) => boolean, onReject: (error: any) => U | Bluebird.Thenable<U>): Bluebird<U | R>;
catch<E extends Error>(ErrorClass: new (...args: any[]) => E, onReject: (error: E) => R | Bluebird.Thenable<R> | void | Bluebird.Thenable<void>): Bluebird<R>;

@@ -81,6 +81,6 @@ caught<E extends Error>(ErrorClass: new (...args: any[]) => E, onReject: (error: E) => R | Bluebird.Thenable<R> | void | Bluebird.Thenable<void>): Bluebird<R>;

caught<E extends Error, U>(ErrorClass: new (...args: any[]) => E, onReject: (error: E) => U | Bluebird.Thenable<U>): Bluebird<U | R>;
catch(predicate: Object, onReject: (error: any) => R | Bluebird.Thenable<R> | void | Bluebird.Thenable<void>): Bluebird<R>;
caught(predicate: Object, onReject: (error: any) => R | Bluebird.Thenable<R> | void | Bluebird.Thenable<void>): Bluebird<R>;
catch<U>(predicate: Object, onReject: (error: any) => U | Bluebird.Thenable<U>): Bluebird<U | R>;

@@ -120,2 +120,10 @@ caught<U>(predicate: Object, onReject: (error: any) => U | Bluebird.Thenable<U>): Bluebird<U | R>;

/**
* Like `.catch()` but rethrows the error
*/
tapCatch<U>(onReject: (error?: any) => U | Bluebird.Thenable<U> | void | Bluebird.Thenable<void>): Bluebird<R>;
tapCatch<U, E extends Error>(ErrorClass: new (...args: any[]) => E, onReject: (error: E) => U | Bluebird.Thenable<U> | void | Bluebird.Thenable<void>): Bluebird<R>;
tapCatch<U>(predicate: (error?: any) => boolean, onReject: (error?: any) => U | Bluebird.Thenable<U> | void | Bluebird.Thenable<void>): Bluebird<R>;
/**
* Same as calling `Promise.delay(ms, this)`.

@@ -327,3 +335,3 @@ */

* Basically sugar for doing: somePromise.catch(function(){});
*
*
* Which is needed in case error handlers are attached asynchronously to the promise later, which would otherwise result in premature unhandled rejection reporting.

@@ -638,2 +646,7 @@ */

}): void;
/**
* The version number of the library
*/
static version: string;
}

@@ -640,0 +653,0 @@

{
"name": "@types/bluebird",
"version": "3.0.37",
"version": "3.5.0",
"description": "TypeScript definitions for bluebird",
"license": "MIT",
"author": "Leonard Hecker <https://github.com/lhecker>",
"contributors": [
{
"name": "Leonard Hecker",
"url": "https://github.com/lhecker"
}
],
"main": "",

@@ -15,4 +20,4 @@ "repository": {

"peerDependencies": {},
"typesPublisherContentHash": "f9312aa6f1f109e52dca067f860c56dc23ce58fcde07d377b6f0c29a9a832d3b",
"typesPublisherContentHash": "4b1aab4867e95bf7cae439db9db825f3fc4d4b5d4ac8d59c7e83b64e686eed4c",
"typeScriptVersion": "2.0"
}

@@ -11,5 +11,4 @@ # Installation

Additional Details
* Last updated: Thu, 29 Dec 2016 16:51:17 GMT
* Library Dependencies: none
* Module Dependencies: none
* Last updated: Fri, 10 Mar 2017 06:07:39 GMT
* Dependencies: none
* Global values: none

@@ -16,0 +15,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