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.
package/dist/index.js CHANGED
@@ -7956,8 +7956,8 @@ var generateTypescriptComponent = ({
7956
7956
  );
7957
7957
  const simplifiedPinLabels = Object.fromEntries(
7958
7958
  Object.entries(safePinLabels).map(([pin, labels]) => {
7959
- if (Array.isArray(labels) && labels.length > 1) {
7960
- return [pin, [labels[1]]];
7959
+ if (Array.isArray(labels) && labels.length > 1 && labels[0] === pin) {
7960
+ return [pin, labels.slice(1)];
7961
7961
  }
7962
7962
  return [pin, labels];
7963
7963
  })