From 0df192ed31b0b51e3adf8c74bdb7433b4497ca71 Mon Sep 17 00:00:00 2001 From: Harvmaster Date: Mon, 3 Aug 2026 09:21:32 +0000 Subject: [PATCH] Use hosted utils package --- package-lock.json | 60 ++++++++++++++++++++--------------------------- package.json | 2 +- readme.md | 20 ++++++++++++++++ 3 files changed, 46 insertions(+), 36 deletions(-) create mode 100644 readme.md diff --git a/package-lock.json b/package-lock.json index 9d4614f..2ab76d5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@bitauth/libauth": "^3.0.0", "@xo-cash/crypto": "^0.0.2", "@xo-cash/primitives": "^0.0.2", - "@xo-cash/utils": "file:../utils", + "@xo-cash/utils": "git+https://git.harvmaster.com/Harvmaster/xo-cash-utils.git", "zod": "^4.4.3" }, "devDependencies": { @@ -21,38 +21,6 @@ "typescript": "^7.0.2" } }, - "../utils": { - "name": "@xo-cash/utils", - "version": "0.0.2", - "license": "MIT", - "dependencies": { - "@bitauth/libauth": "^3.1.0-next.8", - "@xo-cash/types": "0.0.3", - "eventemitter3": "^5.0.4", - "zod": "^4.3.6" - }, - "devDependencies": { - "@chalp/eslint-airbnb": "^1.3.0", - "@generalprotocols/cspell-dictionary": "^1.0.1", - "@stylistic/eslint-plugin": "^5.7.0", - "@types/node": "^25.5.0", - "@typescript-eslint/eslint-plugin": "^8.53.1", - "@typescript-eslint/parser": "^8.53.1", - "@vitest/coverage-v8": "^4.0.17", - "@viz-kit/esbuild-analyzer": "^1.0.0", - "@xo-cash/eslint-config": "1.0.1", - "@xo-cash/templates": "0.0.1", - "cspell": "^9.6.0", - "eslint": "^9.39.2", - "prettier": "^3.6.2", - "tsdown": "^0.20.0-beta.4", - "typedoc": "^0.28.16", - "typedoc-plugin-coverage": "^4.0.2", - "typescript": "^5.3.2", - "typescript-eslint": "^8.53.1", - "vitest": "^4.0.17" - } - }, "node_modules/@bitauth/libauth": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@bitauth/libauth/-/libauth-3.0.0.tgz", @@ -912,8 +880,24 @@ } }, "node_modules/@xo-cash/utils": { - "resolved": "../utils", - "link": true + "version": "0.0.2", + "resolved": "git+https://git.harvmaster.com/Harvmaster/xo-cash-utils.git#c6ce99605fbe8c216e5f8e271ccf6c30bb19345e", + "license": "MIT", + "dependencies": { + "@bitauth/libauth": "^3.1.0-next.8", + "@xo-cash/types": "0.0.3", + "eventemitter3": "^5.0.4", + "zod": "^4.3.6" + } + }, + "node_modules/@xo-cash/utils/node_modules/@bitauth/libauth": { + "version": "3.1.0-next.8", + "resolved": "https://registry.npmjs.org/@bitauth/libauth/-/libauth-3.1.0-next.8.tgz", + "integrity": "sha512-Pm+Ju+YP3JeBLLTiVrBnia2wwE4G17r4XqpvPRMcklElJTe8J6x3JgKRg1by0Xm3ZY6UFxACkEAoSA+x419/zA==", + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } }, "node_modules/esbuild": { "version": "0.28.1", @@ -957,6 +941,12 @@ "@esbuild/win32-x64": "0.28.1" } }, + "node_modules/eventemitter3": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", + "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", + "license": "MIT" + }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", diff --git a/package.json b/package.json index c33fc97..a031a3c 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@bitauth/libauth": "^3.0.0", "@xo-cash/crypto": "^0.0.2", "@xo-cash/primitives": "^0.0.2", - "@xo-cash/utils": "file:../utils", + "@xo-cash/utils": "git+https://git.harvmaster.com/Harvmaster/xo-cash-utils.git", "zod": "^4.4.3" } } diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..7ef7352 --- /dev/null +++ b/readme.md @@ -0,0 +1,20 @@ +# Installation + +``` +git clone https://git.harvmaster.com/Harvmaster/sync-server-example.git +cd sync-server-example +npm ci +``` + +# Running + +There are 2 examples in the `src/index.ts` file. + +- `testSSE()` - Example using the SSE client +- `testWS()` - Example using the WebSocket client + +To run the examples, you can use the following command: + +``` +npm run start +```