mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508)
This makes the permission system more versatile.
This commit is contained in:
parent
e0b9c745c1
commit
62e952559f
74 changed files with 3062 additions and 1891 deletions
|
@ -104,7 +104,7 @@ impl ModuleLoadPreparer {
|
|||
roots: &[ModuleSpecifier],
|
||||
is_dynamic: bool,
|
||||
lib: TsTypeLib,
|
||||
permissions: PermissionsContainer,
|
||||
permissions: crate::file_fetcher::FetchPermissionsOption,
|
||||
) -> Result<(), AnyError> {
|
||||
log::debug!("Preparing module load.");
|
||||
let _pb_clear_guard = self.progress_bar.clear_guard();
|
||||
|
@ -762,7 +762,7 @@ impl<TGraphContainer: ModuleGraphContainer> ModuleLoader
|
|||
&[specifier],
|
||||
is_dynamic,
|
||||
lib,
|
||||
root_permissions,
|
||||
root_permissions.into(),
|
||||
)
|
||||
.await?;
|
||||
update_permit.commit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue