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

kondition

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kondition - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "kondition",
"version": "1.0.0",
"version": "1.0.1",
"description": "An async chained condition assertion runner. Checks expectations on variables against actions and enables conditional waiting.",

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

@@ -12,2 +12,6 @@ # kondition

```
var KonditionRunner = require('kondition'),
Runner = KonditionRunner;
// just some typical async test function for an object called "player"

@@ -65,1 +69,10 @@ var MyPlayerTestFunction = function(player, done) {

```
### How to use ?
Install with npm:
```
npm install kondition
```
Use with a CommonJS compatible `require` function as in the example above or include statically from `node_modules` directory the `kondition/runner.js` file.

@@ -1,3 +0,1 @@

Utils = require('../js/utils'),
module.exports = {};

@@ -13,2 +11,8 @@

function bindAll(instance, functions) {
functions.forEach(function(func) {
instance[func] = instance[func].bind(instance);
});
}
var CondVar = module.exports.CondVar = function(actionObject, timeoutMs) {

@@ -25,3 +29,3 @@

Utils.bindAll(this, [
bindAll(this, [
'expectBelow',

@@ -229,2 +233,2 @@ 'expectAbove',

return this.expectors.length === 0;
};
};
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