Skip to content

Commit

Permalink
Update util imports to play nicely with UMD
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpshr committed Aug 1, 2018
1 parent 494869d commit 1dafe2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as util from './util';

export * from './AccountTrackerController';
export * from './AddressBookController';
export * from './BaseController';
Expand All @@ -13,4 +11,4 @@ export * from './PhishingController';
export * from './PreferencesController';
export * from './ShapeShiftController';
export * from './TokenRatesController';
export { util };
export * from './util';
6 changes: 6 additions & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,9 @@ export async function safelyExecute(operation: () => Promise<any>) {
/* tslint:disable-next-line:no-empty */
}
}

export default {
getBuyURL,
getGasPrice,
safelyExecute
};

0 comments on commit 1dafe2c

Please sign in to comment.