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

@ospin/fct-graph

Package Overview
Dependencies
Maintainers
4
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ospin/fct-graph - npm Package Compare versions

Comparing version 2.8.1 to 2.9.0

2

package.json
{
"name": "@ospin/fct-graph",
"author": "danielseehausen",
"version": "2.8.1",
"version": "2.9.0",
"description": "Graph data structure with conditional edges via 'slots' on nodes. Intended to represent physical and virtual functionalities on a device.",

@@ -6,0 +6,0 @@ "main": "index.js",

const Joi = require('joi')
const RegexUtils = require('../utils/RegexUtils')
const Slot = require('../slots/Slot')
const InSlot = require('../slots/InSlot')

@@ -138,4 +139,25 @@ const OutSlot = require('../slots/OutSlot')

_getConnectedFcts(targetSlots = this.slots) {
return targetSlots.reduce((connectedFcts, slot) => {
const fcts = slot.connectedFunctionalities.filter(
connectedFct => connectedFct !== this,
)
return connectedFcts.concat(fcts)
}, [])
}
get connectedFcts() {
return this._getConnectedFcts()
}
get sources() {
return this._getConnectedFcts(this.inSlots)
}
get sinks() {
return this._getConnectedFcts(this.outSlots)
}
}
module.exports = Functionality

@@ -31,4 +31,10 @@ const ActuatorSeeder = require('./ActuatorSeeder')

static generateCelsiusHeater(data) {
const slots = [ FloatInSlotSeeder.generateCelsiusIn(data) ]
return this.generate({ slots, name: 'Celsius Heater' })
}
}
module.exports = HeaterActuatorSeeder

@@ -42,4 +42,8 @@ const ControllerSeeder = require('./ControllerSeeder')

static seedTemperatureControllerCelsius(data) {
return this.seedOne(this.generateTemperatureControllerCelsius(data))
}
}
module.exports = PIDControllerSeeder
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