@leofcoin/peernet 0.9.11 → 0.9.12
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/dist/browser/peernet.js +654 -654
- package/dist/commonjs/peernet.js +654 -654
- package/dist/module/peernet.js +2 -2
- package/package.json +1 -1
- package/src/peernet.js +1 -1
package/dist/module/peernet.js
CHANGED
|
@@ -263,7 +263,7 @@ class LeofcoinStorage$1 {
|
|
|
263
263
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
var version = "0.9.
|
|
266
|
+
var version = "0.9.11";
|
|
267
267
|
|
|
268
268
|
var api$1 = {
|
|
269
269
|
version: ({send}) => send({client: '@peernet/api/http', version}),
|
|
@@ -2177,7 +2177,7 @@ class Peernet {
|
|
|
2177
2177
|
*/
|
|
2178
2178
|
this.client = new PeernetClient({...options, id});
|
|
2179
2179
|
if (globalThis.onbeforeunload) {
|
|
2180
|
-
|
|
2180
|
+
globalThis.addEventListener('beforeunload', async () => this.client.close());
|
|
2181
2181
|
}
|
|
2182
2182
|
return this
|
|
2183
2183
|
}
|
package/package.json
CHANGED
package/src/peernet.js
CHANGED
|
@@ -249,7 +249,7 @@ export default class Peernet {
|
|
|
249
249
|
*/
|
|
250
250
|
this.client = new Client({...options, id})
|
|
251
251
|
if (globalThis.onbeforeunload) {
|
|
252
|
-
|
|
252
|
+
globalThis.addEventListener('beforeunload', async () => this.client.close());
|
|
253
253
|
}
|
|
254
254
|
return this
|
|
255
255
|
}
|