1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/core/examples
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
..
disable_ops.rs feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-13 11:20:13 -05:00
eval_js_value.rs chore: update copyright year to 2023 (#17247) 2023-01-05 13:05:49 +01:00
fs_module_loader.rs refactor(cli,core,ext,rt): remove some unnecessary clone or malloc (#17274) 2023-01-13 11:20:11 -05:00
hello_world.rs feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-13 11:20:13 -05:00
http_bench_json_ops.js chore: update copyright year to 2023 (#17247) 2023-01-05 13:05:49 +01:00
http_bench_json_ops.rs feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-13 11:20:13 -05:00
panik.rs feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-13 11:20:13 -05:00
schedule_task.rs feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-13 11:20:13 -05:00
ts_module_loader.rs fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-13 11:20:14 -05:00
wasm.js chore: update copyright year to 2023 (#17247) 2023-01-05 13:05:49 +01:00
wasm.rs feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-13 11:20:13 -05:00
wasm.ts chore: update copyright year to 2023 (#17247) 2023-01-05 13:05:49 +01:00