Use hosted utils package
This commit is contained in:
60
package-lock.json
generated
60
package-lock.json
generated
@@ -12,7 +12,7 @@
|
|||||||
"@bitauth/libauth": "^3.0.0",
|
"@bitauth/libauth": "^3.0.0",
|
||||||
"@xo-cash/crypto": "^0.0.2",
|
"@xo-cash/crypto": "^0.0.2",
|
||||||
"@xo-cash/primitives": "^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"
|
"zod": "^4.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -21,38 +21,6 @@
|
|||||||
"typescript": "^7.0.2"
|
"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": {
|
"node_modules/@bitauth/libauth": {
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@bitauth/libauth/-/libauth-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@bitauth/libauth/-/libauth-3.0.0.tgz",
|
||||||
@@ -912,8 +880,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@xo-cash/utils": {
|
"node_modules/@xo-cash/utils": {
|
||||||
"resolved": "../utils",
|
"version": "0.0.2",
|
||||||
"link": true
|
"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": {
|
"node_modules/esbuild": {
|
||||||
"version": "0.28.1",
|
"version": "0.28.1",
|
||||||
@@ -957,6 +941,12 @@
|
|||||||
"@esbuild/win32-x64": "0.28.1"
|
"@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": {
|
"node_modules/fsevents": {
|
||||||
"version": "2.3.3",
|
"version": "2.3.3",
|
||||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"@bitauth/libauth": "^3.0.0",
|
"@bitauth/libauth": "^3.0.0",
|
||||||
"@xo-cash/crypto": "^0.0.2",
|
"@xo-cash/crypto": "^0.0.2",
|
||||||
"@xo-cash/primitives": "^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"
|
"zod": "^4.4.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
20
readme.md
Normal file
20
readme.md
Normal file
@@ -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
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user