Skip to content

Commit

Permalink
[core] Expose version into window object, if available (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardsetting authored May 13, 2024
1 parent 377e263 commit 19f4fdd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-dryers-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aptos-labs/wallet-adapter-core": minor
---

Exposing wallet adapter core version into window object
6 changes: 6 additions & 0 deletions packages/wallet-adapter-core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { WALLET_ADAPTER_CORE_VERSION } from './version';

export { WalletCore } from "./WalletCore";
export * from "./LegacyWalletPlugins";
export * from "./constants";
export * from "./utils";
export * from "./AIP62StandardWallets";

if (typeof window !== 'undefined') {
(window as any).WALLET_ADAPTER_CORE_VERSION = WALLET_ADAPTER_CORE_VERSION;
}

0 comments on commit 19f4fdd

Please sign in to comment.