Skip to content

Commit

Permalink
feat: nextjs logs
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler committed Sep 18, 2024
1 parent 4124d7e commit dc40b88
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @biconomy/account

## 4.6.3

### Patch Changes

- fix nextjs logs

## 4.6.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"sideEffects": false,
"name": "@biconomy/account",
"author": "Biconomy",
"version": "4.6.2",
"version": "4.6.3",
"description": "SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.",
"keywords": [
"erc-7579",
Expand Down
17 changes: 1 addition & 16 deletions src/account/utils/Helpers.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1 @@
const VARS_T0_CHECK = [
"BICONOMY_SDK_DEBUG",
"REACT_APP_BICONOMY_SDK_DEBUG",
"NEXT_PUBLIC_BICONOMY_SDK_DEBUG"
]

export const isDebugging = (): boolean => {
try {
// @ts-ignore
return VARS_T0_CHECK.some(
(key) => process?.env?.[key]?.toString() === "true"
)
} catch (e) {
return false
}
}
export const isDebugging = () => !!process.env.NEXT_PUBLIC_BICONOMY_SDK_DEBUG || !!process.env.REACT_APP_BICONOMY_SDK_DEBUG || !!process.env.BICONOMY_SDK_DEBUG

0 comments on commit dc40b88

Please sign in to comment.