From fa9e7aab6d49f241a4eb30cc0e261f8ceb64af2f Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Wed, 28 Sep 2022 21:46:50 +0900 Subject: feat: add --allow-sys permission flag (#16028) --- cli/dts/lib.deno.unstable.d.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'cli/dts/lib.deno.unstable.d.ts') diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index ec87fa9ca..6cb062396 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -255,11 +255,11 @@ declare namespace Deno { * console.log(Deno.loadavg()); // e.g. [ 0.71, 0.44, 0.44 ] * ``` * - * Requires `allow-env` permission. + * Requires `allow-sys` permission. * There are questions around which permission this needs. And maybe should be * renamed (loadAverage?). * - * @tags allow-env + * @tags allow-sys * @category Observability */ export function loadavg(): number[]; @@ -272,11 +272,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; @@ -292,9 +292,9 @@ declare namespace Deno { * console.log(Deno.systemMemoryInfo()); * ``` * - * Requires `allow-env` permission. + * Requires `allow-sys` permission. * - * @tags allow-env + * @tags allow-sys * @category Runtime Environment */ export function systemMemoryInfo(): SystemMemoryInfo; @@ -355,9 +355,9 @@ declare namespace Deno { * console.log(Deno.networkInterfaces()); * ``` * - * Requires `allow-env` permission. + * Requires `allow-sys` permission. * - * @tags allow-env + * @tags allow-sys * @category Network */ export function networkInterfaces(): NetworkInterfaceInfo[]; @@ -370,9 +370,9 @@ declare namespace Deno { * console.log(Deno.getUid()); * ``` * - * Requires `allow-env` permission. + * Requires `allow-sys` permission. * - * @tags allow-env + * @tags allow-sys * @category Runtime Environment */ export function getUid(): number | null; @@ -385,9 +385,9 @@ declare namespace Deno { * console.log(Deno.getGid()); * ``` * - * Requires `allow-env` permission. + * Requires `allow-sys` permission. * - * @tags allow-env + * @tags allow-sys * @category Runtime Environment */ export function getGid(): number | null; @@ -980,11 +980,11 @@ declare namespace Deno { * console.log(Deno.hostname()); * ``` * - * Requires `allow-env` permission. + * Requires `allow-sys` permission. * Additional consideration is still necessary around the permissions * required. * - * @tags allow-env + * @tags allow-sys * @category Runtime Environment */ export function hostname(): string; -- cgit v1.2.3