pompelmi 0.22.0 → 0.24.0
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.
- package/README.md +158 -12
- package/dist/pompelmi.cjs +10 -8
- package/dist/pompelmi.cjs.map +1 -1
- package/dist/pompelmi.esm.js +10 -8
- package/dist/pompelmi.esm.js.map +1 -1
- package/package.json +36 -20
package/dist/pompelmi.esm.js
CHANGED
|
@@ -31,9 +31,10 @@ function createPresetScanner(preset, opts = {}) {
|
|
|
31
31
|
opts.decompilationDepth || 'basic';
|
|
32
32
|
if (!opts.decompilationEngine || opts.decompilationEngine === 'binaryninja-hlil' || opts.decompilationEngine === 'both') {
|
|
33
33
|
try {
|
|
34
|
-
// Dynamic import to avoid bundling issues
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
// Dynamic import to avoid bundling issues - using Function to bypass TypeScript type checking
|
|
35
|
+
const importModule = new Function('specifier', 'return import(specifier)');
|
|
36
|
+
importModule('@pompelmi/engine-binaryninja').then((mod) => {
|
|
37
|
+
const binjaScanner = mod.createBinaryNinjaScanner({
|
|
37
38
|
timeout: opts.decompilationTimeout || opts.timeout || 30000,
|
|
38
39
|
depth,
|
|
39
40
|
pythonPath: opts.pythonPath,
|
|
@@ -50,9 +51,10 @@ function createPresetScanner(preset, opts = {}) {
|
|
|
50
51
|
}
|
|
51
52
|
if (!opts.decompilationEngine || opts.decompilationEngine === 'ghidra-pcode' || opts.decompilationEngine === 'both') {
|
|
52
53
|
try {
|
|
53
|
-
// Dynamic import for Ghidra engine (when implemented)
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
// Dynamic import for Ghidra engine (when implemented) - using Function to bypass TypeScript type checking
|
|
55
|
+
const importModule = new Function('specifier', 'return import(specifier)');
|
|
56
|
+
importModule('@pompelmi/engine-ghidra').then((mod) => {
|
|
57
|
+
const ghidraScanner = mod.createGhidraScanner({
|
|
56
58
|
timeout: opts.decompilationTimeout || opts.timeout || 30000,
|
|
57
59
|
depth,
|
|
58
60
|
ghidraPath: opts.ghidraPath,
|
|
@@ -2249,13 +2251,13 @@ class HipaaComplianceManager {
|
|
|
2249
2251
|
constructor(config) {
|
|
2250
2252
|
this.auditEvents = [];
|
|
2251
2253
|
this.config = {
|
|
2252
|
-
enabled: true,
|
|
2253
2254
|
sanitizeErrors: true,
|
|
2254
2255
|
sanitizeFilenames: true,
|
|
2255
2256
|
encryptTempFiles: true,
|
|
2256
2257
|
memoryProtection: true,
|
|
2257
2258
|
requireSecureTransport: true,
|
|
2258
|
-
...config
|
|
2259
|
+
...config,
|
|
2260
|
+
enabled: config.enabled !== undefined ? config.enabled : true
|
|
2259
2261
|
};
|
|
2260
2262
|
this.sessionId = this.generateSessionId();
|
|
2261
2263
|
}
|