@leofcoin/endpoints 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/exports/http.js CHANGED
@@ -4,7 +4,7 @@ import Router from '@koa/router'
4
4
  import {formatUnits} from '@leofcoin/utils'
5
5
  import {readFile} from 'fs/promises'
6
6
  import Showdown from 'showdown'
7
- import shared from './shared'
7
+ import shared from './shared.js'
8
8
  import { dirname, join} from 'path'
9
9
  import { fileURLToPath } from 'url'
10
10
 
package/exports/shared.js CHANGED
@@ -27,4 +27,8 @@ export const networkStats = async () => {
27
27
  accountsHoldingAmount: formatUnits(accountsHoldingAmount).toString(),
28
28
  topHolders
29
29
  }
30
+ }
31
+
32
+ export default {
33
+ networkStats
30
34
  }
package/exports/ws.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import Server from 'socket-request-server'
2
2
  import {formatUnits} from '@leofcoin/utils'
3
- import shared from './shared'
3
+ import shared from './shared.js'
4
4
 
5
5
  export default (chain, port, networkVersion) => {
6
6
  return Server({ port, protocol: networkVersion }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/endpoints",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {