@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.
@@ -263,7 +263,7 @@ class LeofcoinStorage$1 {
263
263
 
264
264
  }
265
265
 
266
- var version = "0.9.10";
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
- globalThisaddEventListener('beforeunload', async () => this.client.close());
2180
+ globalThis.addEventListener('beforeunload', async () => this.client.close());
2181
2181
  }
2182
2182
  return this
2183
2183
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/peernet",
3
- "version": "0.9.11",
3
+ "version": "0.9.12",
4
4
  "description": "",
5
5
  "main": "dist/commonjs/peernet.js",
6
6
  "module": "dist/module/peernet.js",
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
- globalThisaddEventListener('beforeunload', async () => this.client.close());
252
+ globalThis.addEventListener('beforeunload', async () => this.client.close());
253
253
  }
254
254
  return this
255
255
  }