@leofcoin/launch-chain 0.1.2 → 0.1.4

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/README.md CHANGED
@@ -35,4 +35,6 @@ const {chain, endpoints, mode} = await launch()
35
35
  ws: false,
36
36
  http: false
37
37
  }
38
- ```
38
+ ```
39
+
40
+ ## needs --openssl-legacy-provider
package/exports/launch.js CHANGED
@@ -78,7 +78,7 @@ const launch = async (options = {ws, http, network: 'leofcoin:peach'}) => {
78
78
  if (options.ws?.port && !options.ws.url) options.ws.url = `ws://localhost:${options.ws.port}`
79
79
 
80
80
  const clients = await hasClient(options.http.url, options.ws.url, options.networkVersion)
81
- let endpoints
81
+ let endpoints = {}
82
82
  let chain
83
83
  let mode
84
84
 
@@ -93,11 +93,11 @@ const launch = async (options = {ws, http, network: 'leofcoin:peach'}) => {
93
93
 
94
94
  chain = await new Chain()
95
95
 
96
- if (ws) {
96
+ if (endpoints.ws) {
97
97
  await wsServer(chain, options.ws.port, options.networkVersion)
98
98
  endpoints.ws = options.ws.url
99
99
  }
100
- if (http) {
100
+ if (endpoints.http) {
101
101
  await httpServer(chain, options.http.port, options.networkVersion)
102
102
  endpoints.http = options.http.url
103
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/launch-chain",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": "./exports/launch.js"