Skip to content

Commit

Permalink
Fix for ES Modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
retrixe committed Jan 24, 2022
1 parent 23cb138 commit 4e7d242
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import WebSocket from 'isomorphic-ws'
import fetch from 'isomorphic-unfetch'

import OctyneError from './error'
import OctyneError from './error.js'

/**
* The Octyne API client.
Expand Down Expand Up @@ -326,5 +326,5 @@ export const Client = OctyneClient
function OctyneApi (url, info) { // Avoid setting these properties on Client.
return new Client(url, info)
}
export { default as OctyneError } from './error'
export { default as OctyneError } from './error.js'
export default OctyneApi

0 comments on commit 4e7d242

Please sign in to comment.