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

behave-graph

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

behave-graph - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

dist/examples/flow/FlipFlop.json

14

dist/examples/exec-graph/index.js

@@ -782,11 +782,11 @@ import { promises } from 'fs';

], [
new FlowSocket('a'),
new FlowSocket('b'),
new BooleanSocket('isA'),
new FlowSocket('on'),
new FlowSocket('off'),
new BooleanSocket('isOn'),
], (context) => {
context.setOutputValue('isA', this.isA);
context.commit(this.isA ? 'a' : 'b');
this.isA = !this.isA;
context.setOutputValue('isOn', this.isOn);
context.commit(this.isOn ? 'on' : 'off');
this.isOn = !this.isOn;
});
this.isA = true;
this.isOn = true;
}

@@ -793,0 +793,0 @@ }

@@ -290,11 +290,11 @@ import { promises } from 'fs';

], [
new FlowSocket('a'),
new FlowSocket('b'),
new BooleanSocket('isA'),
new FlowSocket('on'),
new FlowSocket('off'),
new BooleanSocket('isOn'),
], (context) => {
context.setOutputValue('isA', this.isA);
context.commit(this.isA ? 'a' : 'b');
this.isA = !this.isA;
context.setOutputValue('isOn', this.isOn);
context.commit(this.isOn ? 'on' : 'off');
this.isOn = !this.isOn;
});
this.isA = true;
this.isOn = true;
}

@@ -301,0 +301,0 @@ }

@@ -780,11 +780,11 @@ /*! *****************************************************************************

], [
new FlowSocket('a'),
new FlowSocket('b'),
new BooleanSocket('isA'),
new FlowSocket('on'),
new FlowSocket('off'),
new BooleanSocket('isOn'),
], (context) => {
context.setOutputValue('isA', this.isA);
context.commit(this.isA ? 'a' : 'b');
this.isA = !this.isA;
context.setOutputValue('isOn', this.isOn);
context.commit(this.isOn ? 'on' : 'off');
this.isOn = !this.isOn;
});
this.isA = true;
this.isOn = true;
}

@@ -791,0 +791,0 @@ }

@@ -847,11 +847,11 @@ class Debug {

], [
new FlowSocket('a'),
new FlowSocket('b'),
new BooleanSocket('isA'),
new FlowSocket('on'),
new FlowSocket('off'),
new BooleanSocket('isOn'),
], (context) => {
context.setOutputValue('isA', this.isA);
context.commit(this.isA ? 'a' : 'b');
this.isA = !this.isA;
context.setOutputValue('isOn', this.isOn);
context.commit(this.isOn ? 'on' : 'off');
this.isOn = !this.isOn;
});
this.isA = true;
this.isOn = true;
}

@@ -858,0 +858,0 @@ }

@@ -81,11 +81,11 @@ [

{
"name": "a",
"name": "on",
"valueType": "flow"
},
{
"name": "b",
"name": "off",
"valueType": "flow"
},
{
"name": "isA",
"name": "isOn",
"valueType": "boolean"

@@ -92,0 +92,0 @@ }

{
"name": "behave-graph",
"version": "0.0.14",
"version": "0.0.15",
"description": "Simple, extensible behavior graph engine",

@@ -5,0 +5,0 @@ "type": "module",

@@ -17,4 +17,3 @@ # Behave-Graph

https://discord.gg/kWSWtVg6
https://discord.gg/mrags8WyuH
## Feature Overview

@@ -36,3 +35,3 @@

* **Flow Control** Control execution flow using familiar structures: Branches, delays, if-then, sequences and for-loops.
* **State** You can set and load state arbitrarily: Exists, Set, Get.
* **State** You can set and load state arbitrarily: Set, Get.
* **Time** Time nodes allow you to wait: Delay.

@@ -170,3 +169,3 @@ ### Designed for Integration into Other Systems

```zsh
> npm run exec-graph -- ./examples/basics/State.json
> npm run exec-graph -- ./examples/variables/GetSet.json

@@ -173,0 +172,0 @@ 1000

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