easyeda 0.0.299 → 0.0.300

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/main.cjs CHANGED
@@ -3528,7 +3528,7 @@ var import_promises = __toESM(require("fs/promises"), 1);
3528
3528
  var package_default = {
3529
3529
  name: "easyeda",
3530
3530
  type: "module",
3531
- version: "0.0.298",
3531
+ version: "0.0.299",
3532
3532
  files: [
3533
3533
  "dist"
3534
3534
  ],
@@ -9303,8 +9303,17 @@ var getPolarizedPinMetadata = (pinLabels) => {
9303
9303
  };
9304
9304
 
9305
9305
  // lib/utils/normalize-pin-labels.ts
9306
+ var normalizeActiveLowPinLabel = (label) => {
9307
+ if (!label.startsWith("#")) return label;
9308
+ const activeLowLabel = label.slice(1);
9309
+ if (activeLowLabel.length === 0) return label;
9310
+ return `N_${activeLowLabel}`;
9311
+ };
9306
9312
  var normalizePinLabels = (inputPinLabels) => {
9307
- const uniqueInputPinLabels = inputPinLabels.map((labels) => [
9313
+ const normalizedInputPinLabels = inputPinLabels.map(
9314
+ (labels) => labels.map(normalizeActiveLowPinLabel)
9315
+ );
9316
+ const uniqueInputPinLabels = normalizedInputPinLabels.map((labels) => [
9308
9317
  ...new Set(labels)
9309
9318
  ]);
9310
9319
  const result = uniqueInputPinLabels.map(() => []);