Skip to content

Commit 1dafe2c

Browse files
committed
Update util imports to play nicely with UMD
1 parent 494869d commit 1dafe2c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import * as util from './util';
2-
31
export * from './AccountTrackerController';
42
export * from './AddressBookController';
53
export * from './BaseController';
@@ -13,4 +11,4 @@ export * from './PhishingController';
1311
export * from './PreferencesController';
1412
export * from './ShapeShiftController';
1513
export * from './TokenRatesController';
16-
export { util };
14+
export * from './util';

src/util.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,9 @@ export async function safelyExecute(operation: () => Promise<any>) {
6767
/* tslint:disable-next-line:no-empty */
6868
}
6969
}
70+
71+
export default {
72+
getBuyURL,
73+
getGasPrice,
74+
safelyExecute
75+
};

0 commit comments

Comments
 (0)