mirror of
https://github.com/xtr-dev/rondevu-client.git
synced 2025-12-10 02:43:25 +00:00
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:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@xtr-dev/rondevu-client",
|
"name": "@xtr-dev/rondevu-client",
|
||||||
"version": "0.2.1",
|
"version": "0.2.2",
|
||||||
"description": "TypeScript client for Rondevu peer signaling and discovery server",
|
"description": "TypeScript client for Rondevu peer signaling and discovery server",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import {
|
|||||||
HealthResponse,
|
HealthResponse,
|
||||||
ErrorResponse,
|
ErrorResponse,
|
||||||
Side,
|
Side,
|
||||||
} from './types';
|
} from './types.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* HTTP API client for Rondevu peer signaling and discovery server
|
* HTTP API client for Rondevu peer signaling and discovery server
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { EventEmitter } from './event-emitter';
|
import { EventEmitter } from './event-emitter.js';
|
||||||
import { RondevuAPI } from './client';
|
import { RondevuAPI } from './client.js';
|
||||||
import { RondevuConnectionParams } from './types';
|
import { RondevuConnectionParams } from './types.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a WebRTC connection with automatic signaling and ICE exchange
|
* Represents a WebRTC connection with automatic signaling and ICE exchange
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Export main WebRTC client class
|
// Export main WebRTC client class
|
||||||
export { Rondevu } from './rondevu';
|
export { Rondevu } from './rondevu.js';
|
||||||
|
|
||||||
// Export connection class
|
// Export connection class
|
||||||
export { RondevuConnection } from './connection';
|
export { RondevuConnection } from './connection.js';
|
||||||
|
|
||||||
// Export low-level signaling API (for advanced usage)
|
// Export low-level signaling API (for advanced usage)
|
||||||
export { RondevuAPI } from './client';
|
export { RondevuAPI } from './client.js';
|
||||||
|
|
||||||
// Export all types
|
// Export all types
|
||||||
export type {
|
export type {
|
||||||
@@ -39,4 +39,4 @@ export type {
|
|||||||
HealthResponse,
|
HealthResponse,
|
||||||
ErrorResponse,
|
ErrorResponse,
|
||||||
RondevuClientOptions,
|
RondevuClientOptions,
|
||||||
} from './types';
|
} from './types.js';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { RondevuAPI } from './client';
|
import { RondevuAPI } from './client.js';
|
||||||
import { RondevuConnection } from './connection';
|
import { RondevuConnection } from './connection.js';
|
||||||
import { RondevuOptions, JoinOptions, RondevuConnectionParams } from './types';
|
import { RondevuOptions, JoinOptions, RondevuConnectionParams } from './types.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main Rondevu WebRTC client with automatic connection management
|
* Main Rondevu WebRTC client with automatic connection management
|
||||||
|
|||||||
Reference in New Issue
Block a user