Skip to content

Commit

Permalink
make compatible with Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua committed Jan 19, 2024
1 parent 91cd789 commit c291a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/warn_on_deprecated_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { Deno } = globalThis as any;
const ALREADY_WARNED_DEPRECATED = new Set<string>();
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 {
Expand Down

0 comments on commit c291a22

Please sign in to comment.