1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
denoland-deno/core/examples
Bartek Iwańczuk 636352e0ca
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-10 14:35:44 +01:00
..
disable_ops.rs feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-08 23:48:46 +01:00
eval_js_value.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
fs_module_loader.rs refactor(cli,core,ext,rt): remove some unnecessary clone or malloc (#17274) 2023-01-05 14:29:50 -05:00
hello_world.rs feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-08 23:48:46 +01:00
http_bench_json_ops.js chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
http_bench_json_ops.rs feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-08 23:48:46 +01:00
panik.rs feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-08 23:48:46 +01:00
schedule_task.rs feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-08 23:48:46 +01:00
ts_module_loader.rs fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-10 14:35:44 +01:00
wasm.js chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
wasm.rs feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-08 23:48:46 +01:00
wasm.ts chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00