easyeda 0.0.319 → 0.0.320

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.
@@ -11655,8 +11655,8 @@ var generateTypescriptComponent = ({
11655
11655
  );
11656
11656
  const simplifiedPinLabels = Object.fromEntries(
11657
11657
  Object.entries(safePinLabels).map(([pin, labels]) => {
11658
- if (Array.isArray(labels) && labels.length > 1) {
11659
- return [pin, [labels[1]]];
11658
+ if (Array.isArray(labels) && labels.length > 1 && labels[0] === pin) {
11659
+ return [pin, labels.slice(1)];
11660
11660
  }
11661
11661
  return [pin, labels];
11662
11662
  })