Rename src to source
This commit is contained in:
@@ -2,7 +2,7 @@ import { subtle, getRandomValues } from "node:crypto";
|
|||||||
import { fromExtendedJson, toExtendedJson } from "@xo-cash/utils";
|
import { fromExtendedJson, toExtendedJson } from "@xo-cash/utils";
|
||||||
import { sha256, binToBase64, binToHex } from "@bitauth/libauth";
|
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 = {
|
type ResourceKey = {
|
||||||
resourceId: string;
|
resourceId: string;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { subtle, getRandomValues } from "node:crypto";
|
|||||||
import { fromExtendedJson, toExtendedJson } from "@xo-cash/utils";
|
import { fromExtendedJson, toExtendedJson } from "@xo-cash/utils";
|
||||||
import { sha256, binToBase64 } from "@bitauth/libauth";
|
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.
|
* Encrypts every resource with a single shared key.
|
||||||
|
|||||||
+1
-1
@@ -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 }>> => {
|
export const writeMany = async (client: BaseSyncClient<{ message: string }>): Promise<ResourcesRecord<{ message: string }>> => {
|
||||||
// Create a group of resources with changes
|
// Create a group of resources with changes
|
||||||
|
|||||||
+3
-3
@@ -1,9 +1,9 @@
|
|||||||
import { PrivateKey } from "@xo-cash/primitives";
|
import { PrivateKey } from "@xo-cash/primitives";
|
||||||
|
|
||||||
// Core clients
|
// Core clients
|
||||||
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 { WsClient } from "../src/ws/client.js";
|
import { WsClient } from "../source/ws/client.js";
|
||||||
|
|
||||||
// Experimental clients
|
// Experimental clients
|
||||||
import { EncryptedClientPerResource } from "./experimental/encrypted-client-per-resource.js";
|
import { EncryptedClientPerResource } from "./experimental/encrypted-client-per-resource.js";
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
import { PrivateKey } from "@xo-cash/primitives";
|
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";
|
import { EncryptedClientPerResource } from "./experimental/encrypted-client-per-resource.js";
|
||||||
|
|
||||||
const privateKey = PrivateKey.fromString('c440ce6ac5b63ae7bc4af9891b80b7a88ccdeebba5e43246885e9ec56f912ac2');
|
const privateKey = PrivateKey.fromString('c440ce6ac5b63ae7bc4af9891b80b7a88ccdeebba5e43246885e9ec56f912ac2');
|
||||||
|
|||||||
Reference in New Issue
Block a user