-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: avoid top-level await #545
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #545 +/- ##
=======================================
Coverage 46.08% 46.08%
=======================================
Files 19 19
Lines 6052 6052
Branches 320 320
=======================================
Hits 2789 2789
Misses 3260 3260
Partials 3 3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const res = Deno.permissions.querySync(env); | ||
let namespace: string | undefined = undefined; | ||
if (res.state === "granted") namespace = Deno.env.get(DEBUG); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const res = Deno.permissions.querySync(env); | |
let namespace: string | undefined = undefined; | |
if (res.state === "granted") namespace = Deno.env.get(DEBUG); | |
const res = Deno.permissions.querySync?.(env); | |
let namespace: string | undefined = undefined; | |
if (!res || res.state === "granted") namespace = Deno.env.get(DEBUG); |
to accomodate Deno Deploy
This is more complicated than I thought, and the benefits are small. I will abandon this. |
What happened? |
TLA is not supported on all platforms, |
Dropping the only instance of TLA