mirror of
https://github.com/morluto/rea.git
synced 2026-11-10 00:36:35 +00:00
fix(javascript): hash Electron call paths from canonical values
This commit is contained in:
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([
|
||||
|
||||
Reference in new issue
Block a user