mirror of
https://github.com/morluto/rea.git
synced 2026-10-31 11:56:12 +00:00
feat(electron): map static process and IPC boundaries
This commit is contained in:
1 parent
3988a866f1
commit
3fa2304bc7
279 files changed
+7481
-775
No files matched your search
@@ -24,12 +24,32 @@ export const failedJavaScriptStaticAnalysis = (): JavaScriptStaticAnalysis => ({
|
||||
role_paths: [],
|
||||
source_map_urls: [],
|
||||
vendors: [],
|
||||
electron: {
|
||||
browser_windows: [],
|
||||
context_bridge_apis: [],
|
||||
ipc: [],
|
||||
sender_validations: [],
|
||||
utility_processes: [],
|
||||
native_addon_bindings: [],
|
||||
},
|
||||
limitations: [
|
||||
"JavaScript source could not be parsed; absence of findings is not evidence of absence.",
|
||||
"JavaScript syntax was parsed as data and was never evaluated.",
|
||||
],
|
||||
});
|
||||
|
||||
/** Normalize one Babel call/new argument into the inert node shared by inspectors. */
|
||||
export const argumentNode = (
|
||||
argument:
|
||||
| t.Expression
|
||||
| t.SpreadElement
|
||||
| t.JSXNamespacedName
|
||||
| t.ArgumentPlaceholder
|
||||
| null
|
||||
| undefined,
|
||||
): t.Node | undefined =>
|
||||
argument !== null && t.isNode(argument) ? argument : undefined;
|
||||
|
||||
/** Recognize the bounded runtime name for a Webpack/Rspack push call. */
|
||||
export const chunkRuntime = (call: t.CallExpression): string | undefined => {
|
||||
if (
|
||||
|
||||
Reference in new issue
Block a user