Rename src to source

This commit is contained in:
2026-10-22 15:04:12 +00:00
parent d6fe1c585a
commit 79d7bc04d9
13 changed files with 8 additions and 8 deletions
@@ -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;
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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<ResourcesRecord<{ message: string }>> => {
// Create a group of resources with changes
+3 -3
View File
@@ -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";
+2 -2
View File
@@ -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');
View File
View File