mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-16 03:50:52 +00:00
feat(plugins): add isolated plugin host runtime (#2303)
* feat(plugins): add isolated plugin host runtime * test(plugins): build runtime dependencies before tests * fix(plugins): harden runtime lifecycle and recovery * fix(plugins): harden runtime extension boundaries * fix(plugins): enforce runtime integrity boundaries * fix(plugins): await utility process exit * fix(plugins): harden utility process containment * fix(plugins): close runtime recovery gaps * fix(plugins): harden runtime lifecycle boundaries
This commit is contained in:
1 parent
9b1bb94a25
commit
7a47187e37
83 files changed
+10646
-225
No files matched your search
@@ -0,0 +1,11 @@
|
||||
let mappings = new Map();
|
||||
|
||||
export function initialize(data) {
|
||||
mappings = new Map(Object.entries(data?.mappings ?? {}));
|
||||
}
|
||||
|
||||
export function resolve(specifier, context, nextResolve) {
|
||||
const mapped = mappings.get(specifier);
|
||||
if (mapped) return { url: mapped, shortCircuit: true };
|
||||
return nextResolve(specifier, context);
|
||||
}
|
||||
Reference in new issue
Block a user