From c291a221e49f6d3ab460460e446b6aaebbb6d1be Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Fri, 19 Jan 2024 12:00:39 +1100 Subject: [PATCH] make compatible with Deploy --- internal/warn_on_deprecated_api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/warn_on_deprecated_api.ts b/internal/warn_on_deprecated_api.ts index 1cedd08cf8b2..4a09ab3cc70d 100644 --- a/internal/warn_on_deprecated_api.ts +++ b/internal/warn_on_deprecated_api.ts @@ -7,7 +7,7 @@ const { Deno } = globalThis as any; const ALREADY_WARNED_DEPRECATED = new Set(); const ENV_VAR_KEY = "DENO_NO_DEPRECATION_WARNINGS"; const shouldDisableDeprecatedApiWarning = - Deno?.permissions.querySync({ name: "env", variable: ENV_VAR_KEY }) + (await Deno?.permissions.query({ name: "env", variable: ENV_VAR_KEY })) .state === "granted" && Deno?.env.get(ENV_VAR_KEY) === "1"; interface WarnDeprecatedApiConfig {