1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
denoland-deno/cli/npm/resolvers
Bartek Iwańczuk 1c2db072b5 fix(npm): allow to read package.json if permissions are granted (#17209)
This commit changes signature of "deno_core::ModuleLoader::resolve" to pass
an enum indicating whether or not we're resolving a specifier for dynamic import.

Additionally "CliModuleLoader" was changes to store both "parent permissions" (or
"root permissions") as well as "dynamic permissions" that allow to check for permissions
in top-level module load an dynamic imports.

Then all code paths that have anything to do with Node/npm compat are now checking
for permissions which are passed from module loader instance associated with given
worker.
2023-01-13 11:20:14 -05:00
..
common.rs fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-13 11:20:14 -05:00
global.rs fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-13 11:20:14 -05:00
local.rs fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-13 11:20:14 -05:00
mod.rs fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-13 11:20:14 -05:00