sylcS
Denoβ€’3y agoβ€’
6 replies
sylc

Allow-net not applying to npm: imports ?

Hi,
Running the below does not ask me for a permission to access github.com.

import axios from "npm:axios"

await axios.get('https://github.com')
  .then(function (response) {
    // handle success
    console.log(response);
  }).catch(err => {
    console.log(err)
  })


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
thanks
Was this page helpful?