easyeda 0.0.293 → 0.0.294

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
@@ -8382,7 +8382,7 @@ var hasNonBoxSchematicSymbol = (easyEdaJson) => {
8382
8382
 
8383
8383
  // lib/websafe/convert-to-typescript-component/index.tsx
8384
8384
  var getGeneratedComponentType = (betterEasy, pinCount) => {
8385
- if (isLedCategoryComponent(betterEasy)) return "led";
8385
+ if (isLedCategoryComponent(betterEasy) && pinCount === 2) return "led";
8386
8386
  if (isDiodeCategoryComponent(betterEasy) && pinCount === 2) return "diode";
8387
8387
  if (isPushbuttonCategoryComponent(betterEasy)) return "pushbutton";
8388
8388
  if (isSwitchCategoryComponent(betterEasy)) return "switch";