fix(javascript): hash Electron call paths from canonical values

This commit is contained in:
morluto committed 2026-11-09 14:58:24 +08:00
1 parent 84f3401dcf
commit 2c6f981667
3 files changed
+5 -10

No files matched your search

@@ -184,7 +184,7 @@ const electron = z
loader_authority: z.literal("candidate").exactOptional(),
entry_kind: z.enum(["bridge-member", "ipc-handler"]),
entry: z.string(),
entry_path: strings.optional(),
entry_path: strings.exactOptional(),
channel: z.string().nullable(),
terminal: z.string(),
resolution: z.literal("candidate"),
@@ -209,13 +209,6 @@ const electron = z
),
}),
)
.transform((paths) =>
paths.map(({ entry_kind, entry, entry_path, ...rest }) =>
entry_path === undefined
? { entry_kind, entry, ...rest }
: { entry_kind, entry, entry_path, ...rest },
),
)
.optional(),
browser_windows: z.array(
z.union([