From 94a5103b0452c43113c222f4dfb32bbf39be5c3f Mon Sep 17 00:00:00 2001 From: Geert-Jan Zwiers Date: Sun, 30 Oct 2022 21:50:34 +0100 Subject: fix: update env to sys permission in jsdoc for Deno.osRelease (#16483) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This API needs `--allow-sys` permissions nowadays, but the docs still mention `--allow-env` permissions. ``` deno run .\file.ts ⚠️ ┌ Deno requests sys access to "osRelease". ├ Requested by `Deno.osRelease()` API ├ Run again with --allow-sys to bypass this prompt. └ Allow? [y/n] (y = yes, allow; n = no, deny) > ``` --- cli/dts/lib.deno.ns.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/dts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index f9baddb06..5e13a509f 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -351,11 +351,11 @@ declare namespace Deno { * console.log(Deno.osRelease()); * ``` * - * Requires `allow-env` permission. + * Requires `allow-sys` permission. * Under consideration to possibly move to Deno.build or Deno.versions and if * it should depend sys-info, which may not be desirable. * - * @tags allow-env + * @tags allow-sys * @category Runtime Environment */ export function osRelease(): string; -- cgit v1.2.3