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

proback.js

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proback.js - npm Package Compare versions

Comparing version 2.1.8 to 2.1.10

9

lib/Proback.js

@@ -19,4 +19,5 @@ module.exports = {

},
until: function ( fn, ms = 100 ) {
return new Promise(resolve => {
until: function ( fn, ms = 100, max = -1 ) {
return new Promise( (resolve, reject) => {
let time = Date.now()
let pingInterval = setInterval( function () {

@@ -27,2 +28,6 @@ if ( fn() ) {

}
else if ( max > -1 && (Date.now() - time) >= max ) {
clearInterval( pingInterval )
reject( new Error( 'Function never made it in ' + max + ' ms' ) )
}
}, ms )

@@ -29,0 +34,0 @@ } )

{
"name": "proback.js",
"version": "2.1.8",
"version": "2.1.10",
"description": "Tiny libary to aid Promise/Callback dual API design",

@@ -5,0 +5,0 @@ "keywords": [

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