easyeda 0.0.283 → 0.0.284

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
@@ -7288,8 +7288,12 @@ var parsePath = (str) => {
7288
7288
  };
7289
7289
  var PathShapeSchema = z180.string().startsWith("PT~").transform(parsePath).pipe(PathShapeOutputSchema);
7290
7290
  var optionalEasyEdaTextField = (fieldSchema) => z180.preprocess((textField) => {
7291
- if (textField == null || textField === "" || textField === "undefined") {
7292
- return void 0;
7291
+ if (textField == null) return void 0;
7292
+ if (typeof textField === "string") {
7293
+ const trimmedTextField = textField.trim();
7294
+ if (trimmedTextField === "" || trimmedTextField === "undefined") {
7295
+ return void 0;
7296
+ }
7293
7297
  }
7294
7298
  return textField;
7295
7299
  }, fieldSchema);