File tree Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @bn-onboard/keepkey" ,
3
- "version" : " 2.0.0-alpha.9 " ,
3
+ "version" : " 2.0.0-alpha.10 " ,
4
4
"description" : " KeepKey module for Onboard.js" ,
5
5
"module" : " dist/index.js" ,
6
6
"browser" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -369,7 +369,10 @@ function keepkey(): WalletInit {
369
369
addressNList,
370
370
message :
371
371
message . slice ( 0 , 2 ) === '0x'
372
- ? ethUtil . toBuffer ( message ) . toString ( 'utf8' )
372
+ ? // @ts -ignore - commonjs weirdness
373
+ ( ethUtil . default || ethUtil )
374
+ . toBuffer ( message )
375
+ . toString ( 'utf8' )
373
376
: message
374
377
} )
375
378
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @bn-onboard/ledger" ,
3
- "version" : " 2.0.0-alpha.13 " ,
3
+ "version" : " 2.0.0-alpha.14 " ,
4
4
"description" : " Ledger module for Onboard.js" ,
5
5
"module" : " dist/index.js" ,
6
6
"browser" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -68,7 +68,10 @@ const getAccount = async (
68
68
) : Promise < Account > => {
69
69
//@ts -ignore
70
70
const { default : HDKey } = await import ( 'hdkey' )
71
- const { publicToAddress, toChecksumAddress } = await import ( 'ethereumjs-util' )
71
+ const ethUtil = await import ( 'ethereumjs-util' )
72
+
73
+ // @ts -ignore - Commonjs importing weirdness
74
+ const { publicToAddress, toChecksumAddress } = ethUtil . default || ethUtil
72
75
73
76
const hdk = new HDKey ( )
74
77
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @bn-onboard/trezor" ,
3
- "version" : " 2.0.0-alpha.8 " ,
3
+ "version" : " 2.0.0-alpha.9 " ,
4
4
"description" : " Trezor module for Onboard.js" ,
5
5
"module" : " dist/index.js" ,
6
6
"browser" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -53,7 +53,10 @@ const getAccount = async (
53
53
) : Promise < Account > => {
54
54
//@ts -ignore
55
55
const { default : HDKey } = await import ( 'hdkey' )
56
- const { publicToAddress, toChecksumAddress } = await import ( 'ethereumjs-util' )
56
+ const ethUtil = await import ( 'ethereumjs-util' )
57
+
58
+ // @ts -ignore - Commonjs importing weirdness
59
+ const { publicToAddress, toChecksumAddress } = ethUtil . default || ethUtil
57
60
58
61
const hdk = new HDKey ( )
59
62
You can’t perform that action at this time.
0 commit comments