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.
@@ -10972,8 +10972,12 @@ var parsePath = (str) => {
10972
10972
  };
10973
10973
  var PathShapeSchema = external_exports.string().startsWith("PT~").transform(parsePath).pipe(PathShapeOutputSchema);
10974
10974
  var optionalEasyEdaTextField = (fieldSchema) => external_exports.preprocess((textField) => {
10975
- if (textField == null || textField === "" || textField === "undefined") {
10976
- return void 0;
10975
+ if (textField == null) return void 0;
10976
+ if (typeof textField === "string") {
10977
+ const trimmedTextField = textField.trim();
10978
+ if (trimmedTextField === "" || trimmedTextField === "undefined") {
10979
+ return void 0;
10980
+ }
10977
10981
  }
10978
10982
  return textField;
10979
10983
  }, fieldSchema);