Fix ES module imports by adding .js extensions

- Added .js extensions to all import statements in source files
- Fixes ERR_MODULE_NOT_FOUND error when using package with Node.js
- Version bumped to 0.2.2

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-12 21:56:18 +01:00
parent a893c7d040
commit 2b73e6ba44
5 changed files with 12 additions and 12 deletions

View File

@@ -13,7 +13,7 @@ import {
HealthResponse,
ErrorResponse,
Side,
} from './types';
} from './types.js';
/**
* HTTP API client for Rondevu peer signaling and discovery server

View File

@@ -1,6 +1,6 @@
import { EventEmitter } from './event-emitter';
import { RondevuAPI } from './client';
import { RondevuConnectionParams } from './types';
import { EventEmitter } from './event-emitter.js';
import { RondevuAPI } from './client.js';
import { RondevuConnectionParams } from './types.js';
/**
* Represents a WebRTC connection with automatic signaling and ICE exchange

View File

@@ -4,13 +4,13 @@
*/
// Export main WebRTC client class
export { Rondevu } from './rondevu';
export { Rondevu } from './rondevu.js';
// Export connection class
export { RondevuConnection } from './connection';
export { RondevuConnection } from './connection.js';
// Export low-level signaling API (for advanced usage)
export { RondevuAPI } from './client';
export { RondevuAPI } from './client.js';
// Export all types
export type {
@@ -39,4 +39,4 @@ export type {
HealthResponse,
ErrorResponse,
RondevuClientOptions,
} from './types';
} from './types.js';

View File

@@ -1,6 +1,6 @@
import { RondevuAPI } from './client';
import { RondevuConnection } from './connection';
import { RondevuOptions, JoinOptions, RondevuConnectionParams } from './types';
import { RondevuAPI } from './client.js';
import { RondevuConnection } from './connection.js';
import { RondevuOptions, JoinOptions, RondevuConnectionParams } from './types.js';
/**
* Main Rondevu WebRTC client with automatic connection management