diff --git a/package.json b/package.json index 8035930..ab96c9b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xtr-dev/rondevu-client", - "version": "0.2.1", + "version": "0.2.2", "description": "TypeScript client for Rondevu peer signaling and discovery server", "type": "module", "main": "dist/index.js", diff --git a/src/client.ts b/src/client.ts index 426c001..4365d3d 100644 --- a/src/client.ts +++ b/src/client.ts @@ -13,7 +13,7 @@ import { HealthResponse, ErrorResponse, Side, -} from './types'; +} from './types.js'; /** * HTTP API client for Rondevu peer signaling and discovery server diff --git a/src/connection.ts b/src/connection.ts index 88f60a3..dd762b5 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -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 diff --git a/src/index.ts b/src/index.ts index d36205c..ec61b94 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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'; diff --git a/src/rondevu.ts b/src/rondevu.ts index 568a47b..ff437f3 100644 --- a/src/rondevu.ts +++ b/src/rondevu.ts @@ -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