Fix webpack import and add wallet adapters to export (#142)

This commit is contained in:
ChewingGlass 2021-07-19 13:39:29 -05:00 committed by GitHub
parent d7ce58a3f7
commit d34637dd91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"exports": {
".": "./dist/lib/"
".": "./dist/lib"
},
"license": "Apache-2.0",
"publishConfig": {
@ -29,7 +29,8 @@
"dependencies": {
"@project-serum/serum": "^0.13.34",
"@project-serum/sol-wallet-adapter": "^0.2.0",
"@solana/spl-token": "0.1.4",
"@solana/spl-token": "0.1.6",
"@solana/spl-token-registry": "0.2.176",
"@solana/spl-token-swap": "0.1.0",
"@solana/wallet-base": "0.0.1",
"@solana/wallet-ledger": "0.0.1",

View File

@ -146,10 +146,6 @@ export const cache = {
parser?: AccountParser,
isActive?: boolean | undefined | ((parsed: any) => boolean),
) => {
if (obj.data.length === 0) {
return;
}
const address = typeof id === 'string' ? id : id?.toBase58();
const deserialize = parser ? parser : keyToAccountParser.get(address);
if (!deserialize) {

View File

@ -1 +1,4 @@
export * from './solong';
export * from './phantom';
export * from './torus';
export * as solong_adapter from './solong_adapter';