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

p-immediate

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p-immediate - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

6

index.js
'use strict';
const pImmediate = () => new Promise(resolve => {
setImmediate(resolve);
if (typeof setImmediate === 'function') {
setImmediate(resolve);
} else {
setTimeout(resolve);
}
});

@@ -6,0 +10,0 @@

2

package.json
{
"name": "p-immediate",
"version": "3.1.0",
"version": "3.2.0",
"description": "Returns a promise resolved in the next event loop - think `setImmediate()`",

@@ -5,0 +5,0 @@ "license": "MIT",

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

# p-immediate [![Build Status](https://travis-ci.org/sindresorhus/p-immediate.svg?branch=master)](https://travis-ci.org/sindresorhus/p-immediate)
# p-immediate

@@ -3,0 +3,0 @@ > Returns a promise resolved in the next event loop - think [`setImmediate()`](https://nodejs.org/api/timers.html#timers_setimmediate_callback_arg)

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