-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure browser/Node exports separation
This helps to avoid missing some common export accidentally
- Loading branch information
Showing
3 changed files
with
40 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,2 @@ | ||
'use strict'; | ||
|
||
import * as providers from './providers'; | ||
import * as utils from './utils'; | ||
import * as keyStores from './key_stores/browser-index'; | ||
import * as transactions from './transaction'; | ||
|
||
import { Account } from './account'; | ||
import * as accountCreator from './account_creator'; | ||
import { Connection } from './connection'; | ||
import { Signer, InMemorySigner } from './signer'; | ||
import { Contract } from './contract'; | ||
import { KeyPair } from './utils/key_pair'; | ||
import { connect } from './near'; | ||
|
||
// TODO: Deprecate and remove WalletAccount | ||
import { WalletAccount, WalletConnection } from './wallet-account'; | ||
|
||
export { | ||
accountCreator, | ||
keyStores, | ||
providers, | ||
utils, | ||
transactions, | ||
|
||
Account, | ||
Connection, | ||
Contract, | ||
InMemorySigner, | ||
Signer, | ||
KeyPair, | ||
|
||
connect, | ||
|
||
WalletAccount, | ||
WalletConnection | ||
}; | ||
export * as keyStores from './key_stores/browser-index'; | ||
export * from './common-index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import * as providers from './providers'; | ||
import * as utils from './utils'; | ||
import * as transactions from './transaction'; | ||
import * as validators from './validators'; | ||
|
||
import { Account } from './account'; | ||
import * as accountCreator from './account_creator'; | ||
import { Connection } from './connection'; | ||
import { Signer, InMemorySigner } from './signer'; | ||
import { Contract } from './contract'; | ||
import { KeyPair } from './utils/key_pair'; | ||
import { connect, Near } from './near'; | ||
|
||
// TODO: Deprecate and remove WalletAccount | ||
import { WalletAccount, WalletConnection } from './wallet-account'; | ||
|
||
export { | ||
accountCreator, | ||
providers, | ||
utils, | ||
transactions, | ||
validators, | ||
|
||
Account, | ||
Connection, | ||
Contract, | ||
InMemorySigner, | ||
Signer, | ||
KeyPair, | ||
|
||
connect, | ||
Near, | ||
|
||
WalletAccount, | ||
WalletConnection | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,2 @@ | ||
import * as providers from './providers'; | ||
import * as utils from './utils'; | ||
import * as keyStores from './key_stores'; | ||
import * as transactions from './transaction'; | ||
import * as validators from './validators'; | ||
|
||
import { Account } from './account'; | ||
import * as accountCreator from './account_creator'; | ||
import { Connection } from './connection'; | ||
import { Signer, InMemorySigner } from './signer'; | ||
import { Contract } from './contract'; | ||
import { KeyPair } from './utils/key_pair'; | ||
import { connect, Near } from './near'; | ||
|
||
// TODO: Deprecate and remove WalletAccount | ||
import { WalletAccount, WalletConnection } from './wallet-account'; | ||
|
||
export { | ||
accountCreator, | ||
keyStores, | ||
providers, | ||
utils, | ||
transactions, | ||
validators, | ||
|
||
Account, | ||
Connection, | ||
Contract, | ||
InMemorySigner, | ||
Signer, | ||
KeyPair, | ||
|
||
connect, | ||
Near, | ||
|
||
WalletAccount, | ||
WalletConnection | ||
}; | ||
export * as keyStores from './key_stores/index'; | ||
export * from './common-index'; |