lino-levan / astral

A high-level puppeteer/playwright-like library for Deno
https://jsr.io/@astral/astral
MIT License
255 stars 17 forks source link

fix(sandbox): use `Deno.permissions.request` instead of `Deno.permissions.query` #88

Closed lowlighter closed 1 month ago

lowlighter commented 2 months ago

A bit late, but hopefully if https://github.com/denoland/deno/pull/25811 lands, the Deno.permissions.query can be replaced with Deno.permissions.request as it was originally intended with https://github.com/lino-levan/astral/pull/34 without breaking non-interactive setups.

https://github.com/lino-levan/astral/blob/7e91588e342561a2e5a3b515e7b3cedf6683d02b/src/page.ts#L234-L247