1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 01:59:06 -05:00
denoland-deno/tests/testdata/workers
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
..
bench_large_message.ts
bench_round_robin.ts
bench_startup.ts
bench_worker.ts
broadcast_channel.ts
busy_worker.js
close_in_wasm_reactions.js
close_nested_child.js
close_nested_parent.js
close_race_worker.js
deno_worker.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
drop_handle_race.js
dynamic_remote.ts
env_read_check_worker.js
event_worker.js
event_worker_scope.js
fetching_worker.js
http_worker.js chore(net): soft-remove Deno.serveHttp() (#25451) 2024-09-06 08:15:00 +10:00
image_data_worker.ts
immediately_close_worker.js
message_before_close.js
message_port.ts
nested_worker.js
no_permissions_worker.js BREAKING(permissions): remove --allow-hrtime (#25367) 2024-09-03 11:24:25 +02:00
non_deno_worker.js
parent_read_check_worker.js
permission_echo.js BREAKING(permissions): remove --allow-hrtime (#25367) 2024-09-03 11:24:25 +02:00
post_undefined.ts
racy_worker.js
read_check_granular_worker.js refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
read_check_worker.js
shared_array_buffer.ts
sibling_worker.js
static_remote.ts feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
test_worker.js
test_worker.ts
throwing_worker.js
worker_crypto.js
worker_event_handlers.js
worker_globals.ts
worker_large_message.js
worker_location.ts
worker_navigator.ts
worker_structured_cloning.ts
worker_unstable.ts
worker_with_top_level_await.ts