@tscircuit/footprinter 0.0.175 → 0.0.176

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
@@ -5884,7 +5884,7 @@ import { z as z52 } from "zod";
5884
5884
  import { length as length41 } from "circuit-json";
5885
5885
  var son_def = z52.object({
5886
5886
  fn: z52.string(),
5887
- num_pins: z52.literal(8).default(8),
5887
+ num_pins: z52.union([z52.literal(6), z52.literal(8)]).default(8),
5888
5888
  w: z52.string().default("3mm"),
5889
5889
  h: z52.string().default("3mm"),
5890
5890
  p: z52.string().default("0.5mm"),
@@ -5899,7 +5899,12 @@ var son = (raw_params) => {
5899
5899
  if (raw_params.string && raw_params.string.includes("_ep")) {
5900
5900
  raw_params.ep = true;
5901
5901
  }
5902
- const parameters = son_def.parse(raw_params);
5902
+ const match = raw_params.string?.match(/^son_(\d+)/);
5903
+ const numPins = match ? Number.parseInt(match[1], 10) : raw_params.num_pins || 8;
5904
+ const parameters = son_def.parse({
5905
+ ...raw_params,
5906
+ num_pins: numPins
5907
+ });
5903
5908
  const w = length41.parse(parameters.w);
5904
5909
  const h = length41.parse(parameters.h);
5905
5910
  const p = length41.parse(parameters.p);