Skip to content

Commit

Permalink
fix(build): add named exports to esm wrapper (#176)
Browse files Browse the repository at this point in the history
fixes #175
  • Loading branch information
mirceanis authored Oct 24, 2022
1 parent e7aea58 commit 725ed25
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions esm/index.js
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
}

0 comments on commit 725ed25

Please sign in to comment.