Skip to content

Commit 5dc4510

Browse files
committed
fix: add .js extensions in nostr-server.ts
- Add .js extensions to imports in nostr-server.ts - Fix module imports for logger and websocket types - Bump version to 0.3.7
1 parent 7ec39ab commit 5dc4510

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nostr-websocket-utils",
3-
"version": "0.3.6",
3+
"version": "0.3.7",
44
"description": "Robust WebSocket utilities for Nostr applications with automatic reconnection, channel-based messaging, and type-safe handlers. Features heartbeat monitoring, message queueing, and comprehensive error handling.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/core/nostr-server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { WebSocketServer, WebSocket } from 'ws';
22
import { v4 as uuidv4 } from 'uuid';
3-
import { getLogger } from '../utils/logger';
4-
import { NostrWSServerSocket, NostrWSServerOptions, NostrWSServerMessage } from '../types/websocket';
3+
import { getLogger } from '../utils/logger.js';
4+
import { NostrWSServerSocket, NostrWSServerOptions, NostrWSServerMessage } from '../types/websocket.js';
55

66
const logger = getLogger('NostrWSServer');
77

0 commit comments

Comments
 (0)