libp2p 0.36.2 → 0.37.0
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/LICENSE +3 -21
- package/README.md +13 -10
- package/dist/src/address-manager/index.d.ts +34 -52
- package/dist/src/address-manager/index.d.ts.map +1 -1
- package/dist/src/address-manager/index.js +81 -0
- package/dist/src/address-manager/index.js.map +1 -0
- package/dist/src/circuit/auto-relay.d.ts +24 -85
- package/dist/src/circuit/auto-relay.d.ts.map +1 -1
- package/dist/src/circuit/auto-relay.js +216 -0
- package/dist/src/circuit/auto-relay.js.map +1 -0
- package/dist/src/circuit/circuit/hop.d.ts +26 -53
- package/dist/src/circuit/circuit/hop.d.ts.map +1 -1
- package/dist/src/circuit/circuit/hop.js +138 -0
- package/dist/src/circuit/circuit/hop.js.map +1 -0
- package/dist/src/circuit/circuit/stop.d.ts +18 -10
- package/dist/src/circuit/circuit/stop.d.ts.map +1 -1
- package/dist/src/circuit/circuit/stop.js +49 -0
- package/dist/src/circuit/circuit/stop.js.map +1 -0
- package/dist/src/circuit/circuit/stream-handler.d.ts +19 -38
- package/dist/src/circuit/circuit/stream-handler.d.ts.map +1 -1
- package/dist/src/circuit/circuit/stream-handler.js +59 -0
- package/dist/src/circuit/circuit/stream-handler.js.map +1 -0
- package/dist/src/circuit/circuit/utils.d.ts +3 -6
- package/dist/src/circuit/circuit/utils.d.ts.map +1 -1
- package/dist/src/circuit/circuit/utils.js +43 -0
- package/dist/src/circuit/circuit/utils.js.map +1 -0
- package/dist/src/circuit/constants.d.ts +24 -6
- package/dist/src/circuit/constants.d.ts.map +1 -1
- package/dist/src/circuit/constants.js +26 -0
- package/dist/src/circuit/constants.js.map +1 -0
- package/dist/src/circuit/index.d.ts +41 -74
- package/dist/src/circuit/index.d.ts.map +1 -1
- package/dist/src/circuit/index.js +69 -0
- package/dist/src/circuit/index.js.map +1 -0
- package/dist/src/circuit/listener.d.ts +8 -3
- package/dist/src/circuit/listener.d.ts.map +1 -1
- package/dist/src/circuit/listener.js +62 -0
- package/dist/src/circuit/listener.js.map +1 -0
- package/dist/src/circuit/multicodec.d.ts +1 -1
- package/dist/src/circuit/multicodec.d.ts.map +1 -1
- package/dist/src/circuit/multicodec.js +2 -0
- package/dist/src/circuit/multicodec.js.map +1 -0
- package/dist/src/circuit/pb/index.d.ts +52 -0
- package/dist/src/circuit/pb/index.d.ts.map +1 -0
- package/dist/src/circuit/pb/index.js +98 -0
- package/dist/src/circuit/pb/index.js.map +1 -0
- package/dist/src/circuit/transport.d.ts +18 -78
- package/dist/src/circuit/transport.d.ts.map +1 -1
- package/dist/src/circuit/transport.js +192 -0
- package/dist/src/circuit/transport.js.map +1 -0
- package/dist/src/circuit/utils.d.ts +5 -2
- package/dist/src/circuit/utils.d.ts.map +1 -1
- package/dist/src/circuit/utils.js +11 -0
- package/dist/src/circuit/utils.js.map +1 -0
- package/dist/src/config.d.ts +3 -85
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +91 -0
- package/dist/src/config.js.map +1 -0
- package/dist/src/connection-manager/auto-dialler.d.ts +24 -41
- package/dist/src/connection-manager/auto-dialler.d.ts.map +1 -1
- package/dist/src/connection-manager/auto-dialler.js +105 -0
- package/dist/src/connection-manager/auto-dialler.js.map +1 -0
- package/dist/src/connection-manager/dialer/auto-dialer.d.ts +16 -0
- package/dist/src/connection-manager/dialer/auto-dialer.d.ts.map +1 -0
- package/dist/src/connection-manager/dialer/auto-dialer.js +37 -0
- package/dist/src/connection-manager/dialer/auto-dialer.js.map +1 -0
- package/dist/src/connection-manager/dialer/dial-request.d.ts +27 -0
- package/dist/src/connection-manager/dialer/dial-request.d.ts.map +1 -0
- package/dist/src/connection-manager/dialer/dial-request.js +83 -0
- package/dist/src/connection-manager/dialer/dial-request.js.map +1 -0
- package/dist/src/connection-manager/dialer/index.d.ts +104 -0
- package/dist/src/connection-manager/dialer/index.d.ts.map +1 -0
- package/dist/src/connection-manager/dialer/index.js +267 -0
- package/dist/src/connection-manager/dialer/index.js.map +1 -0
- package/dist/src/connection-manager/index.d.ts +102 -136
- package/dist/src/connection-manager/index.d.ts.map +1 -1
- package/dist/src/connection-manager/index.js +333 -0
- package/dist/src/connection-manager/index.js.map +1 -0
- package/dist/src/connection-manager/latency-monitor.d.ts +72 -97
- package/dist/src/connection-manager/latency-monitor.d.ts.map +1 -1
- package/dist/src/connection-manager/latency-monitor.js +220 -0
- package/dist/src/connection-manager/latency-monitor.js.map +1 -0
- package/dist/src/connection-manager/visibility-change-emitter.d.ts +15 -16
- package/dist/src/connection-manager/visibility-change-emitter.d.ts.map +1 -1
- package/dist/src/connection-manager/visibility-change-emitter.js +118 -0
- package/dist/src/connection-manager/visibility-change-emitter.js.map +1 -0
- package/dist/src/constants.d.ts +22 -10
- package/dist/src/constants.d.ts.map +1 -1
- package/dist/src/constants.js +27 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/content-routing/index.d.ts +27 -81
- package/dist/src/content-routing/index.d.ts.map +1 -1
- package/dist/src/content-routing/index.js +99 -0
- package/dist/src/content-routing/index.js.map +1 -0
- package/dist/src/content-routing/utils.d.ts +6 -49
- package/dist/src/content-routing/utils.d.ts.map +1 -1
- package/dist/src/content-routing/utils.js +42 -0
- package/dist/src/content-routing/utils.js.map +1 -0
- package/dist/src/dht/dht-content-routing.d.ts +10 -24
- package/dist/src/dht/dht-content-routing.d.ts.map +1 -1
- package/dist/src/dht/dht-content-routing.js +32 -0
- package/dist/src/dht/dht-content-routing.js.map +1 -0
- package/dist/src/dht/dht-peer-routing.d.ts +9 -24
- package/dist/src/dht/dht-peer-routing.d.ts.map +1 -1
- package/dist/src/dht/dht-peer-routing.js +26 -0
- package/dist/src/dht/dht-peer-routing.js.map +1 -0
- package/dist/src/dht/dummy-dht.d.ts +20 -0
- package/dist/src/dht/dummy-dht.d.ts.map +1 -0
- package/dist/src/dht/dummy-dht.js +46 -0
- package/dist/src/dht/dummy-dht.js.map +1 -0
- package/dist/src/errors.d.ts +70 -63
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +75 -0
- package/dist/src/errors.js.map +1 -0
- package/dist/src/fetch/constants.d.ts +1 -1
- package/dist/src/fetch/constants.d.ts.map +1 -1
- package/dist/src/fetch/constants.js +3 -0
- package/dist/src/fetch/constants.js.map +1 -0
- package/dist/src/fetch/index.d.ts +30 -49
- package/dist/src/fetch/index.d.ts.map +1 -1
- package/dist/src/fetch/index.js +129 -0
- package/dist/src/fetch/index.js.map +1 -0
- package/dist/src/fetch/pb/proto.d.ts +27 -0
- package/dist/src/fetch/pb/proto.d.ts.map +1 -0
- package/dist/src/fetch/pb/proto.js +50 -0
- package/dist/src/fetch/pb/proto.js.map +1 -0
- package/dist/src/get-peer.d.ts +4 -11
- package/dist/src/get-peer.d.ts.map +1 -1
- package/dist/src/get-peer.js +43 -0
- package/dist/src/get-peer.js.map +1 -0
- package/dist/src/identify/consts.d.ts +9 -9
- package/dist/src/identify/consts.d.ts.map +1 -1
- package/dist/src/identify/consts.js +11 -0
- package/dist/src/identify/consts.js.map +1 -0
- package/dist/src/identify/index.d.ts +42 -96
- package/dist/src/identify/index.d.ts.map +1 -1
- package/dist/src/identify/index.js +322 -0
- package/dist/src/identify/index.js.map +1 -0
- package/dist/src/identify/pb/message.d.ts +16 -0
- package/dist/src/identify/pb/message.d.ts.map +1 -0
- package/dist/src/identify/pb/message.js +24 -0
- package/dist/src/identify/pb/message.js.map +1 -0
- package/dist/src/index.d.ts +150 -496
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +9 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/insecure/index.d.ts +9 -0
- package/dist/src/insecure/index.d.ts.map +1 -0
- package/dist/src/insecure/index.js +81 -0
- package/dist/src/insecure/index.js.map +1 -0
- package/dist/src/insecure/pb/proto.d.ts +29 -0
- package/dist/src/insecure/pb/proto.d.ts.map +1 -0
- package/dist/src/insecure/pb/proto.js +53 -0
- package/dist/src/insecure/pb/proto.js.map +1 -0
- package/dist/src/keychain/cms.d.ts +6 -14
- package/dist/src/keychain/cms.d.ts.map +1 -1
- package/dist/src/keychain/cms.js +129 -0
- package/dist/src/keychain/cms.js.map +1 -0
- package/dist/src/keychain/index.d.ts +60 -81
- package/dist/src/keychain/index.d.ts.map +1 -1
- package/dist/src/keychain/index.js +492 -0
- package/dist/src/keychain/index.js.map +1 -0
- package/dist/src/keychain/util.d.ts +3 -6
- package/dist/src/keychain/util.d.ts.map +1 -1
- package/dist/src/keychain/util.js +79 -0
- package/dist/src/keychain/util.js.map +1 -0
- package/dist/src/libp2p.d.ts +80 -0
- package/dist/src/libp2p.d.ts.map +1 -0
- package/dist/src/libp2p.js +397 -0
- package/dist/src/libp2p.js.map +1 -0
- package/dist/src/metrics/index.d.ts +47 -104
- package/dist/src/metrics/index.d.ts.map +1 -1
- package/dist/src/metrics/index.js +231 -0
- package/dist/src/metrics/index.js.map +1 -0
- package/dist/src/metrics/moving-average.d.ts +14 -0
- package/dist/src/metrics/moving-average.d.ts.map +1 -0
- package/dist/src/metrics/moving-average.js +40 -0
- package/dist/src/metrics/moving-average.js.map +1 -0
- package/dist/src/metrics/stats.d.ts +41 -93
- package/dist/src/metrics/stats.d.ts.map +1 -1
- package/dist/src/metrics/stats.js +183 -0
- package/dist/src/metrics/stats.js.map +1 -0
- package/dist/src/nat-manager.d.ts +42 -99
- package/dist/src/nat-manager.d.ts.map +1 -1
- package/dist/src/nat-manager.js +114 -0
- package/dist/src/nat-manager.js.map +1 -0
- package/dist/src/peer-record-updater.d.ts +15 -0
- package/dist/src/peer-record-updater.d.ts.map +1 -0
- package/dist/src/peer-record-updater.js +44 -0
- package/dist/src/peer-record-updater.js.map +1 -0
- package/dist/src/peer-routing.d.ts +40 -84
- package/dist/src/peer-routing.d.ts.map +1 -1
- package/dist/src/peer-routing.js +108 -0
- package/dist/src/peer-routing.js.map +1 -0
- package/dist/src/ping/constants.d.ts +4 -4
- package/dist/src/ping/constants.d.ts.map +1 -1
- package/dist/src/ping/constants.js +5 -0
- package/dist/src/ping/constants.js.map +1 -0
- package/dist/src/ping/index.d.ts +17 -31
- package/dist/src/ping/index.d.ts.map +1 -1
- package/dist/src/ping/index.js +57 -0
- package/dist/src/ping/index.js.map +1 -0
- package/dist/src/pnet/crypto.d.ts +15 -5
- package/dist/src/pnet/crypto.d.ts.map +1 -1
- package/dist/src/pnet/crypto.js +60 -0
- package/dist/src/pnet/crypto.js.map +1 -0
- package/dist/src/pnet/errors.d.ts +5 -5
- package/dist/src/pnet/errors.d.ts.map +1 -1
- package/dist/src/pnet/errors.js +6 -0
- package/dist/src/pnet/errors.js.map +1 -0
- package/dist/src/pnet/index.d.ts +12 -20
- package/dist/src/pnet/index.d.ts.map +1 -1
- package/dist/src/pnet/index.js +67 -0
- package/dist/src/pnet/index.js.map +1 -0
- package/dist/src/pnet/key-generator.d.ts +3 -7
- package/dist/src/pnet/key-generator.d.ts.map +1 -1
- package/dist/src/pnet/key-generator.js +25 -0
- package/dist/src/pnet/key-generator.js.map +1 -0
- package/dist/src/pubsub/dummy-pubsub.d.ts +17 -0
- package/dist/src/pubsub/dummy-pubsub.d.ts.map +1 -0
- package/dist/src/pubsub/dummy-pubsub.js +37 -0
- package/dist/src/pubsub/dummy-pubsub.js.map +1 -0
- package/dist/src/registrar.d.ts +26 -65
- package/dist/src/registrar.d.ts.map +1 -1
- package/dist/src/registrar.js +144 -0
- package/dist/src/registrar.js.map +1 -0
- package/dist/src/transport-manager.d.ts +36 -82
- package/dist/src/transport-manager.d.ts.map +1 -1
- package/dist/src/transport-manager.js +223 -0
- package/dist/src/transport-manager.js.map +1 -0
- package/dist/src/upgrader.d.ts +49 -129
- package/dist/src/upgrader.d.ts.map +1 -1
- package/dist/src/upgrader.js +402 -0
- package/dist/src/upgrader.js.map +1 -0
- package/dist/src/version.d.ts +3 -0
- package/dist/src/version.d.ts.map +1 -0
- package/dist/src/version.js +3 -0
- package/dist/src/version.js.map +1 -0
- package/package.json +144 -201
- package/src/address-manager/index.ts +130 -0
- package/src/circuit/README.md +16 -11
- package/src/circuit/auto-relay.ts +286 -0
- package/src/circuit/circuit/hop.ts +211 -0
- package/src/circuit/circuit/stop.ts +78 -0
- package/src/circuit/circuit/stream-handler.ts +86 -0
- package/src/circuit/circuit/{utils.js → utils.ts} +9 -25
- package/src/circuit/constants.ts +31 -0
- package/src/circuit/index.ts +120 -0
- package/src/circuit/listener.ts +82 -0
- package/src/circuit/multicodec.ts +2 -0
- package/src/circuit/{protocol → pb}/index.proto +1 -1
- package/src/circuit/pb/index.ts +117 -0
- package/src/circuit/transport.ts +219 -0
- package/src/circuit/utils.ts +12 -0
- package/src/config.ts +99 -0
- package/src/connection-manager/auto-dialler.ts +154 -0
- package/src/connection-manager/dialer/auto-dialer.ts +59 -0
- package/src/{dialer/dial-request.js → connection-manager/dialer/dial-request.ts} +60 -51
- package/src/connection-manager/dialer/index.ts +382 -0
- package/src/connection-manager/index.ts +508 -0
- package/src/connection-manager/latency-monitor.ts +319 -0
- package/src/connection-manager/{visibility-change-emitter.js → visibility-change-emitter.ts} +48 -38
- package/src/constants.ts +31 -0
- package/src/content-routing/index.ts +144 -0
- package/src/content-routing/utils.ts +54 -0
- package/src/dht/dht-content-routing.ts +43 -0
- package/src/dht/dht-peer-routing.ts +35 -0
- package/src/dht/dummy-dht.ts +60 -0
- package/src/errors.ts +73 -0
- package/src/fetch/README.md +1 -1
- package/src/fetch/constants.ts +3 -0
- package/src/fetch/index.ts +167 -0
- package/src/fetch/{proto.proto → pb/proto.proto} +0 -0
- package/src/fetch/pb/proto.ts +65 -0
- package/src/get-peer.ts +57 -0
- package/src/identify/consts.ts +13 -0
- package/src/identify/index.ts +445 -0
- package/src/identify/{message.proto → pb/message.proto} +0 -0
- package/src/identify/pb/message.ts +37 -0
- package/src/index.ts +220 -0
- package/src/insecure/index.ts +101 -0
- package/src/insecure/{proto.proto → pb/proto.proto} +0 -0
- package/src/insecure/pb/proto.ts +68 -0
- package/src/keychain/{cms.js → cms.ts} +62 -58
- package/src/keychain/index.ts +587 -0
- package/src/keychain/{util.js → util.ts} +7 -17
- package/src/libp2p.ts +538 -0
- package/src/metrics/index.ts +310 -0
- package/src/metrics/moving-average.ts +53 -0
- package/src/metrics/stats.ts +238 -0
- package/src/nat-manager.ts +194 -0
- package/src/peer-record-updater.ts +55 -0
- package/src/peer-routing.ts +186 -0
- package/src/ping/README.md +1 -1
- package/src/ping/constants.ts +5 -0
- package/src/ping/index.ts +84 -0
- package/src/pnet/README.md +2 -2
- package/src/pnet/crypto.ts +67 -0
- package/src/pnet/errors.ts +5 -0
- package/src/pnet/index.ts +97 -0
- package/src/pnet/key-generator.ts +28 -0
- package/src/pubsub/dummy-pubsub.ts +51 -0
- package/src/registrar.ts +189 -0
- package/src/transport-manager.ts +281 -0
- package/src/upgrader.ts +499 -0
- package/src/version.ts +3 -0
- package/dist/index.min.js +0 -55
- package/dist/src/circuit/protocol/index.d.ts +0 -173
- package/dist/src/dialer/dial-request.d.ts +0 -55
- package/dist/src/dialer/dial-request.d.ts.map +0 -1
- package/dist/src/dialer/index.d.ts +0 -182
- package/dist/src/dialer/index.d.ts.map +0 -1
- package/dist/src/fetch/proto.d.ts +0 -134
- package/dist/src/identify/message.d.ts +0 -95
- package/dist/src/insecure/plaintext.d.ts +0 -12
- package/dist/src/insecure/plaintext.d.ts.map +0 -1
- package/dist/src/insecure/proto.d.ts +0 -128
- package/dist/src/metrics/old-peers.d.ts +0 -3
- package/dist/src/metrics/old-peers.d.ts.map +0 -1
- package/dist/src/metrics/tracked-map.d.ts +0 -8
- package/dist/src/metrics/tracked-map.d.ts.map +0 -1
- package/dist/src/peer-store/address-book.d.ts +0 -67
- package/dist/src/peer-store/address-book.d.ts.map +0 -1
- package/dist/src/peer-store/index.d.ts +0 -58
- package/dist/src/peer-store/index.d.ts.map +0 -1
- package/dist/src/peer-store/key-book.d.ts +0 -40
- package/dist/src/peer-store/key-book.d.ts.map +0 -1
- package/dist/src/peer-store/metadata-book.d.ts +0 -58
- package/dist/src/peer-store/metadata-book.d.ts.map +0 -1
- package/dist/src/peer-store/pb/peer.d.ts +0 -222
- package/dist/src/peer-store/proto-book.d.ts +0 -43
- package/dist/src/peer-store/proto-book.d.ts.map +0 -1
- package/dist/src/peer-store/store.d.ts +0 -73
- package/dist/src/peer-store/store.d.ts.map +0 -1
- package/dist/src/peer-store/types.d.ts +0 -202
- package/dist/src/peer-store/types.d.ts.map +0 -1
- package/dist/src/ping/util.d.ts +0 -5
- package/dist/src/ping/util.d.ts.map +0 -1
- package/dist/src/pubsub-adapter.d.ts +0 -22
- package/dist/src/pubsub-adapter.d.ts.map +0 -1
- package/dist/src/record/envelope/envelope.d.ts +0 -77
- package/dist/src/record/envelope/index.d.ts +0 -80
- package/dist/src/record/envelope/index.d.ts.map +0 -1
- package/dist/src/record/peer-record/consts.d.ts +0 -4
- package/dist/src/record/peer-record/consts.d.ts.map +0 -1
- package/dist/src/record/peer-record/index.d.ts +0 -60
- package/dist/src/record/peer-record/index.d.ts.map +0 -1
- package/dist/src/record/peer-record/peer-record.d.ts +0 -133
- package/dist/src/record/utils.d.ts +0 -12
- package/dist/src/record/utils.d.ts.map +0 -1
- package/dist/src/types.d.ts +0 -90
- package/dist/src/types.d.ts.map +0 -1
- package/src/address-manager/index.js +0 -96
- package/src/circuit/auto-relay.js +0 -302
- package/src/circuit/circuit/hop.js +0 -205
- package/src/circuit/circuit/stop.js +0 -81
- package/src/circuit/circuit/stream-handler.js +0 -94
- package/src/circuit/constants.js +0 -12
- package/src/circuit/index.js +0 -102
- package/src/circuit/listener.js +0 -75
- package/src/circuit/multicodec.js +0 -5
- package/src/circuit/protocol/index.d.ts +0 -173
- package/src/circuit/protocol/index.js +0 -530
- package/src/circuit/transport.js +0 -229
- package/src/circuit/utils.js +0 -17
- package/src/config.js +0 -114
- package/src/connection-manager/auto-dialler.js +0 -132
- package/src/connection-manager/index.js +0 -374
- package/src/connection-manager/latency-monitor.js +0 -264
- package/src/constants.js +0 -18
- package/src/content-routing/index.js +0 -163
- package/src/content-routing/utils.js +0 -89
- package/src/dht/dht-content-routing.js +0 -44
- package/src/dht/dht-peer-routing.js +0 -51
- package/src/dialer/index.js +0 -376
- package/src/errors.js +0 -66
- package/src/fetch/constants.js +0 -6
- package/src/fetch/index.js +0 -159
- package/src/fetch/proto.d.ts +0 -134
- package/src/fetch/proto.js +0 -333
- package/src/get-peer.js +0 -49
- package/src/identify/consts.js +0 -15
- package/src/identify/index.js +0 -384
- package/src/identify/message.d.ts +0 -95
- package/src/identify/message.js +0 -328
- package/src/index.js +0 -813
- package/src/insecure/plaintext.js +0 -95
- package/src/insecure/proto.d.ts +0 -128
- package/src/insecure/proto.js +0 -371
- package/src/keychain/index.js +0 -561
- package/src/metrics/index.js +0 -290
- package/src/metrics/old-peers.js +0 -16
- package/src/metrics/stats.js +0 -270
- package/src/metrics/tracked-map.js +0 -94
- package/src/nat-manager.js +0 -197
- package/src/peer-routing.js +0 -176
- package/src/peer-store/README.md +0 -145
- package/src/peer-store/address-book.js +0 -382
- package/src/peer-store/index.js +0 -121
- package/src/peer-store/key-book.js +0 -141
- package/src/peer-store/metadata-book.js +0 -250
- package/src/peer-store/pb/peer.d.ts +0 -222
- package/src/peer-store/pb/peer.js +0 -643
- package/src/peer-store/pb/peer.proto +0 -31
- package/src/peer-store/proto-book.js +0 -237
- package/src/peer-store/store.js +0 -263
- package/src/peer-store/types.ts +0 -245
- package/src/ping/constants.js +0 -8
- package/src/ping/index.js +0 -84
- package/src/ping/util.js +0 -18
- package/src/pnet/crypto.js +0 -84
- package/src/pnet/errors.js +0 -7
- package/src/pnet/index.js +0 -86
- package/src/pnet/key-generator.js +0 -33
- package/src/pubsub-adapter.js +0 -61
- package/src/record/README.md +0 -130
- package/src/record/envelope/envelope.d.ts +0 -77
- package/src/record/envelope/envelope.js +0 -243
- package/src/record/envelope/envelope.proto +0 -19
- package/src/record/envelope/index.js +0 -183
- package/src/record/peer-record/consts.js +0 -14
- package/src/record/peer-record/index.js +0 -113
- package/src/record/peer-record/peer-record.d.ts +0 -133
- package/src/record/peer-record/peer-record.js +0 -367
- package/src/record/peer-record/peer-record.proto +0 -18
- package/src/record/utils.js +0 -25
- package/src/registrar.js +0 -127
- package/src/transport-manager.js +0 -269
- package/src/types.ts +0 -98
- package/src/upgrader.js +0 -492
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
import { logger } from '@libp2p/logger';
|
|
2
|
+
import errCode from 'err-code';
|
|
3
|
+
import { Dialer, Listener } from '@libp2p/multistream-select';
|
|
4
|
+
import { pipe } from 'it-pipe';
|
|
5
|
+
// @ts-expect-error mutable-proxy does not export types
|
|
6
|
+
import mutableProxy from 'mutable-proxy';
|
|
7
|
+
import { codes } from './errors.js';
|
|
8
|
+
import { createConnection } from '@libp2p/connection';
|
|
9
|
+
import { CustomEvent, EventEmitter } from '@libp2p/interfaces/events';
|
|
10
|
+
import { peerIdFromString } from '@libp2p/peer-id';
|
|
11
|
+
const log = logger('libp2p:upgrader');
|
|
12
|
+
export class DefaultUpgrader extends EventEmitter {
|
|
13
|
+
constructor(components, init) {
|
|
14
|
+
super();
|
|
15
|
+
this.components = components;
|
|
16
|
+
this.connectionEncryption = new Map();
|
|
17
|
+
init.connectionEncryption.forEach(encrypter => {
|
|
18
|
+
this.connectionEncryption.set(encrypter.protocol, encrypter);
|
|
19
|
+
});
|
|
20
|
+
this.muxers = new Map();
|
|
21
|
+
init.muxers.forEach(muxer => {
|
|
22
|
+
this.muxers.set(muxer.protocol, muxer);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Upgrades an inbound connection
|
|
27
|
+
*/
|
|
28
|
+
async upgradeInbound(maConn) {
|
|
29
|
+
let encryptedConn;
|
|
30
|
+
let remotePeer;
|
|
31
|
+
let upgradedConn;
|
|
32
|
+
let muxerFactory;
|
|
33
|
+
let cryptoProtocol;
|
|
34
|
+
let setPeer;
|
|
35
|
+
let proxyPeer;
|
|
36
|
+
const metrics = this.components.getMetrics();
|
|
37
|
+
if (await this.components.getConnectionGater().denyInboundConnection(maConn)) {
|
|
38
|
+
throw errCode(new Error('The multiaddr connection is blocked by gater.acceptConnection'), codes.ERR_CONNECTION_INTERCEPTED);
|
|
39
|
+
}
|
|
40
|
+
if (metrics != null) {
|
|
41
|
+
({ setTarget: setPeer, proxy: proxyPeer } = mutableProxy());
|
|
42
|
+
const idString = `${(Math.random() * 1e9).toString(36)}${Date.now()}`;
|
|
43
|
+
setPeer({ toString: () => idString });
|
|
44
|
+
maConn = metrics.trackStream({ stream: maConn, remotePeer: proxyPeer });
|
|
45
|
+
}
|
|
46
|
+
log('starting the inbound connection upgrade');
|
|
47
|
+
// Protect
|
|
48
|
+
let protectedConn = maConn;
|
|
49
|
+
const protector = this.components.getConnectionProtector();
|
|
50
|
+
if (protector != null) {
|
|
51
|
+
log('protecting the inbound connection');
|
|
52
|
+
protectedConn = await protector.protect(maConn);
|
|
53
|
+
}
|
|
54
|
+
try {
|
|
55
|
+
// Encrypt the connection
|
|
56
|
+
({
|
|
57
|
+
conn: encryptedConn,
|
|
58
|
+
remotePeer,
|
|
59
|
+
protocol: cryptoProtocol
|
|
60
|
+
} = await this._encryptInbound(protectedConn));
|
|
61
|
+
if (await this.components.getConnectionGater().denyInboundEncryptedConnection(remotePeer, {
|
|
62
|
+
...protectedConn,
|
|
63
|
+
...encryptedConn
|
|
64
|
+
})) {
|
|
65
|
+
throw errCode(new Error('The multiaddr connection is blocked by gater.acceptEncryptedConnection'), codes.ERR_CONNECTION_INTERCEPTED);
|
|
66
|
+
}
|
|
67
|
+
// Multiplex the connection
|
|
68
|
+
if (this.muxers.size > 0) {
|
|
69
|
+
const multiplexed = await this._multiplexInbound({
|
|
70
|
+
...protectedConn,
|
|
71
|
+
...encryptedConn
|
|
72
|
+
}, this.muxers);
|
|
73
|
+
muxerFactory = multiplexed.muxerFactory;
|
|
74
|
+
upgradedConn = multiplexed.stream;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
upgradedConn = encryptedConn;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (err) {
|
|
81
|
+
log.error('Failed to upgrade inbound connection', err);
|
|
82
|
+
await maConn.close(err);
|
|
83
|
+
throw err;
|
|
84
|
+
}
|
|
85
|
+
if (await this.components.getConnectionGater().denyInboundUpgradedConnection(remotePeer, {
|
|
86
|
+
...protectedConn,
|
|
87
|
+
...encryptedConn
|
|
88
|
+
})) {
|
|
89
|
+
throw errCode(new Error('The multiaddr connection is blocked by gater.acceptEncryptedConnection'), codes.ERR_CONNECTION_INTERCEPTED);
|
|
90
|
+
}
|
|
91
|
+
if (metrics != null) {
|
|
92
|
+
metrics.updatePlaceholder(proxyPeer, remotePeer);
|
|
93
|
+
setPeer(remotePeer);
|
|
94
|
+
}
|
|
95
|
+
log('Successfully upgraded inbound connection');
|
|
96
|
+
return this._createConnection({
|
|
97
|
+
cryptoProtocol,
|
|
98
|
+
direction: 'inbound',
|
|
99
|
+
maConn,
|
|
100
|
+
upgradedConn,
|
|
101
|
+
muxerFactory,
|
|
102
|
+
remotePeer
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Upgrades an outbound connection
|
|
107
|
+
*/
|
|
108
|
+
async upgradeOutbound(maConn) {
|
|
109
|
+
const idStr = maConn.remoteAddr.getPeerId();
|
|
110
|
+
if (idStr == null) {
|
|
111
|
+
throw errCode(new Error('outbound connection must have a peer id'), codes.ERR_INVALID_MULTIADDR);
|
|
112
|
+
}
|
|
113
|
+
const remotePeerId = peerIdFromString(idStr);
|
|
114
|
+
if (await this.components.getConnectionGater().denyOutboundConnection(remotePeerId, maConn)) {
|
|
115
|
+
throw errCode(new Error('The multiaddr connection is blocked by connectionGater.denyOutboundConnection'), codes.ERR_CONNECTION_INTERCEPTED);
|
|
116
|
+
}
|
|
117
|
+
let encryptedConn;
|
|
118
|
+
let remotePeer;
|
|
119
|
+
let upgradedConn;
|
|
120
|
+
let cryptoProtocol;
|
|
121
|
+
let muxerFactory;
|
|
122
|
+
let setPeer;
|
|
123
|
+
let proxyPeer;
|
|
124
|
+
const metrics = this.components.getMetrics();
|
|
125
|
+
if (metrics != null) {
|
|
126
|
+
({ setTarget: setPeer, proxy: proxyPeer } = mutableProxy());
|
|
127
|
+
const idString = `${(Math.random() * 1e9).toString(36)}${Date.now()}`;
|
|
128
|
+
setPeer({ toB58String: () => idString });
|
|
129
|
+
maConn = metrics.trackStream({ stream: maConn, remotePeer: proxyPeer });
|
|
130
|
+
}
|
|
131
|
+
log('Starting the outbound connection upgrade');
|
|
132
|
+
// Protect
|
|
133
|
+
let protectedConn = maConn;
|
|
134
|
+
const protector = this.components.getConnectionProtector();
|
|
135
|
+
if (protector != null) {
|
|
136
|
+
protectedConn = await protector.protect(maConn);
|
|
137
|
+
}
|
|
138
|
+
try {
|
|
139
|
+
// Encrypt the connection
|
|
140
|
+
({
|
|
141
|
+
conn: encryptedConn,
|
|
142
|
+
remotePeer,
|
|
143
|
+
protocol: cryptoProtocol
|
|
144
|
+
} = await this._encryptOutbound(protectedConn, remotePeerId));
|
|
145
|
+
if (await this.components.getConnectionGater().denyOutboundEncryptedConnection(remotePeer, {
|
|
146
|
+
...protectedConn,
|
|
147
|
+
...encryptedConn
|
|
148
|
+
})) {
|
|
149
|
+
throw errCode(new Error('The multiaddr connection is blocked by gater.acceptEncryptedConnection'), codes.ERR_CONNECTION_INTERCEPTED);
|
|
150
|
+
}
|
|
151
|
+
// Multiplex the connection
|
|
152
|
+
if (this.muxers.size > 0) {
|
|
153
|
+
const multiplexed = await this._multiplexOutbound({
|
|
154
|
+
...protectedConn,
|
|
155
|
+
...encryptedConn
|
|
156
|
+
}, this.muxers);
|
|
157
|
+
muxerFactory = multiplexed.muxerFactory;
|
|
158
|
+
upgradedConn = multiplexed.stream;
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
upgradedConn = encryptedConn;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
catch (err) {
|
|
165
|
+
log.error('Failed to upgrade outbound connection', err);
|
|
166
|
+
await maConn.close(err);
|
|
167
|
+
throw err;
|
|
168
|
+
}
|
|
169
|
+
if (await this.components.getConnectionGater().denyOutboundUpgradedConnection(remotePeer, {
|
|
170
|
+
...protectedConn,
|
|
171
|
+
...encryptedConn
|
|
172
|
+
})) {
|
|
173
|
+
throw errCode(new Error('The multiaddr connection is blocked by gater.acceptEncryptedConnection'), codes.ERR_CONNECTION_INTERCEPTED);
|
|
174
|
+
}
|
|
175
|
+
if (metrics != null) {
|
|
176
|
+
metrics.updatePlaceholder(proxyPeer, remotePeer);
|
|
177
|
+
setPeer(remotePeer);
|
|
178
|
+
}
|
|
179
|
+
log('Successfully upgraded outbound connection');
|
|
180
|
+
return this._createConnection({
|
|
181
|
+
cryptoProtocol,
|
|
182
|
+
direction: 'outbound',
|
|
183
|
+
maConn,
|
|
184
|
+
upgradedConn,
|
|
185
|
+
muxerFactory,
|
|
186
|
+
remotePeer
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* A convenience method for generating a new `Connection`
|
|
191
|
+
*/
|
|
192
|
+
_createConnection(opts) {
|
|
193
|
+
const { cryptoProtocol, direction, maConn, upgradedConn, remotePeer, muxerFactory } = opts;
|
|
194
|
+
let muxer;
|
|
195
|
+
let newStream;
|
|
196
|
+
let connection; // eslint-disable-line prefer-const
|
|
197
|
+
if (muxerFactory != null) {
|
|
198
|
+
// Create the muxer
|
|
199
|
+
muxer = muxerFactory.createStreamMuxer(this.components, {
|
|
200
|
+
// Run anytime a remote stream is created
|
|
201
|
+
onIncomingStream: muxedStream => {
|
|
202
|
+
if (connection == null) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
void Promise.resolve()
|
|
206
|
+
.then(async () => {
|
|
207
|
+
const mss = new Listener(muxedStream);
|
|
208
|
+
const protocols = this.components.getRegistrar().getProtocols();
|
|
209
|
+
const { stream, protocol } = await mss.handle(protocols);
|
|
210
|
+
log('%s: incoming stream opened on %s', direction, protocol);
|
|
211
|
+
const metrics = this.components.getMetrics();
|
|
212
|
+
if (metrics != null) {
|
|
213
|
+
metrics.trackStream({ stream, remotePeer, protocol });
|
|
214
|
+
}
|
|
215
|
+
if (connection == null) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
connection.addStream(muxedStream, { protocol });
|
|
219
|
+
this._onStream({ connection, stream: { ...muxedStream, ...stream }, protocol });
|
|
220
|
+
})
|
|
221
|
+
.catch(err => {
|
|
222
|
+
log.error(err);
|
|
223
|
+
});
|
|
224
|
+
},
|
|
225
|
+
// Run anytime a stream closes
|
|
226
|
+
onStreamEnd: muxedStream => {
|
|
227
|
+
connection?.removeStream(muxedStream.id);
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
newStream = async (protocols) => {
|
|
231
|
+
if (muxer == null) {
|
|
232
|
+
throw errCode(new Error('Stream is not multiplexed'), codes.ERR_MUXER_UNAVAILABLE);
|
|
233
|
+
}
|
|
234
|
+
log('%s: starting new stream on %s', direction, protocols);
|
|
235
|
+
const muxedStream = muxer.newStream();
|
|
236
|
+
const mss = new Dialer(muxedStream);
|
|
237
|
+
const metrics = this.components.getMetrics();
|
|
238
|
+
try {
|
|
239
|
+
let { stream, protocol } = await mss.select(protocols);
|
|
240
|
+
if (metrics != null) {
|
|
241
|
+
stream = metrics.trackStream({ stream, remotePeer, protocol });
|
|
242
|
+
}
|
|
243
|
+
return { stream: { ...muxedStream, ...stream }, protocol };
|
|
244
|
+
}
|
|
245
|
+
catch (err) {
|
|
246
|
+
log.error('could not create new stream', err);
|
|
247
|
+
throw errCode(err, codes.ERR_UNSUPPORTED_PROTOCOL);
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
// Pipe all data through the muxer
|
|
251
|
+
pipe(upgradedConn, muxer, upgradedConn).catch(log.error);
|
|
252
|
+
}
|
|
253
|
+
const _timeline = maConn.timeline;
|
|
254
|
+
maConn.timeline = new Proxy(_timeline, {
|
|
255
|
+
set: (...args) => {
|
|
256
|
+
if (connection != null && args[1] === 'close' && args[2] != null && _timeline.close == null) {
|
|
257
|
+
// Wait for close to finish before notifying of the closure
|
|
258
|
+
(async () => {
|
|
259
|
+
try {
|
|
260
|
+
if (connection.stat.status === 'OPEN') {
|
|
261
|
+
await connection.close();
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
catch (err) {
|
|
265
|
+
log.error(err);
|
|
266
|
+
}
|
|
267
|
+
finally {
|
|
268
|
+
this.dispatchEvent(new CustomEvent('connectionEnd', {
|
|
269
|
+
detail: connection
|
|
270
|
+
}));
|
|
271
|
+
}
|
|
272
|
+
})().catch(err => {
|
|
273
|
+
log.error(err);
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
return Reflect.set(...args);
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
maConn.timeline.upgraded = Date.now();
|
|
280
|
+
const errConnectionNotMultiplexed = () => {
|
|
281
|
+
throw errCode(new Error('connection is not multiplexed'), codes.ERR_CONNECTION_NOT_MULTIPLEXED);
|
|
282
|
+
};
|
|
283
|
+
// Create the connection
|
|
284
|
+
connection = createConnection({
|
|
285
|
+
remoteAddr: maConn.remoteAddr,
|
|
286
|
+
remotePeer: remotePeer,
|
|
287
|
+
stat: {
|
|
288
|
+
status: 'OPEN',
|
|
289
|
+
direction,
|
|
290
|
+
timeline: maConn.timeline,
|
|
291
|
+
multiplexer: muxer?.protocol,
|
|
292
|
+
encryption: cryptoProtocol
|
|
293
|
+
},
|
|
294
|
+
newStream: newStream ?? errConnectionNotMultiplexed,
|
|
295
|
+
getStreams: () => muxer != null ? muxer.streams : errConnectionNotMultiplexed(),
|
|
296
|
+
close: async () => {
|
|
297
|
+
await maConn.close();
|
|
298
|
+
// Ensure remaining streams are aborted
|
|
299
|
+
if (muxer != null) {
|
|
300
|
+
muxer.streams.map(stream => stream.abort());
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
this.dispatchEvent(new CustomEvent('connection', {
|
|
305
|
+
detail: connection
|
|
306
|
+
}));
|
|
307
|
+
return connection;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Routes incoming streams to the correct handler
|
|
311
|
+
*/
|
|
312
|
+
_onStream(opts) {
|
|
313
|
+
const { connection, stream, protocol } = opts;
|
|
314
|
+
const handler = this.components.getRegistrar().getHandler(protocol);
|
|
315
|
+
handler({ connection, stream, protocol });
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Attempts to encrypt the incoming `connection` with the provided `cryptos`
|
|
319
|
+
*/
|
|
320
|
+
async _encryptInbound(connection) {
|
|
321
|
+
const mss = new Listener(connection);
|
|
322
|
+
const protocols = Array.from(this.connectionEncryption.keys());
|
|
323
|
+
log('handling inbound crypto protocol selection', protocols);
|
|
324
|
+
try {
|
|
325
|
+
const { stream, protocol } = await mss.handle(protocols);
|
|
326
|
+
const encrypter = this.connectionEncryption.get(protocol);
|
|
327
|
+
if (encrypter == null) {
|
|
328
|
+
throw new Error(`no crypto module found for ${protocol}`);
|
|
329
|
+
}
|
|
330
|
+
log('encrypting inbound connection...');
|
|
331
|
+
return {
|
|
332
|
+
...await encrypter.secureInbound(this.components.getPeerId(), stream),
|
|
333
|
+
protocol
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
catch (err) {
|
|
337
|
+
throw errCode(err, codes.ERR_ENCRYPTION_FAILED);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Attempts to encrypt the given `connection` with the provided connection encrypters.
|
|
342
|
+
* The first `ConnectionEncrypter` module to succeed will be used
|
|
343
|
+
*/
|
|
344
|
+
async _encryptOutbound(connection, remotePeerId) {
|
|
345
|
+
const mss = new Dialer(connection);
|
|
346
|
+
const protocols = Array.from(this.connectionEncryption.keys());
|
|
347
|
+
log('selecting outbound crypto protocol', protocols);
|
|
348
|
+
try {
|
|
349
|
+
const { stream, protocol } = await mss.select(protocols);
|
|
350
|
+
const encrypter = this.connectionEncryption.get(protocol);
|
|
351
|
+
if (encrypter == null) {
|
|
352
|
+
throw new Error(`no crypto module found for ${protocol}`);
|
|
353
|
+
}
|
|
354
|
+
log('encrypting outbound connection to %p', remotePeerId);
|
|
355
|
+
return {
|
|
356
|
+
...await encrypter.secureOutbound(this.components.getPeerId(), stream, remotePeerId),
|
|
357
|
+
protocol
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
catch (err) {
|
|
361
|
+
throw errCode(err, codes.ERR_ENCRYPTION_FAILED);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Selects one of the given muxers via multistream-select. That
|
|
366
|
+
* muxer will be used for all future streams on the connection.
|
|
367
|
+
*/
|
|
368
|
+
async _multiplexOutbound(connection, muxers) {
|
|
369
|
+
const dialer = new Dialer(connection);
|
|
370
|
+
const protocols = Array.from(muxers.keys());
|
|
371
|
+
log('outbound selecting muxer %s', protocols);
|
|
372
|
+
try {
|
|
373
|
+
const { stream, protocol } = await dialer.select(protocols);
|
|
374
|
+
log('%s selected as muxer protocol', protocol);
|
|
375
|
+
const muxerFactory = muxers.get(protocol);
|
|
376
|
+
return { stream, muxerFactory };
|
|
377
|
+
}
|
|
378
|
+
catch (err) {
|
|
379
|
+
log.error('error multiplexing outbound stream', err);
|
|
380
|
+
throw errCode(err, codes.ERR_MUXER_UNAVAILABLE);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Registers support for one of the given muxers via multistream-select. The
|
|
385
|
+
* selected muxer will be used for all future streams on the connection.
|
|
386
|
+
*/
|
|
387
|
+
async _multiplexInbound(connection, muxers) {
|
|
388
|
+
const listener = new Listener(connection);
|
|
389
|
+
const protocols = Array.from(muxers.keys());
|
|
390
|
+
log('inbound handling muxers %s', protocols);
|
|
391
|
+
try {
|
|
392
|
+
const { stream, protocol } = await listener.handle(protocols);
|
|
393
|
+
const muxerFactory = muxers.get(protocol);
|
|
394
|
+
return { stream, muxerFactory };
|
|
395
|
+
}
|
|
396
|
+
catch (err) {
|
|
397
|
+
log.error('error multiplexing inbound stream', err);
|
|
398
|
+
throw errCode(err, codes.ERR_MUXER_UNAVAILABLE);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
//# sourceMappingURL=upgrader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upgrader.js","sourceRoot":"","sources":["../../src/upgrader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,OAAO,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,uDAAuD;AACvD,OAAO,YAAY,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AASlD,MAAM,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAA;AA0BrC,MAAM,OAAO,eAAgB,SAAQ,YAA4B;IAK/D,YAAa,UAAsB,EAAE,IAAkB;QACrD,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,oBAAoB,GAAG,IAAI,GAAG,EAAE,CAAA;QAErC,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;YAC5C,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;QAC9D,CAAC,CAAC,CAA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UAA+B,EAAE,MAAuC;QAC/F,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAA;QACzC,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAA;QAC3C,GAAG,CAAC,4BAA4B,EAAE,SAAS,CAAC,CAAA;QAC5C,IAAI;YACF,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;YAC7D,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;YACzC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,CAAA;SAChC;QAAC,OAAO,GAAQ,EAAE;YACjB,GAAG,CAAC,KAAK,CAAC,mCAAmC,EAAE,GAAG,CAAC,CAAA;YACnD,MAAM,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAA;SAChD;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,UAAU,CAAA;AAC9B,eAAO,MAAM,IAAI,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAA;AAC9B,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAA"}
|