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

promise

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

LICENSE

12

index.js

@@ -23,3 +23,3 @@ var nextTick

return new Promise(function(resolve, reject) {
handle({ onFulfilled: onFulfilled, onRejected: onRejected, resolve: resolve, reject: reject })
handle(new Handler(onFulfilled, onRejected, resolve, reject))
})

@@ -35,3 +35,3 @@ }

var cb = state ? deferred.onFulfilled : deferred.onRejected
if (typeof cb !== 'function'){
if (cb === null) {
(state ? deferred.resolve : deferred.reject)(value)

@@ -100,1 +100,9 @@ return

}
function Handler(onFulfilled, onRejected, resolve, reject){
this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null
this.onRejected = typeof onRejected === 'function' ? onRejected : null
this.resolve = resolve
this.reject = reject
}

2

package.json
{
"name": "promise",
"version": "3.0.0",
"version": "3.0.1",
"description": "Bare bones Promises/A+ implementation",

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

Sorry, the diff of this file is not supported yet

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