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

any-promise

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

any-promise - npm Package Compare versions

Comparing version 0.2.0 to 1.0.0

2

package.json
{
"name": "any-promise",
"version": "0.2.0",
"version": "1.0.0",
"description": "Resolve any installed ES6 compatible promise",

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

@@ -39,3 +39,3 @@ ## Any Promise

# Install any libraries you would like to use depending on any-promise
$ npm install fs-promise
$ npm install mz
# Remove potentially duplicated `any-promise` packages

@@ -42,0 +42,0 @@ $ npm dedupe

@@ -13,13 +13,12 @@ "use strict"

* 1. Previous registration
* 2. Implementation specified by PROMISE_IMPL
* 3. global.Promise if node.js version >= 0.12
* 4. Auto detected promise based on first sucessful require of
* 2. global.Promise if node.js version >= 0.12
* 3. Auto detected promise based on first sucessful require of
* known promise libraries. Note this is a last resort, as the
* loaded library is non-deterministic. node.js >= 0.12 will
* always use global.Promise over this priority list.
* 5. Throws error.
* 4. Throws error.
*/
module.exports = register
function register(implementation){
implementation = implementation || process.env.PROMISE_IMPL || null
implementation = implementation || null

@@ -26,0 +25,0 @@ if(registered !== null

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