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.
package/dist/cli/main.cjs CHANGED
@@ -29176,7 +29176,7 @@ var import_promises = __toESM(require("fs/promises"), 1);
29176
29176
  var package_default = {
29177
29177
  name: "easyeda",
29178
29178
  type: "module",
29179
- version: "0.0.23",
29179
+ version: "0.0.25",
29180
29180
  files: ["dist"],
29181
29181
  repository: {
29182
29182
  type: "git",
@@ -29498,9 +29498,9 @@ var EasyEdaJsonSchema = import_zod4.z.object({
29498
29498
  updated_at: import_zod4.z.string(),
29499
29499
  dataStr: DataStrSchema,
29500
29500
  verify: import_zod4.z.boolean(),
29501
- SMT: import_zod4.z.boolean(),
29501
+ SMT: import_zod4.z.boolean().optional(),
29502
29502
  datastrid: import_zod4.z.string(),
29503
- jlcOnSale: import_zod4.z.number(),
29503
+ jlcOnSale: import_zod4.z.number().optional(),
29504
29504
  writable: import_zod4.z.boolean(),
29505
29505
  isFavorite: import_zod4.z.boolean(),
29506
29506
  packageDetail: PackageDetailSchema
@@ -29597,10 +29597,9 @@ export const use${componentName} = createUseComponent(${componentName}, pinNames
29597
29597
 
29598
29598
  // lib/utils/normalize-manufacturer-part-number.ts
29599
29599
  function normalizeManufacturerPartNumber(partNumber) {
29600
- let normalized = partNumber.replace(/-/g, "_");
29601
- normalized = normalized.replace(/[^a-zA-Z0-9_$]/g, "");
29600
+ let normalized = partNumber.replace(/[-]/g, "_").replace(/[^a-zA-Z0-9_$]/g, "_");
29602
29601
  if (/^\d/.test(normalized)) {
29603
- normalized = "A" + normalized;
29602
+ normalized = "A_" + normalized;
29604
29603
  }
29605
29604
  return normalized;
29606
29605
  }