@leofcoin/peernet 1.1.84 → 1.1.86

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.
@@ -1,5 +1,5 @@
1
- import { F as FormatInterface } from './peernet-CuzuXSJb.js';
2
- import './identity--VAIVSMm.js';
1
+ import { F as FormatInterface } from './peernet-CIHG3A1i.js';
2
+ import './identity-Cn0iQbY3.js';
3
3
  import './value-C3vAp-wb.js';
4
4
 
5
5
  var proto$b = {
@@ -1,4 +1,4 @@
1
- import { b as base, a as base58$1, i as index$2, c as index$3, d as index$4, e as index$5, I as Identity } from './identity--VAIVSMm.js';
1
+ import { b as base, a as base58$1, i as index$2, c as index$3, d as index$4, e as index$5, I as Identity } from './identity-Cn0iQbY3.js';
2
2
  import { K as KeyPath, a as KeyValue } from './value-C3vAp-wb.js';
3
3
 
4
4
  if (!globalThis.DEBUG) {
@@ -8371,7 +8371,7 @@ class Peernet {
8371
8371
  this.root = options.root;
8372
8372
  const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
8373
8373
  // FolderMessageResponse
8374
- } = await import(/* webpackChunkName: "messages" */ './messages-CW17jRdc.js');
8374
+ } = await import(/* webpackChunkName: "messages" */ './messages-CT983-_h.js');
8375
8375
  /**
8376
8376
  * proto Object containing protos
8377
8377
  * @type {Object}
@@ -8465,7 +8465,7 @@ class Peernet {
8465
8465
  if (this.#starting || this.#started)
8466
8466
  return;
8467
8467
  this.#starting = true;
8468
- const importee = await import('./client-DD7vhDK_.js');
8468
+ const importee = await import('./client-Db0RyH-f.js');
8469
8469
  /**
8470
8470
  * @access public
8471
8471
  * @type {PeernetClient}
@@ -1,3 +1,3 @@
1
- export { P as default } from './peernet-CuzuXSJb.js';
2
- import './identity--VAIVSMm.js';
1
+ export { P as default } from './peernet-CIHG3A1i.js';
2
+ import './identity-Cn0iQbY3.js';
3
3
  import './value-C3vAp-wb.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/peernet",
3
- "version": "1.1.84",
3
+ "version": "1.1.86",
4
4
  "description": "",
5
5
  "browser": "./exports/browser/peernet.js",
6
6
  "exports": {
@@ -37,7 +37,7 @@
37
37
  "@leofcoin/identity-utils": "^1.0.2",
38
38
  "@leofcoin/multi-wallet": "^3.1.8",
39
39
  "@leofcoin/storage": "^3.5.38",
40
- "@netpeer/swarm": "^0.8.18",
40
+ "@netpeer/swarm": "^0.8.19",
41
41
  "@vandeurenglenn/base32": "^1.2.4",
42
42
  "@vandeurenglenn/base58": "^1.1.9",
43
43
  "@vandeurenglenn/debug": "^1.2.6",
@@ -58,13 +58,13 @@
58
58
  "@rollup/plugin-typescript": "^12.1.4",
59
59
  "@rollup/plugin-wasm": "^6.2.2",
60
60
  "@types/bs58check": "^2.1.2",
61
- "@types/node": "^24.0.11",
61
+ "@types/node": "^24.0.14",
62
62
  "@types/qrcode": "^1.5.5",
63
63
  "@types/secp256k1": "^4.0.6",
64
64
  "@types/varint": "^6.0.3",
65
65
  "chai": "^5.2.1",
66
66
  "cross-env": "^7.0.3",
67
- "rollup": "^4.44.2",
67
+ "rollup": "^4.45.1",
68
68
  "sinon": "^21.0.0"
69
69
  }
70
70
  }
package/test.js CHANGED
@@ -3,7 +3,8 @@ import Client from './exports/peernet.js'
3
3
  const client = await new Client({
4
4
  network: 'leofcoin:peach',
5
5
  networkVersion: 'peach',
6
- stars: ['wss://star.leofcoin.org']
6
+ stars: ['wss://star.leofcoin.org'],
7
+ version: '0.1.0'
7
8
  })
8
9
  console.log(pubsub.subscribers)
9
10
  pubsub.subscribe('peer:discovered', (data) => {
@@ -1,115 +0,0 @@
1
- import { g as getDefaultExportFromCjs } from './identity--VAIVSMm.js';
2
-
3
- var global;
4
- var hasRequiredGlobal;
5
-
6
- function requireGlobal () {
7
- if (hasRequiredGlobal) return global;
8
- hasRequiredGlobal = 1;
9
- var naiveFallback = function () {
10
- if (typeof self === "object" && self) return self;
11
- if (typeof window === "object" && window) return window;
12
- throw new Error("Unable to resolve global `this`");
13
- };
14
-
15
- global = (function () {
16
- if (this) return this;
17
-
18
- // Unexpected strict mode (may happen if e.g. bundled into ESM module)
19
-
20
- // Fallback to standard globalThis if available
21
- if (typeof globalThis === "object" && globalThis) return globalThis;
22
-
23
- // Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis
24
- // In all ES5+ engines global object inherits from Object.prototype
25
- // (if you approached one that doesn't please report)
26
- try {
27
- Object.defineProperty(Object.prototype, "__global__", {
28
- get: function () { return this; },
29
- configurable: true
30
- });
31
- } catch (error) {
32
- // Unfortunate case of updates to Object.prototype being restricted
33
- // via preventExtensions, seal or freeze
34
- return naiveFallback();
35
- }
36
- try {
37
- // Safari case (window.__global__ works, but __global__ does not)
38
- if (!__global__) return naiveFallback();
39
- return __global__;
40
- } finally {
41
- delete Object.prototype.__global__;
42
- }
43
- })();
44
- return global;
45
- }
46
-
47
- var version$1 = "1.0.35";
48
- var require$$0 = {
49
- version: version$1};
50
-
51
- var version = require$$0.version;
52
-
53
- var _globalThis;
54
- if (typeof globalThis === 'object') {
55
- _globalThis = globalThis;
56
- } else {
57
- try {
58
- _globalThis = requireGlobal();
59
- } catch (error) {
60
- } finally {
61
- if (!_globalThis && typeof window !== 'undefined') { _globalThis = window; }
62
- if (!_globalThis) { throw new Error('Could not determine global this'); }
63
- }
64
- }
65
-
66
- var NativeWebSocket = _globalThis.WebSocket || _globalThis.MozWebSocket;
67
- var websocket_version = version;
68
-
69
-
70
- /**
71
- * Expose a W3C WebSocket class with just one or two arguments.
72
- */
73
- function W3CWebSocket(uri, protocols) {
74
- var native_instance;
75
-
76
- if (protocols) {
77
- native_instance = new NativeWebSocket(uri, protocols);
78
- }
79
- else {
80
- native_instance = new NativeWebSocket(uri);
81
- }
82
-
83
- /**
84
- * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket
85
- * class). Since it is an Object it will be returned as it is when creating an
86
- * instance of W3CWebSocket via 'new W3CWebSocket()'.
87
- *
88
- * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2
89
- */
90
- return native_instance;
91
- }
92
- if (NativeWebSocket) {
93
- ['CONNECTING', 'OPEN', 'CLOSING', 'CLOSED'].forEach(function(prop) {
94
- Object.defineProperty(W3CWebSocket, prop, {
95
- get: function() { return NativeWebSocket[prop]; }
96
- });
97
- });
98
- }
99
-
100
- /**
101
- * Module exports.
102
- */
103
- var browser = {
104
- 'w3cwebsocket' : NativeWebSocket ? W3CWebSocket : null,
105
- 'version' : websocket_version
106
- };
107
-
108
- var browser$1 = /*@__PURE__*/getDefaultExportFromCjs(browser);
109
-
110
- var browser$2 = /*#__PURE__*/Object.freeze({
111
- __proto__: null,
112
- default: browser$1
113
- });
114
-
115
- export { browser$2 as b };
@@ -1,25 +0,0 @@
1
- var browser$1 = {};
2
-
3
- browser$1.MediaStream = window.MediaStream;
4
- browser$1.MediaStreamTrack = window.MediaStreamTrack;
5
- browser$1.RTCDataChannel = window.RTCDataChannel;
6
- browser$1.RTCDataChannelEvent = window.RTCDataChannelEvent;
7
- browser$1.RTCDtlsTransport = window.RTCDtlsTransport;
8
- browser$1.RTCIceCandidate = window.RTCIceCandidate;
9
- browser$1.RTCIceTransport = window.RTCIceTransport;
10
- browser$1.RTCPeerConnection = window.RTCPeerConnection;
11
- browser$1.RTCPeerConnectionIceEvent = window.RTCPeerConnectionIceEvent;
12
- browser$1.RTCRtpReceiver = window.RTCRtpReceiver;
13
- browser$1.RTCRtpSender = window.RTCRtpSender;
14
- browser$1.RTCRtpTransceiver = window.RTCRtpTransceiver;
15
- browser$1.RTCSctpTransport = window.RTCSctpTransport;
16
- browser$1.RTCSessionDescription = window.RTCSessionDescription;
17
- browser$1.getUserMedia = window.getUserMedia;
18
- browser$1.mediaDevices = navigator.mediaDevices;
19
-
20
- var browser = /*#__PURE__*/Object.freeze({
21
- __proto__: null,
22
- default: browser$1
23
- });
24
-
25
- export { browser as b };