@leofcoin/launch-chain 0.4.23 → 0.4.24
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 +5 -1
- package/exports/index.js +2 -2
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -19,6 +19,9 @@ const { chain, endpoints, mode } = await launch(
|
|
|
19
19
|
|
|
20
20
|
## command line
|
|
21
21
|
|
|
22
|
+
Requires Node.js 24.15.0 or newer. The default native WebRTC backend is
|
|
23
|
+
`@vandeurenglenn/wrtc` 0.7.2 or newer.
|
|
24
|
+
|
|
22
25
|
No monorepo checkout or global install is required:
|
|
23
26
|
|
|
24
27
|
```sh
|
|
@@ -122,13 +125,14 @@ no prebuild are provided since the esm switch, everything is written with the br
|
|
|
122
125
|
### rollup
|
|
123
126
|
|
|
124
127
|
```js
|
|
125
|
-
external: ['@koush/wrtc', '@leofcoin/endpoints/ws', '@leofcoin/endpoints/http']
|
|
128
|
+
external: ['@vandeurenglenn/wrtc', '@koush/wrtc', '@leofcoin/endpoints/ws', '@leofcoin/endpoints/http']
|
|
126
129
|
```
|
|
127
130
|
|
|
128
131
|
### webpack
|
|
129
132
|
|
|
130
133
|
```js
|
|
131
134
|
externals: {
|
|
135
|
+
'@vandeurenglenn/wrtc': false,
|
|
132
136
|
'@koush/wrtc': false,
|
|
133
137
|
'@leofcoin/endpoints/ws': false,
|
|
134
138
|
'@leofcoin/endpoints/http': false
|
package/exports/index.js
CHANGED
|
@@ -111,7 +111,7 @@ const launch = async (input = {}, password) => {
|
|
|
111
111
|
else if (options.mode === 'direct') {
|
|
112
112
|
const node = new Node({ network: options.network, stars: options.stars, networkVersion: options.networkVersion, root: options.root }, password);
|
|
113
113
|
await node.ready;
|
|
114
|
-
await nodeConfig({ network: options.network, networkVersion: options.networkVersion });
|
|
114
|
+
await nodeConfig({ network: options.network, networkVersion: options.networkVersion, root: options.root });
|
|
115
115
|
chain = new Chain({ network: options.network, stars: options.stars, networkVersion: options.networkVersion });
|
|
116
116
|
await chain.ready;
|
|
117
117
|
if (options.ws) {
|
|
@@ -140,7 +140,7 @@ const launch = async (input = {}, password) => {
|
|
|
140
140
|
else {
|
|
141
141
|
const node = new Node({ network: options.network, stars: options.stars, networkVersion: options.networkVersion, root: options.root }, password);
|
|
142
142
|
await node.ready;
|
|
143
|
-
await nodeConfig({ network: options.network, networkVersion: options.networkVersion });
|
|
143
|
+
await nodeConfig({ network: options.network, networkVersion: options.networkVersion, root: options.root });
|
|
144
144
|
chain = new Chain({ network: options.network, stars: options.stars, networkVersion: options.networkVersion });
|
|
145
145
|
await chain.ready;
|
|
146
146
|
if (options.ws) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leofcoin/launch-chain",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -47,7 +47,10 @@
|
|
|
47
47
|
"@leofcoin/endpoints": "^0.4.9",
|
|
48
48
|
"@leofcoin/lib": "^1.3.10",
|
|
49
49
|
"@leofcoin/networks": "^1.1.30",
|
|
50
|
-
"@vandeurenglenn/wrtc": "^0.
|
|
50
|
+
"@vandeurenglenn/wrtc": "^0.7.2"
|
|
51
|
+
},
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=24.15.0"
|
|
51
54
|
},
|
|
52
55
|
"devDependencies": {
|
|
53
56
|
"@rollup/plugin-typescript": "^12.3.0",
|