Skip to content

Commit

Permalink
Fix ESM (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath authored May 5, 2023
1 parent 60ae84a commit 7ec968f
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/index.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
/**
* Simple facade for consuming a REST API endpoint.
*
* @external RestClient
* {@link https://github.com/ngonzalvez/rest-facade}
*/
export const ManagementClient = require('./management');
export const AuthenticationClient = require('./auth');
export default { ManagementClient, AuthenticationClient }
import mod from './index.js';

export const { ManagementClient, AuthenticationClient } = mod;
export default { ManagementClient, AuthenticationClient };

0 comments on commit 7ec968f

Please sign in to comment.