1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/cli/npm
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
..
resolution fix(npm): support old packages and registries with no integrity, but with a sha1sum (#17289) 2023-01-06 11:36:12 -05:00
resolvers fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-10 14:35:44 +01:00
semver chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
cache.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
mod.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
registry.rs fix(npm): support old packages and registries with no integrity, but with a sha1sum (#17289) 2023-01-06 11:36:12 -05:00
tarball.rs fix(npm): support old packages and registries with no integrity, but with a sha1sum (#17289) 2023-01-06 11:36:12 -05:00