Allow-net not applying to npm: imports ?
Hi,
Running the below does not ask me for a permission to access github.com.
The same occur if I use for example
npm:@aws-sdk/client-s3
and try to access a bucket or using npm:node-fetch
.
No net access is requested.
Does allow-net
not apply to modules using npm:
specifier ?
Is there a way to enforce any npm import to request for net access ?
deno version is 1.34.0
thanks6 Replies
Hmm, I do not think this should be the case but I seem to see the same behaviour.
@aapoalas thanks for confirming. It seem also a bug to me but i wasn't sure if i missed something. Should i open an issue ?
Yeah, I think so.
GitHub
npm: imports not needing allow-net to make request · Issue #19301 ·...
Hi, Running the below does not ask me for an allow-net permission to access github.com. #!/usr/bin/env -S deno run --allow-read --allow-env import axios from "npm:axios" await axios.get(&...
This is already fixed on
main
, I will release it tomorrowI had somehow missed this prior, sorry.