easyeda 0.0.283 → 0.0.285

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.282",
3531
+ version: "0.0.284",
3532
3532
  files: [
3533
3533
  "dist"
3534
3534
  ],
@@ -10695,8 +10695,12 @@ var parsePath = (str) => {
10695
10695
  };
10696
10696
  var PathShapeSchema = import_zod180.z.string().startsWith("PT~").transform(parsePath).pipe(PathShapeOutputSchema);
10697
10697
  var optionalEasyEdaTextField = (fieldSchema) => import_zod180.z.preprocess((textField) => {
10698
- if (textField == null || textField === "" || textField === "undefined") {
10699
- return void 0;
10698
+ if (textField == null) return void 0;
10699
+ if (typeof textField === "string") {
10700
+ const trimmedTextField = textField.trim();
10701
+ if (trimmedTextField === "" || trimmedTextField === "undefined") {
10702
+ return void 0;
10703
+ }
10700
10704
  }
10701
10705
  return textField;
10702
10706
  }, fieldSchema);