diff --git a/packages/extensions/ws/src/exceptions/ConnectionException.ts b/packages/extensions/ws/src/exceptions/ConnectionException.ts index 4fafa61e..321cbf1b 100644 --- a/packages/extensions/ws/src/exceptions/ConnectionException.ts +++ b/packages/extensions/ws/src/exceptions/ConnectionException.ts @@ -1,5 +1,5 @@ -import type { WsgError, WsgEvent, WsgMeta } from "../types"; -import Utils from "../utils"; +import type { WsgError, WsgEvent, WsgMeta } from "../types.js"; +import Utils from "../utils.js"; class ConnectionException extends Error { public wsgEvent: WsgEvent; diff --git a/packages/extensions/ws/src/index.ts b/packages/extensions/ws/src/index.ts index 4da95c56..183b3a7b 100644 --- a/packages/extensions/ws/src/index.ts +++ b/packages/extensions/ws/src/index.ts @@ -13,7 +13,7 @@ import waitFor from "wait-for-async"; import RestException from "@rc-ex/core/RestException"; import type SubscriptionInfo from "@rc-ex/core/definitions/SubscriptionInfo"; -import { request } from "./rest"; +import { request } from "./rest.js"; import type { ConnectionDetails, WebSocketExtensionInterface, @@ -21,10 +21,10 @@ import type { Wsc, WsgEvent, WsToken, -} from "./types"; -import Subscription from "./subscription"; -import ConnectionException from "./exceptions/ConnectionException"; -import Utils from "./utils"; +} from "./types.js"; +import Subscription from "./subscription.js"; +import ConnectionException from "./exceptions/ConnectionException.js"; +import Utils from "./utils.js"; const CONNECTING = 0; const OPEN = 1; diff --git a/packages/extensions/ws/src/rest.ts b/packages/extensions/ws/src/rest.ts index d2283617..1a46a8b2 100644 --- a/packages/extensions/ws/src/rest.ts +++ b/packages/extensions/ws/src/rest.ts @@ -7,8 +7,8 @@ import RestException from "@rc-ex/core/RestException"; import hyperid from "hyperid"; import { getReasonPhrase } from "http-status-codes"; -import Utils from "./utils"; -import type { WebSocketExtensionInterface } from "./types"; +import Utils from "./utils.js"; +import type { WebSocketExtensionInterface } from "./types.js"; const version = "0.16"; diff --git a/packages/extensions/ws/src/subscription.ts b/packages/extensions/ws/src/subscription.ts index 3477e713..597549e4 100644 --- a/packages/extensions/ws/src/subscription.ts +++ b/packages/extensions/ws/src/subscription.ts @@ -3,8 +3,12 @@ import type SubscriptionInfo from "@rc-ex/core/definitions/SubscriptionInfo"; import type { RestResponse } from "@rc-ex/core/types"; import type { MessageEvent } from "ws"; -import type { WebSocketExtensionInterface, WsgEvent, WsgMeta } from "./types"; -import Utils from "./utils"; +import type { + WebSocketExtensionInterface, + WsgEvent, + WsgMeta, +} from "./types.js"; +import Utils from "./utils.js"; class Subscription { public subscriptionInfo?: SubscriptionInfo; diff --git a/packages/extensions/ws/src/utils.ts b/packages/extensions/ws/src/utils.ts index e32e2e52..8dedd644 100644 --- a/packages/extensions/ws/src/utils.ts +++ b/packages/extensions/ws/src/utils.ts @@ -1,9 +1,9 @@ import type { MessageEvent } from "isomorphic-ws"; import type WS from "isomorphic-ws"; -import type { WsgEvent, WsgMeta } from "./types"; -import ClosedException from "./exceptions/ClosedException"; -import TimeoutException from "./exceptions/TimeoutException"; +import type { WsgEvent, WsgMeta } from "./types.js"; +import ClosedException from "./exceptions/ClosedException.js"; +import TimeoutException from "./exceptions/TimeoutException.js"; class Utils { public static splitWsgData(wsgData: string): [WsgMeta, any] {