easyeda 0.0.24 → 0.0.26

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.
@@ -29459,9 +29459,9 @@ var EasyEdaJsonSchema = import_zod4.z.object({
29459
29459
  updated_at: import_zod4.z.string(),
29460
29460
  dataStr: DataStrSchema,
29461
29461
  verify: import_zod4.z.boolean(),
29462
- SMT: import_zod4.z.boolean(),
29462
+ SMT: import_zod4.z.boolean().optional(),
29463
29463
  datastrid: import_zod4.z.string(),
29464
- jlcOnSale: import_zod4.z.number(),
29464
+ jlcOnSale: import_zod4.z.number().optional(),
29465
29465
  writable: import_zod4.z.boolean(),
29466
29466
  isFavorite: import_zod4.z.boolean(),
29467
29467
  packageDetail: PackageDetailSchema
@@ -29558,10 +29558,9 @@ export const use${componentName} = createUseComponent(${componentName}, pinNames
29558
29558
 
29559
29559
  // lib/utils/normalize-manufacturer-part-number.ts
29560
29560
  function normalizeManufacturerPartNumber(partNumber) {
29561
- let normalized = partNumber.replace(/-/g, "_");
29562
- normalized = normalized.replace(/[^a-zA-Z0-9_$]/g, "");
29561
+ let normalized = partNumber.replace(/[-]/g, "_").replace(/[^a-zA-Z0-9_$]/g, "_");
29563
29562
  if (/^\d/.test(normalized)) {
29564
- normalized = "A" + normalized;
29563
+ normalized = "A_" + normalized;
29565
29564
  }
29566
29565
  return normalized;
29567
29566
  }