1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/tests/specs/node
Bartek Iwańczuk 5504acea67
feat: add --allow-import flag (#25469)
This replaces `--allow-net` for import permissions and makes the
security sandbox stricter by also checking permissions for statically
analyzable imports.

By default, this has a value of
`--allow-import=deno.land:443,jsr.io:443,esm.sh:443,raw.githubusercontent.com:443,gist.githubusercontent.com:443`,
but that can be overridden by providing a different set of hosts.

Additionally, when no value is provided, import permissions are inferred
from the CLI arguments so the following works because
`fresh.deno.dev:443` will be added to the list of allowed imports:

```ts
deno run -A -r https://fresh.deno.dev
```

---------

Co-authored-by: David Sherret <dsherret@gmail.com>
2024-09-26 01:50:54 +00:00
..
byonm_phantom_dep_res_failure fix(node): better detection for when to surface node resolution errors (#24653) 2024-07-24 00:22:24 +00:00
child_process_extra_pipes fix(node): Create additional pipes for child processes (#25016) 2024-08-15 09:38:46 -07:00
cjs_analysis_multiple_errors perf: analyze cjs re-exports in parallel (#23894) 2024-05-21 10:35:51 -04:00
cjs_dynamic_import_esm_with_exports chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
cjs_reexport_node_condition fix(node): Include "node" condition during CJS re-export analysis (#25785) 2024-09-21 16:10:38 -07:00
cjs_reexport_same_specifier_in_sub_folder fix(node): better cjs re-export handling (#23760) 2024-05-10 09:55:20 -04:00
detect_es_module_defined_as_cjs feat(node): load ES modules defined as CJS (#22945) 2024-03-21 11:35:51 -07:00
imports_wildcard chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
node_debug fix(ext/node): support NODE_DEBUG env (#23583) 2024-04-29 09:36:53 +00:00
node_process_beforeexit_exit_events_emitted_without_listeners feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
node_test_module feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
node_test_module_no_sanitizers feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
readline_promises fix: actually add missing node:readline/promises module (#24772) 2024-07-28 15:41:10 -04:00
rejection_handled_web_process chore: fix flaky rejection_handled_web_process (#23817) 2024-05-14 23:51:51 +00:00
stdio_ipc fix(ext/node): support stdin child_process IPC & fd stdout/stderr (#24106) 2024-06-07 22:51:32 +05:30
web_node_events_dispatched_in_correct_order feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
worker_threads refactor(tests): move worker_threads itests to spec tests (#23648) 2024-05-03 05:52:47 +00:00
worker_threads_cache fix(node): seperate worker module cache (#23634) 2024-05-16 07:09:35 +00:00