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

bluebird-tools

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bluebird-tools - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

2

package.json
{
"name": "bluebird-tools",
"version": "1.0.1",
"version": "1.1.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -99,1 +99,9 @@ # Bluebird Tools

```
### Manipulating promises
#### Promise.convert(promise) -> promise
Converts a native promise to a BluebirdTools promise
```js
Promise.convert(promise)
```

@@ -62,2 +62,10 @@ const Promise = require('bluebird');

Promise.convert = function convert(promise) {
return new Promise((resolve, reject) => {
promise
.then(resolve)
.catch(reject);
});
};
module.exports = Promise;

@@ -64,0 +72,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