mirror of
https://github.com/Kong/insomnia.git
synced 2026-05-19 06:12:37 -04:00
add security check
This commit is contained in:
@@ -221,7 +221,8 @@ export async function scanResources(importEntries: ImportEntry[]): Promise<ScanR
|
||||
},
|
||||
};
|
||||
} else {
|
||||
const processFork = process.type === 'renderer' ? window.main.parseImport : (await importMainConvertModule()).convert;
|
||||
const processFork =
|
||||
process.type === 'renderer' ? window.main.parseImport : (await importMainConvertModule()).convert;
|
||||
result = (await processFork(importEntry)) as unknown as ConvertResult;
|
||||
}
|
||||
} catch (err: unknown) {
|
||||
|
||||
Reference in New Issue
Block a user