@ts-graphviz/common
Advanced tools
Comparing version 2.1.3-next-7d7352bb3819522ba16763503aa6bc923f550408 to 2.1.3-next-a1de944c70af32f17428537ec0b096de2d68388d
# @ts-graphviz/common | ||
## 2.1.3-next-7d7352bb3819522ba16763503aa6bc923f550408 | ||
## 2.1.3-next-a1de944c70af32f17428537ec0b096de2d68388d | ||
### Patch Changes | ||
- [#1158](https://github.com/ts-graphviz/ts-graphviz/pull/1158) [`883f7b3`](https://github.com/ts-graphviz/ts-graphviz/commit/883f7b3c65794b3ab2b01c422b6231079bb6c28d) Thanks [@kamiazya](https://github.com/kamiazya)! - Fix EdgeTargets validation in toNodeRefGroup function | ||
- [#1088](https://github.com/ts-graphviz/ts-graphviz/pull/1088) [`7d7352b`](https://github.com/ts-graphviz/ts-graphviz/commit/7d7352bb3819522ba16763503aa6bc923f550408) Thanks [@kamiazya](https://github.com/kamiazya)! - Update Snapshot release configuration | ||
@@ -8,0 +10,0 @@ |
@@ -75,5 +75,10 @@ function _pipe(...args) { | ||
function toNodeRefGroup(targets) { | ||
if (targets.length < 2 && (isNodeRefLike(targets[0]) && isNodeRefLike(targets[1])) === false) { | ||
throw Error("EdgeTargets must have at least 2 elements."); | ||
if (targets.length < 1) { | ||
throw Error("EdgeTargets must have at least 1 elements."); | ||
} | ||
if (!targets.every((target) => isNodeRefLike(target))) { | ||
throw Error( | ||
"The element of Edge target is missing or not satisfied as Edge target." | ||
); | ||
} | ||
return targets.map((t) => toNodeRef(t)); | ||
@@ -80,0 +85,0 @@ } |
{ | ||
"name": "@ts-graphviz/common", | ||
"version": "2.1.3-next-7d7352bb3819522ba16763503aa6bc923f550408", | ||
"version": "2.1.3-next-a1de944c70af32f17428537ec0b096de2d68388d", | ||
"description": "Graphviz Types and Utilities", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
217565
4131