Socket
Socket
Sign inDemoInstall

when-conditional

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

when-conditional - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "when-conditional",
"version": "1.0.3",
"version": "1.0.4",
"description": "A simple little asyncronous if check and conditional method",

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

@@ -18,2 +18,7 @@ # When-conditional

var interval = setInterval(function(){
console.log("someVar is " + someVar);
if(someVar === true) clearInterval(interval);
}, 1000);
when(function condition(){

@@ -27,3 +32,3 @@ return (someVar === true);

someVar = true;
}, 10000)
}, 10000);

@@ -54,2 +59,2 @@ ```

## See you when-ever!
Copyright Glen Keane - 2015 - MIT Licence
Copyright Glen Keane - 2015 - MIT Licence
var when = require('../');
var someVar = false;
var interval = setInterval(function(){
console.log('someVar is ' + someVar);
if(someVar === true) clearInterval(interval);
}, 1000);
when(function condition(){

@@ -12,2 +17,2 @@ return (someVar === true);

someVar = true;
}, 1000);
}, 10000);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc