diff --git a/demo/experimental/encrypted-client-per-resource.ts b/demo/experimental/encrypted-client-per-resource.ts index 179598e..2aa12ad 100644 --- a/demo/experimental/encrypted-client-per-resource.ts +++ b/demo/experimental/encrypted-client-per-resource.ts @@ -2,7 +2,7 @@ import { subtle, getRandomValues } from "node:crypto"; import { fromExtendedJson, toExtendedJson } from "@xo-cash/utils"; import { sha256, binToBase64, binToHex } from "@bitauth/libauth"; -import { BaseSyncClient, type Resource, type ResourcesRecord } from "../../src/shared/base-client.js"; +import { BaseSyncClient, type Resource, type ResourcesRecord } from "../../source/shared/base-client.js"; type ResourceKey = { resourceId: string; diff --git a/demo/experimental/encrypted-client.ts b/demo/experimental/encrypted-client.ts index bbcfb6e..c8d6040 100644 --- a/demo/experimental/encrypted-client.ts +++ b/demo/experimental/encrypted-client.ts @@ -2,7 +2,7 @@ import { subtle, getRandomValues } from "node:crypto"; import { fromExtendedJson, toExtendedJson } from "@xo-cash/utils"; import { sha256, binToBase64 } from "@bitauth/libauth"; -import { BaseSyncClient, type ResourcesRecord } from "../../src/shared/base-client.js"; +import { BaseSyncClient, type ResourcesRecord } from "../../source/shared/base-client.js"; /** * Encrypts every resource with a single shared key. diff --git a/demo/shared.ts b/demo/shared.ts index 4b34032..38c2a64 100644 --- a/demo/shared.ts +++ b/demo/shared.ts @@ -1,4 +1,4 @@ -import type { BaseSyncClient, ResourcesRecord } from "../src/shared/base-client.js"; +import type { BaseSyncClient, ResourcesRecord } from "../source/shared/base-client.js"; export const writeMany = async (client: BaseSyncClient<{ message: string }>): Promise> => { // Create a group of resources with changes diff --git a/demo/suite.ts b/demo/suite.ts index 302de78..3c11a11 100644 --- a/demo/suite.ts +++ b/demo/suite.ts @@ -1,9 +1,9 @@ import { PrivateKey } from "@xo-cash/primitives"; // Core clients -import type { BaseSyncClient } from "../src/shared/base-client.js"; -import { SSEClient } from '../src/sse/client.js'; -import { WsClient } from "../src/ws/client.js"; +import type { BaseSyncClient } from "../source/shared/base-client.js"; +import { SSEClient } from '../source/sse/client.js'; +import { WsClient } from "../source/ws/client.js"; // Experimental clients import { EncryptedClientPerResource } from "./experimental/encrypted-client-per-resource.js"; diff --git a/demo/tui.ts b/demo/tui.ts index 8f774e2..98dec14 100644 --- a/demo/tui.ts +++ b/demo/tui.ts @@ -1,8 +1,8 @@ import { PrivateKey } from "@xo-cash/primitives"; -import type { BaseSyncClient } from "../src/shared/base-client.js"; +import type { BaseSyncClient } from "../source/shared/base-client.js"; -import { SSEClient } from "../src/sse/client.js"; +import { SSEClient } from "../source/sse/client.js"; import { EncryptedClientPerResource } from "./experimental/encrypted-client-per-resource.js"; const privateKey = PrivateKey.fromString('c440ce6ac5b63ae7bc4af9891b80b7a88ccdeebba5e43246885e9ec56f912ac2'); diff --git a/src/index.ts b/source/index.ts similarity index 100% rename from src/index.ts rename to source/index.ts diff --git a/src/shared/base-client.ts b/source/shared/base-client.ts similarity index 100% rename from src/shared/base-client.ts rename to source/shared/base-client.ts diff --git a/src/sse/client.ts b/source/sse/client.ts similarity index 100% rename from src/sse/client.ts rename to source/sse/client.ts diff --git a/src/sse/index.ts b/source/sse/index.ts similarity index 100% rename from src/sse/index.ts rename to source/sse/index.ts diff --git a/src/types.ts b/source/types.ts similarity index 100% rename from src/types.ts rename to source/types.ts diff --git a/src/ws/client.ts b/source/ws/client.ts similarity index 100% rename from src/ws/client.ts rename to source/ws/client.ts diff --git a/src/ws/index.ts b/source/ws/index.ts similarity index 100% rename from src/ws/index.ts rename to source/ws/index.ts diff --git a/src/ws/types.ts b/source/ws/types.ts similarity index 100% rename from src/ws/types.ts rename to source/ws/types.ts