New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.10 to 2.1.15

test/Limit.js

15

lib/Proback.js

@@ -19,2 +19,17 @@ module.exports = {

},
limit: function ( promise, max = -1 ) {
let timeoutId
const timeoutPromise = new Promise((resolve, reject) => {
timeoutId = setTimeout(() => { resolve( ) }, max )
})
const freePromise = new Promise((resolve, reject) => {
promise.then( (res) => {
clearTimeout( timeoutId )
resolve(res)
} ).catch( reject )
} )
return Promise.race([ freePromise, timeoutPromise ])
},
until: function ( fn, ms = 100, max = -1 ) {

@@ -21,0 +36,0 @@ return new Promise( (resolve, reject) => {

2

package.json
{
"name": "proback.js",
"version": "2.1.10",
"version": "2.1.15",
"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