Skip to content

Commit

Permalink
fixup! Make uniffiIsDebug definition runtime agnostic
Browse files Browse the repository at this point in the history
Handle prettier reformatting
  • Loading branch information
kraenhansen committed Dec 8, 2024
1 parent fb9f6e6 commit 18c74fa
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ const {
} = {{ entry.0.1 }}.converters;
{%- endfor %}

// @ts-ignore -- The process global might not be defined
const uniffiIsDebug = (typeof process !== "object" || typeof process.env !== "object" || process.env.NODE_ENV !== "production" || {{ config.is_debug() }});
const uniffiIsDebug =
// @ts-ignore -- The process global might not be defined
typeof process !== "object" ||
// @ts-ignore -- The process global might not be defined
process?.env?.NODE_ENV !== "production" ||
{{ config.is_debug() }};

{%- call ts::docstring_value(ci.namespace_docstring(), 0) %}

Expand Down

0 comments on commit 18c74fa

Please sign in to comment.