mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 19:53:50 +00:00
refactor(javascript): bind JavaScript source analysis in composition (#11467)
This commit is contained in:
1 parent
24406aa018
commit
64e6caeca2
22 files changed
+102
-34
No files matched your search
@@ -1,10 +1,13 @@
|
||||
import { analyzeJavaScriptApplication } from "../../dist/application/javascript/JavaScriptApplicationService.js";
|
||||
import { javascriptSourceAnalysis } from "../../dist/composition/javascriptSourceAnalysis.js";
|
||||
import { withVerifierArtifactScope } from "./verifier-artifact-scope.mjs";
|
||||
|
||||
/** Analyze one JavaScript application and close its caller-owned resources. */
|
||||
export const analyzeJavaScriptApplicationWithOwnedScope = (input) =>
|
||||
withVerifierArtifactScope(async (scope) => {
|
||||
const result = await analyzeJavaScriptApplication(input, scope);
|
||||
const result = await analyzeJavaScriptApplication(input, scope, {
|
||||
sourceAnalysis: javascriptSourceAnalysis,
|
||||
});
|
||||
if (!result.ok) throw result.error;
|
||||
return result.value;
|
||||
});
|
||||
@@ -21,7 +21,6 @@
|
||||
"android -> native": 1,
|
||||
"apktool -> artifacts": 2,
|
||||
"artifacts -> dotnet": 3,
|
||||
"artifacts -> javascript": 1,
|
||||
"artifacts -> native": 1,
|
||||
"browser -> artifacts": 6,
|
||||
"captures -> pcap": 2,
|
||||
@@ -35,7 +34,7 @@
|
||||
"native -> artifacts": 5
|
||||
},
|
||||
"entry": {
|
||||
"application -> artifacts": 9,
|
||||
"application -> artifacts": 7,
|
||||
"application -> browser": 2,
|
||||
"application -> desktop": 41,
|
||||
"application -> frida": 2,
|
||||
|
||||
@@ -324,6 +324,7 @@ export const ENTRY_FILES = Object.freeze(
|
||||
javascript: [
|
||||
"analysis/JavaScriptAnalysisTransfer.ts",
|
||||
"analysis/JavaScriptAnalysisWorkerServer.ts",
|
||||
"analysis/JavaScriptSourceAnalysis.ts",
|
||||
"recovery/WakaruCommand.ts",
|
||||
"recovery/WakaruProvider.ts",
|
||||
"recovery/WakaruProviderIdentity.ts",
|
||||
|
||||
Reference in new issue
Block a user