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 6.0.1 to 6.0.2

2

package.json
{
"name": "@ospin/fct-graph",
"author": "OSPIN webapp team",
"version": "6.0.1",
"version": "6.0.2",
"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",

@@ -23,12 +23,2 @@ const Joi = require('joi')

const OFFSET_SLOPE_CALIBRATON_TYPE = 'OFFSET_SLOPE'
const CALIBRATIONS_SCHEMA = Joi.array().items(Joi.object({
type: Joi.string().allow(OFFSET_SLOPE_CALIBRATON_TYPE).required(),
params: Joi.object({
offset: Joi.string().allow('float').required(),
slope: Joi.string().allow('float').required(),
}),
}))
const SCHEMA = Joi.object({

@@ -139,16 +129,2 @@ name: Joi.string().required(),

calibrations: Joi.when('type', {
is: TYPES.OUT_SLOT,
then: Joi.when('dataType', {
switch: [
{
is: Joi.alternatives().try(DATA_TYPES.INTEGER, DATA_TYPES.FLOAT),
then: CALIBRATIONS_SCHEMA,
otherwise: Joi.forbidden(),
},
],
}),
otherwise: Joi.forbidden(),
}),
tareable: Joi.when('type', {

@@ -155,0 +131,0 @@ is: TYPES.IN_SLOT,

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