Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

Commit 7a3f11e

Browse files
authored
Merge pull request #156 from amiller-gh/patch-1
Better Support Transpiled ES6 Import/Export
2 parents 5fbf91e + c6ec0d8 commit 7a3f11e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ CatapultClient.UnexpectedResponseError = UnexpectedResponseError;
5454
CatapultClient.RateLimitError = RateLimitError;
5555
CatapultClient.BXMLResponse = BXMLResponse;
5656

57+
// Allow modules transformed from ES6 import/export to reference
58+
// this constructor as the default export.
59+
CatapultClient.default = CatapultClient;
60+
5761
Object.keys(queries).forEach(function (type) {
5862
CatapultClient[type] = queries[type];
5963
});

0 commit comments

Comments
 (0)