1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 08:09:08 -05:00
denoland-deno/ext/node
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
..
01_node.js chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
02_require.js chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
Cargo.toml chore: forward v1.29.2 release commit to main (#17277) 2023-01-05 16:48:19 +01:00
errors.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
lib.rs fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-10 14:35:44 +01:00
module_es_shim.js fix(ext/node): fix builtin module module (#15904) 2022-09-17 20:35:32 +09:00
package_json.rs fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-10 14:35:44 +01:00
path.rs feat(npm): add flag for creating and resolving npm packages to a local node_modules folder (#15971) 2022-09-22 11:17:02 -04:00
README.md chore(ext/node): correct publishing for ext/node (#15461) 2022-08-11 17:25:41 -04:00
resolution.rs fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-10 14:35:44 +01:00

deno_node

require and other node related functionality for Deno.