@bian-womp/spark-graph 0.3.22 → 0.3.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.cjs CHANGED
@@ -5839,11 +5839,11 @@ function buildValueConverter(config) {
5839
5839
  const { nodeId, handleId, value, type, nodeTypeId, handleDataType, runtimeTypeId, } = converterConfig;
5840
5840
  const isTyped = isTypedOutput(value);
5841
5841
  for (const mapping of config.mappings) {
5842
- if (mapping.type !== type)
5842
+ if (mapping.type && mapping.type !== type)
5843
5843
  continue;
5844
- if (!matchesPattern(handleId, mapping.handleId))
5844
+ if (mapping.handleId && !matchesPattern(handleId, mapping.handleId))
5845
5845
  continue;
5846
- if (!matchesPattern(nodeId, mapping.nodeId))
5846
+ if (mapping.nodeId && !matchesPattern(nodeId, mapping.nodeId))
5847
5847
  continue;
5848
5848
  if (mapping.nodeTypeId && nodeTypeId) {
5849
5849
  if (!matchesPattern(nodeTypeId, mapping.nodeTypeId))