-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): add named exports to esm wrapper (#176)
fixes #175
- Loading branch information
Showing
1 changed file
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
import cjsModule from '../lib/index.js'; | ||
import cjsModule from '../lib/index.js' | ||
|
||
export default cjsModule | ||
const getResolver = cjsModule.getResolver | ||
const deployments = cjsModule.deployments | ||
const REGISTRY = cjsModule.REGISTRY | ||
const bytes32toString = cjsModule.bytes32toString | ||
const stringToBytes32 = cjsModule.stringToBytes32 | ||
const EthrDidController = cjsModule.EthrDidController | ||
const verificationMethodTypes = cjsModule.verificationMethodTypes | ||
const identifierMatcher = cjsModule.identifierMatcher | ||
const interpretIdentifier = cjsModule.interpretIdentifier | ||
const Errors = cjsModule.Errors | ||
const EthereumDIDRegistry = cjsModule.EthereumDIDRegistry | ||
|
||
export { | ||
getResolver, | ||
deployments, | ||
REGISTRY, | ||
bytes32toString, | ||
stringToBytes32, | ||
EthrDidController, | ||
verificationMethodTypes, | ||
identifierMatcher, | ||
interpretIdentifier, | ||
Errors, | ||
EthereumDIDRegistry, | ||
cjsModule as default | ||
} |