Dependency builds for plugos
This commit is contained in:
@@ -27,6 +27,9 @@ export class Plug<HookT> {
|
||||
this.manifest = manifest;
|
||||
// TODO: These need to be explicitly granted, not just taken
|
||||
this.grantedPermissions = manifest.requiredPermissions || [];
|
||||
for (let [dep, code] of Object.entries(manifest.dependencies || {})) {
|
||||
await this.sandbox.loadDependency(dep, code);
|
||||
}
|
||||
}
|
||||
|
||||
syscall(name: string, args: any[]): Promise<any> {
|
||||
|
||||
Reference in New Issue
Block a user