File tree 10 files changed +20
-16
lines changed
10 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 4
4
test /repo-tests *
5
5
** /bundle.js
6
6
.cache
7
+ .parcel-cache
7
8
8
9
# Logs
9
10
logs
Original file line number Diff line number Diff line change 2
2
"name" : " libp2p-in-browser" ,
3
3
"version" : " 1.0.0" ,
4
4
"description" : " A libp2p node running in the browser" ,
5
- "main" : " index.js " ,
5
+ "main" : " dist/ index.html " ,
6
6
"browserslist" : [
7
7
" last 2 Chrome versions"
8
8
],
29
29
"babel-plugin-syntax-async-functions" : " ^6.13.0" ,
30
30
"babel-plugin-transform-regenerator" : " ^6.26.0" ,
31
31
"babel-polyfill" : " ^6.26.0" ,
32
- "parcel-bundler " : " 1.12.3 "
32
+ "parcel" : " next "
33
33
}
34
34
}
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ async function run() {
17
17
const out = chunk . toString ( )
18
18
19
19
if ( out . includes ( 'Server running at' ) ) {
20
- url = out . replace ( 'Server running at ' , '' )
20
+ url = out . split ( 'Server running at ' ) [ 1 ]
21
21
}
22
22
23
- if ( out . includes ( '✨ Built in ' ) ) {
23
+ if ( out . includes ( 'Built in' ) ) {
24
24
try {
25
25
const browser = await chromium . launch ( ) ;
26
26
const page = await browser . newPage ( ) ;
Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.1" ,
4
4
"private" : true ,
5
5
"description" : " " ,
6
+ "main" : " dist/index.html" ,
6
7
"scripts" : {
7
8
"test" : " echo \" Error: no test specified\" && exit 1" ,
8
9
"build" : " parcel build index.html" ,
15
16
"babel-plugin-syntax-async-functions" : " ^6.13.0" ,
16
17
"babel-plugin-transform-regenerator" : " ^6.26.0" ,
17
18
"babel-polyfill" : " ^6.26.0" ,
18
- "parcel-bundler" : " 1.12.3"
19
+ "parcel-bundler" : " 1.12.3" ,
20
+ "util" : " ^0.12.3"
19
21
},
20
22
"dependencies" : {
21
23
"libp2p" : " ../../" ,
Original file line number Diff line number Diff line change @@ -50,10 +50,12 @@ async function test () {
50
50
const out = chunk . toString ( )
51
51
52
52
if ( out . includes ( 'Server running at' ) ) {
53
- dialerUrl = out . replace ( 'Server running at ' , '' )
53
+ dialerUrl = out . split ( 'Server running at ' ) [ 1 ]
54
54
}
55
55
56
- if ( out . includes ( '✨ Built in ' ) ) {
56
+
57
+ if ( out . includes ( 'Built in ' ) ) {
58
+
57
59
try {
58
60
const browser = await chromium . launch ( ) ;
59
61
const page = await browser . newPage ( ) ;
Original file line number Diff line number Diff line change 18
18
" src"
19
19
],
20
20
"scripts" : {
21
- "prepare" : " aegir build --no-bundle" ,
22
21
"lint" : " aegir lint" ,
23
22
"build" : " aegir build" ,
24
23
"test" : " aegir test" ,
90
89
"it-protocol-buffers" : " ^0.2.0" ,
91
90
"it-take" : " 1.0.0" ,
92
91
"libp2p-crypto" : " ^0.19.0" ,
93
- "libp2p-interfaces" : " libp2p/js-libp2p-interfaces#chore/update-types " ,
92
+ "libp2p-interfaces" : " ^0.9.0 " ,
94
93
"libp2p-utils" : " libp2p/js-libp2p-utils#feat/add-types" ,
95
94
"mafmt" : " ^8.0.0" ,
96
95
"merge-options" : " ^3.0.4" ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const { pipe } = require('it-pipe')
16
16
* @typedef {import('peer-id') } PeerId
17
17
* @typedef {import('multiaddr') } Multiaddr
18
18
* @typedef {import('cids') } CID
19
- * @typedef {import('libp2p-interfaces/src/content-routing/types').ContentRouting } ContentRoutingModule
19
+ * @typedef {import('libp2p-interfaces/src/content-routing/types') } ContentRoutingModule
20
20
*/
21
21
22
22
/**
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ const { updateSelfPeerRecord } = require('./record/utils')
43
43
* @typedef {import('libp2p-interfaces/src/stream-muxer/types').MuxedStream } MuxedStream
44
44
* @typedef {import('libp2p-interfaces/src/transport/types').TransportFactory<any, any> } TransportFactory
45
45
* @typedef {import('libp2p-interfaces/src/stream-muxer/types').MuxerFactory } MuxerFactory
46
- * @typedef {import('libp2p-interfaces/src/content-routing/types').ContentRouting } ContentRoutingModule
47
- * @typedef {import('libp2p-interfaces/src/peer-discovery/types').PeerDiscovery } PeerDiscoveryModule
48
- * @typedef {import('libp2p-interfaces/src/peer-routing/types').PeerRouting } PeerRoutingModule
46
+ * @typedef {import('libp2p-interfaces/src/content-routing/types') } ContentRoutingModule
47
+ * @typedef {import('libp2p-interfaces/src/peer-discovery/types') } PeerDiscoveryModule
48
+ * @typedef {import('libp2p-interfaces/src/peer-routing/types') } PeerRoutingModule
49
49
* @typedef {import('libp2p-interfaces/src/crypto/types').Crypto } Crypto
50
50
* @typedef {import('libp2p-interfaces/src/pubsub') } Pubsub
51
51
* @typedef {import('libp2p-interfaces/src/pubsub').PubsubOptions } PubsubOptions
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const {
25
25
/**
26
26
* @typedef {import('peer-id') } PeerId
27
27
* @typedef {import('multiaddr') } Multiaddr
28
- * @typedef {import('libp2p-interfaces/src/peer-routing/types').PeerRouting } PeerRoutingModule
28
+ * @typedef {import('libp2p-interfaces/src/peer-routing/types') } PeerRoutingModule
29
29
*/
30
30
31
31
/**
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
const debug = require ( 'debug' )
4
- const log = Object . assign ( debug ( 'libp2p:peer-store ' ) , {
5
- error : debug ( 'libp2p:peer-store :err' )
4
+ const log = Object . assign ( debug ( 'libp2p:registrar ' ) , {
5
+ error : debug ( 'libp2p:registrar :err' )
6
6
} )
7
7
const errcode = require ( 'err-code' )
8
8
You can’t perform that action at this time.
0 commit comments