easyeda 0.0.180 → 0.0.181

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.
@@ -3092,14 +3092,18 @@ var OwnerSchema = z86.object({
3092
3092
  avatar: z86.string()
3093
3093
  });
3094
3094
  var HeadSchema = z86.object({
3095
- docType: z86.union([z86.string(), z86.number()]).transform((val) => val.toString()),
3095
+ docType: z86.preprocess((val) => val == null ? val : String(val), z86.string()),
3096
3096
  editorVersion: z86.string(),
3097
3097
  c_para: z86.record(z86.string(), z86.string().nullable()),
3098
3098
  x: z86.number(),
3099
3099
  y: z86.number(),
3100
3100
  puuid: z86.string().optional(),
3101
3101
  uuid: z86.string(),
3102
- utime: z86.union([z86.string(), z86.number()]).transform((val) => val === "" ? 0 : Number(val)),
3102
+ utime: z86.preprocess((val) => {
3103
+ if (val === "") return 0;
3104
+ if (typeof val === "string") return Number(val);
3105
+ return val;
3106
+ }, z86.number()),
3103
3107
  importFlag: z86.number().optional(),
3104
3108
  c_spiceCmd: z86.any().optional(),
3105
3109
  hasIdFlag: z86.boolean()
@@ -3463,4 +3467,4 @@ export {
3463
3467
  convertRawEasyToTsx,
3464
3468
  convertEasyEdaJsonToVariousFormats
3465
3469
  };
3466
- //# sourceMappingURL=chunk-RWIQCWYB.js.map
3470
+ //# sourceMappingURL=chunk-KQGYJFNM.js.map