@libp2p/webrtc 6.1.0 → 7.0.0-57c4b4456

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.
@@ -7,6 +7,19 @@
7
7
  *
8
8
  * There are two transports exposed by this module, [webRTC](https://github.com/libp2p/specs/blob/master/webrtc/webrtc.md) and [webRTCDirect](https://github.com/libp2p/specs/blob/master/webrtc/webrtc-direct.md).
9
9
  *
10
+ * ## React Native installation
11
+ *
12
+ * React Native applications must install the optional `react-native-webrtc`
13
+ * peer dependency explicitly:
14
+ *
15
+ * ```sh
16
+ * npm install @libp2p/webrtc react-native-webrtc@^124.0.6
17
+ * ```
18
+ *
19
+ * Follow the [react-native-webrtc installation instructions](https://github.com/react-native-webrtc/react-native-webrtc#getting-started)
20
+ * to configure the native module. Node.js and browser applications do not
21
+ * need this dependency.
22
+ *
10
23
  * ## WebRTC vs WebRTC Direct
11
24
  *
12
25
  * The connection establishment phase of WebRTC involves a handshake using [SDP](https://en.wikipedia.org/wiki/Session_Description_Protocol) during which two peers will exchange information such as open ports, network addresses and required capabilities.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiRG;AAIH,OAAO,KAAK,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AACvG,OAAO,KAAK,EAAE,yBAAyB,EAAE,+BAA+B,EAAE,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AAC,EAAE,mBAAmB,GAAG,CAAC,UAAU,EAAE,yBAAyB,KAAK,SAAS,CAEjG;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,CAAA"}
package/dist/src/index.js CHANGED
@@ -7,6 +7,19 @@
7
7
  *
8
8
  * There are two transports exposed by this module, [webRTC](https://github.com/libp2p/specs/blob/master/webrtc/webrtc.md) and [webRTCDirect](https://github.com/libp2p/specs/blob/master/webrtc/webrtc-direct.md).
9
9
  *
10
+ * ## React Native installation
11
+ *
12
+ * React Native applications must install the optional `react-native-webrtc`
13
+ * peer dependency explicitly:
14
+ *
15
+ * ```sh
16
+ * npm install @libp2p/webrtc react-native-webrtc@^124.0.6
17
+ * ```
18
+ *
19
+ * Follow the [react-native-webrtc installation instructions](https://github.com/react-native-webrtc/react-native-webrtc#getting-started)
20
+ * to configure the native module. Node.js and browser applications do not
21
+ * need this dependency.
22
+ *
10
23
  * ## WebRTC vs WebRTC Direct
11
24
  *
12
25
  * The connection establishment phase of WebRTC involves a handshake using [SDP](https://en.wikipedia.org/wiki/Session_Description_Protocol) during which two peers will exchange information such as open ports, network addresses and required capabilities.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiRG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAA;AAwFxE,SAAS,YAAY,CAAE,IAAgC;IACrD,OAAO,CAAC,UAA2C,EAAE,EAAE,CAAC,IAAI,qBAAqB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AACrG,CAAC;AAID,SAAS,MAAM,CAAE,IAA0B;IACzC,OAAO,CAAC,UAAqC,EAAE,EAAE,CAAC,IAAI,eAAe,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AACzF,CAAC;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8RG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAA;AAwFxE,SAAS,YAAY,CAAE,IAAgC;IACrD,OAAO,CAAC,UAA2C,EAAE,EAAE,CAAC,IAAI,qBAAqB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AACrG,CAAC;AAID,SAAS,MAAM,CAAE,IAA0B;IACzC,OAAO,CAAC,UAAqC,EAAE,EAAE,CAAC,IAAI,eAAe,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AACzF,CAAC;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/webrtc",
3
- "version": "6.1.0",
3
+ "version": "7.0.0-57c4b4456",
4
4
  "description": "A libp2p transport using WebRTC connections",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/transport-webrtc#readme",
@@ -46,13 +46,13 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@chainsafe/is-ip": "^2.1.0",
49
- "@libp2p/crypto": "^5.1.24",
50
- "@libp2p/interface": "^3.3.1",
51
- "@libp2p/interface-internal": "^3.1.14",
52
- "@libp2p/keychain": "^6.1.8",
53
- "@libp2p/noise": "^17.0.4",
54
- "@libp2p/peer-id": "^6.0.16",
55
- "@libp2p/utils": "^7.4.2",
49
+ "@libp2p/crypto": "5.1.25-57c4b4456",
50
+ "@libp2p/interface": "3.4.0-57c4b4456",
51
+ "@libp2p/interface-internal": "3.2.0-57c4b4456",
52
+ "@libp2p/keychain": "6.1.9-57c4b4456",
53
+ "@libp2p/noise": "17.0.5-57c4b4456",
54
+ "@libp2p/peer-id": "6.0.17-57c4b4456",
55
+ "@libp2p/utils": "7.4.3-57c4b4456",
56
56
  "@multiformats/multiaddr": "^13.0.3",
57
57
  "@multiformats/multiaddr-matcher": "^3.0.2",
58
58
  "@peculiar/webcrypto": "^1.5.0",
@@ -67,20 +67,19 @@
67
67
  "multiformats": "^14.0.0",
68
68
  "node-datachannel": "^0.33.0",
69
69
  "p-defer": "^4.0.1",
70
- "p-event": "^7.0.0",
70
+ "p-event": "^8.0.1",
71
71
  "p-timeout": "^7.0.0",
72
72
  "p-wait-for": "^6.0.0",
73
73
  "progress-events": "^1.0.1",
74
74
  "protons-runtime": "^7.0.0",
75
75
  "race-signal": "^2.0.0",
76
- "react-native-webrtc": "^124.0.6",
77
76
  "reflect-metadata": "^0.2.2",
78
77
  "uint8-varint": "^3.0.0",
79
78
  "uint8arraylist": "^3.0.2",
80
79
  "uint8arrays": "^6.1.1"
81
80
  },
82
81
  "devDependencies": {
83
- "@libp2p/logger": "^6.2.14",
82
+ "@libp2p/logger": "6.2.15-57c4b4456",
84
83
  "@types/sinon": "^22.0.0",
85
84
  "aegir": "^48.1.1",
86
85
  "any-signal": "^4.1.1",
@@ -88,10 +87,19 @@
88
87
  "delay": "^7.0.0",
89
88
  "p-retry": "^8.0.0",
90
89
  "protons": "^9.0.1",
90
+ "react-native-webrtc": "^124.0.6",
91
91
  "sinon": "^22.0.0",
92
92
  "sinon-ts": "^2.0.0",
93
93
  "wherearewe": "^2.0.1"
94
94
  },
95
+ "peerDependencies": {
96
+ "react-native-webrtc": "^124.0.6"
97
+ },
98
+ "peerDependenciesMeta": {
99
+ "react-native-webrtc": {
100
+ "optional": true
101
+ }
102
+ },
95
103
  "browser": {
96
104
  "./dist/src/webrtc/index.js": "./dist/src/webrtc/index.browser.js",
97
105
  "./dist/src/private-to-public/listener.js": "./dist/src/private-to-public/listener.browser.js",
package/src/index.ts CHANGED
@@ -7,6 +7,19 @@
7
7
  *
8
8
  * There are two transports exposed by this module, [webRTC](https://github.com/libp2p/specs/blob/master/webrtc/webrtc.md) and [webRTCDirect](https://github.com/libp2p/specs/blob/master/webrtc/webrtc-direct.md).
9
9
  *
10
+ * ## React Native installation
11
+ *
12
+ * React Native applications must install the optional `react-native-webrtc`
13
+ * peer dependency explicitly:
14
+ *
15
+ * ```sh
16
+ * npm install @libp2p/webrtc react-native-webrtc@^124.0.6
17
+ * ```
18
+ *
19
+ * Follow the [react-native-webrtc installation instructions](https://github.com/react-native-webrtc/react-native-webrtc#getting-started)
20
+ * to configure the native module. Node.js and browser applications do not
21
+ * need this dependency.
22
+ *
10
23
  * ## WebRTC vs WebRTC Direct
11
24
  *
12
25
  * The connection establishment phase of WebRTC involves a handshake using [SDP](https://en.wikipedia.org/wiki/Session_Description_Protocol) during which two peers will exchange information such as open ports, network addresses and required capabilities.
@@ -1,14 +0,0 @@
1
- {
2
- "DataChannelOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_webrtc.DataChannelOptions.html",
3
- ".:DataChannelOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_webrtc.DataChannelOptions.html",
4
- "TransportCertificate": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_webrtc.TransportCertificate.html",
5
- ".:TransportCertificate": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_webrtc.TransportCertificate.html",
6
- "WebRTCDirectTransportComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_webrtc.WebRTCDirectTransportComponents.html",
7
- "WebRTCTransportComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_webrtc.WebRTCTransportComponents.html",
8
- "WebRTCTransportDirectInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_webrtc.WebRTCTransportDirectInit.html",
9
- "WebRTCTransportInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_webrtc.WebRTCTransportInit.html",
10
- "webRTC": "https://libp2p.github.io/js-libp2p/functions/_libp2p_webrtc.webRTC.html",
11
- ".:webRTC": "https://libp2p.github.io/js-libp2p/functions/_libp2p_webrtc.webRTC.html",
12
- "webRTCDirect": "https://libp2p.github.io/js-libp2p/functions/_libp2p_webrtc.webRTCDirect.html",
13
- ".:webRTCDirect": "https://libp2p.github.io/js-libp2p/functions/_libp2p_webrtc.webRTCDirect.html"
14
- }