behave-graph
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -965,13 +965,17 @@ import * as fs from 'fs/promises'; | ||
node.inputSockets.forEach((socket) => { | ||
if (socket.valueTypeName === 'flow') | ||
return; | ||
const valueType = graphRegistry.values.valueTypeNameToValueType.get(socket.valueTypeName); | ||
// check to ensure all value types are supported. | ||
if (valueType === undefined) { | ||
errorList.push(`node '${node.typeName}' has on input socket '${socket.name}' an unregistered value type ${socket.valueTypeName}'`); | ||
errorList.push(`node '${node.typeName}' has on input socket '${socket.name}' an unregistered value type '${socket.valueTypeName}'`); | ||
} | ||
}); | ||
node.outputSockets.forEach((socket) => { | ||
if (socket.valueTypeName === 'flow') | ||
return; | ||
const valueType = graphRegistry.values.valueTypeNameToValueType.get(socket.valueTypeName); | ||
// check to ensure all value types are supported. | ||
if (valueType === undefined) { | ||
errorList.push(`node '${node.typeName}' has on output socket '${socket.name}' an unregistered value type ${socket.valueTypeName}'`); | ||
errorList.push(`node '${node.typeName}' has on output socket '${socket.name}' an unregistered value type '${socket.valueTypeName}'`); | ||
} | ||
@@ -978,0 +982,0 @@ }); |
@@ -510,13 +510,17 @@ import * as fs from 'fs/promises'; | ||
node.inputSockets.forEach((socket) => { | ||
if (socket.valueTypeName === 'flow') | ||
return; | ||
const valueType = graphRegistry.values.valueTypeNameToValueType.get(socket.valueTypeName); | ||
// check to ensure all value types are supported. | ||
if (valueType === undefined) { | ||
errorList.push(`node '${node.typeName}' has on input socket '${socket.name}' an unregistered value type ${socket.valueTypeName}'`); | ||
errorList.push(`node '${node.typeName}' has on input socket '${socket.name}' an unregistered value type '${socket.valueTypeName}'`); | ||
} | ||
}); | ||
node.outputSockets.forEach((socket) => { | ||
if (socket.valueTypeName === 'flow') | ||
return; | ||
const valueType = graphRegistry.values.valueTypeNameToValueType.get(socket.valueTypeName); | ||
// check to ensure all value types are supported. | ||
if (valueType === undefined) { | ||
errorList.push(`node '${node.typeName}' has on output socket '${socket.name}' an unregistered value type ${socket.valueTypeName}'`); | ||
errorList.push(`node '${node.typeName}' has on output socket '${socket.name}' an unregistered value type '${socket.valueTypeName}'`); | ||
} | ||
@@ -523,0 +527,0 @@ }); |
@@ -1014,13 +1014,17 @@ class Debug { | ||
node.inputSockets.forEach((socket) => { | ||
if (socket.valueTypeName === 'flow') | ||
return; | ||
const valueType = graphRegistry.values.valueTypeNameToValueType.get(socket.valueTypeName); | ||
// check to ensure all value types are supported. | ||
if (valueType === undefined) { | ||
errorList.push(`node '${node.typeName}' has on input socket '${socket.name}' an unregistered value type ${socket.valueTypeName}'`); | ||
errorList.push(`node '${node.typeName}' has on input socket '${socket.name}' an unregistered value type '${socket.valueTypeName}'`); | ||
} | ||
}); | ||
node.outputSockets.forEach((socket) => { | ||
if (socket.valueTypeName === 'flow') | ||
return; | ||
const valueType = graphRegistry.values.valueTypeNameToValueType.get(socket.valueTypeName); | ||
// check to ensure all value types are supported. | ||
if (valueType === undefined) { | ||
errorList.push(`node '${node.typeName}' has on output socket '${socket.name}' an unregistered value type ${socket.valueTypeName}'`); | ||
errorList.push(`node '${node.typeName}' has on output socket '${socket.name}' an unregistered value type '${socket.valueTypeName}'`); | ||
} | ||
@@ -1027,0 +1031,0 @@ }); |
{ | ||
"name": "behave-graph", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Simple, extensible behavior graph engine", | ||
@@ -58,4 +58,4 @@ "type": "module", | ||
"test": "jest src", | ||
"prepublishOnly": "npm run export-node-spec node-spec.json" | ||
"prepublishOnly": "npm run export-node-spec dist/node-spec.json" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
207912
25
5066
1