@libp2p/websockets 10.1.8 → 10.1.10-500287203

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/src/index.js CHANGED
@@ -27,8 +27,8 @@ import { WebSockets as WebSocketsMatcher, WebSocketsSecure } from '@multiformats
27
27
  import { multiaddrToUri as toUri } from '@multiformats/multiaddr-to-uri';
28
28
  import { pEvent } from 'p-event';
29
29
  import { CustomProgressEvent } from 'progress-events';
30
- import { createListener } from './listener.js';
31
- import { webSocketToMaConn } from './websocket-to-conn.js';
30
+ import { createListener } from "./listener.js";
31
+ import { webSocketToMaConn } from "./websocket-to-conn.js";
32
32
  class WebSockets {
33
33
  log;
34
34
  init;
@@ -8,7 +8,7 @@ import { TypedEventEmitter, setMaxListeners } from 'main-event';
8
8
  import { pEvent } from 'p-event';
9
9
  import * as ws from 'ws';
10
10
  import { toWebSocket } from "./utils.js";
11
- import { webSocketToMaConn } from './websocket-to-conn.js';
11
+ import { webSocketToMaConn } from "./websocket-to-conn.js";
12
12
  export class WebSocketListener extends TypedEventEmitter {
13
13
  components;
14
14
  log;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/websockets",
3
- "version": "10.1.8",
3
+ "version": "10.1.10-500287203",
4
4
  "description": "JavaScript implementation of the WebSockets module that libp2p uses and that implements the interface-transport spec",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/transport-websockets#readme",
@@ -45,11 +45,13 @@
45
45
  "exports": {
46
46
  ".": {
47
47
  "types": "./dist/src/index.d.ts",
48
- "import": "./dist/src/index.js"
48
+ "import": "./dist/src/index.js",
49
+ "module-sync": "./dist/src/index.js"
49
50
  },
50
51
  "./filters": {
51
52
  "types": "./dist/src/filters.d.ts",
52
- "import": "./dist/src/filters.js"
53
+ "import": "./dist/src/filters.js",
54
+ "module-sync": "./dist/src/filters.js"
53
55
  }
54
56
  },
55
57
  "scripts": {
@@ -67,8 +69,8 @@
67
69
  "test:electron-main": "aegir test -t electron-main -f ./dist/test/node.js --cov"
68
70
  },
69
71
  "dependencies": {
70
- "@libp2p/interface": "^3.2.0",
71
- "@libp2p/utils": "^7.0.15",
72
+ "@libp2p/interface": "3.2.2-500287203",
73
+ "@libp2p/utils": "7.0.17-500287203",
72
74
  "@multiformats/multiaddr": "^13.0.1",
73
75
  "@multiformats/multiaddr-matcher": "^3.0.1",
74
76
  "@multiformats/multiaddr-to-uri": "^12.0.0",
@@ -80,7 +82,7 @@
80
82
  "ws": "^8.18.3"
81
83
  },
82
84
  "devDependencies": {
83
- "@libp2p/logger": "^6.2.4",
85
+ "@libp2p/logger": "6.2.6-500287203",
84
86
  "@types/ws": "^8.18.1",
85
87
  "aegir": "^47.0.22",
86
88
  "is-loopback-addr": "^2.0.2",
package/src/index.ts CHANGED
@@ -28,8 +28,8 @@ import { WebSockets as WebSocketsMatcher, WebSocketsSecure } from '@multiformats
28
28
  import { multiaddrToUri as toUri } from '@multiformats/multiaddr-to-uri'
29
29
  import { pEvent } from 'p-event'
30
30
  import { CustomProgressEvent } from 'progress-events'
31
- import { createListener } from './listener.js'
32
- import { webSocketToMaConn } from './websocket-to-conn.js'
31
+ import { createListener } from './listener.ts'
32
+ import { webSocketToMaConn } from './websocket-to-conn.ts'
33
33
  import type { Transport, CreateListenerOptions, DialTransportOptions, Listener, AbortOptions, ComponentLogger, Logger, Connection, OutboundConnectionUpgradeEvents, Metrics, CounterGroup, Libp2pEvents } from '@libp2p/interface'
34
34
  import type { Multiaddr } from '@multiformats/multiaddr'
35
35
  import type { TypedEventTarget } from 'main-event'
package/src/listener.ts CHANGED
@@ -8,7 +8,7 @@ import { TypedEventEmitter, setMaxListeners } from 'main-event'
8
8
  import { pEvent } from 'p-event'
9
9
  import * as ws from 'ws'
10
10
  import { toWebSocket } from './utils.ts'
11
- import { webSocketToMaConn } from './websocket-to-conn.js'
11
+ import { webSocketToMaConn } from './websocket-to-conn.ts'
12
12
  import type { ComponentLogger, Logger, Listener, ListenerEvents, CreateListenerOptions, CounterGroup, MetricGroup, Metrics, TLSCertificate, Libp2pEvents, Upgrader, MultiaddrConnection } from '@libp2p/interface'
13
13
  import type { Multiaddr } from '@multiformats/multiaddr'
14
14
  import type { TypedEventTarget } from 'main-event'
@@ -1,12 +0,0 @@
1
- {
2
- "WebSocketsComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_websockets.WebSocketsComponents.html",
3
- ".:WebSocketsComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_websockets.WebSocketsComponents.html",
4
- "WebSocketsInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_websockets.WebSocketsInit.html",
5
- ".:WebSocketsInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_websockets.WebSocketsInit.html",
6
- "WebSocketsMetrics": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_websockets.WebSocketsMetrics.html",
7
- ".:WebSocketsMetrics": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_websockets.WebSocketsMetrics.html",
8
- "WebSocketsDialEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_websockets.WebSocketsDialEvents.html",
9
- ".:WebSocketsDialEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_websockets.WebSocketsDialEvents.html",
10
- "webSockets": "https://libp2p.github.io/js-libp2p/functions/_libp2p_websockets.webSockets.html",
11
- ".:webSockets": "https://libp2p.github.io/js-libp2p/functions/_libp2p_websockets.webSockets.html"
12
- }