Socket
Socket
Sign inDemoInstall

p-wait-for

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p-wait-for - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

4

index.js

@@ -13,2 +13,3 @@ import pTimeout from 'p-timeout';

let retryTimeout;
let abort = false;

@@ -26,3 +27,3 @@ const promise = new Promise((resolve, reject) => {

resolve();
} else {
} else if (!abort) {
retryTimeout = setTimeout(check, interval);

@@ -49,2 +50,3 @@ }

} finally {
abort = true;
clearTimeout(retryTimeout);

@@ -51,0 +53,0 @@ }

{
"name": "p-wait-for",
"version": "5.0.1",
"version": "5.0.2",
"description": "Wait for a condition to be true",

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

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