@bsv/message-box-client 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +28 -0
- package/README.md +1013 -0
- package/mod.ts +3 -0
- package/package.json +80 -0
- package/src/MessageBoxClient.ts +1341 -0
- package/src/PeerPayClient.ts +386 -0
- package/src/Utils/logger.ts +27 -0
- package/src/__tests/MessageBoxClient.test.ts +763 -0
- package/src/__tests/PeerPayClientUnit.test.ts +245 -0
- package/src/__tests/integration/integrationEncrypted.test.ts +103 -0
- package/src/__tests/integration/integrationHTTP.test.ts +158 -0
- package/src/__tests/integration/integrationOverlay.test.ts +163 -0
- package/src/__tests/integration/integrationWS.test.ts +147 -0
- package/src/__tests/integration/testServer.ts +68 -0
- package/src/types.ts +108 -0
package/mod.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bsv/message-box-client",
|
|
3
|
+
"version": "1.1.7",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "A client for P2P messaging and payments",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "dist/cjs/mod.js",
|
|
10
|
+
"module": "dist/esm/mod.js",
|
|
11
|
+
"types": "dist/types/mod.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"src",
|
|
15
|
+
"mod.ts",
|
|
16
|
+
"LICENSE.txt"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "npm run build:ts && npm run build:umd",
|
|
20
|
+
"build:ts": "tsc -b && tsconfig-to-dual-package tsconfig.cjs.json",
|
|
21
|
+
"build:umd": "webpack --config webpack.config.js",
|
|
22
|
+
"test": "jest --config=jest.config.ts",
|
|
23
|
+
"test:integration": "jest --config=jest.config.integration.ts",
|
|
24
|
+
"test:coverage": "jest --coverage --coverageReporters=text --coverageReporters=html",
|
|
25
|
+
"test:watch": "jest --watch",
|
|
26
|
+
"lint": "ts-standard --fix .",
|
|
27
|
+
"clean": "rimraf dist node_modules && npm install"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"BSV",
|
|
31
|
+
"Blockchain",
|
|
32
|
+
"P2P",
|
|
33
|
+
"Bitcoin",
|
|
34
|
+
"SV",
|
|
35
|
+
"Messaging",
|
|
36
|
+
"MessageBox"
|
|
37
|
+
],
|
|
38
|
+
"exports": {
|
|
39
|
+
".": {
|
|
40
|
+
"import": "./dist/esm/mod.js",
|
|
41
|
+
"require": "./dist/cjs/mod.js",
|
|
42
|
+
"types": "./dist/types/mod.d.ts"
|
|
43
|
+
},
|
|
44
|
+
"./package.json": "./package.json"
|
|
45
|
+
},
|
|
46
|
+
"author": "BSV Blockchain Association",
|
|
47
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@bsv/auth-express-middleware": "^1.1.2",
|
|
50
|
+
"@bsv/payment-express-middleware": "^1.0.4",
|
|
51
|
+
"@eslint/js": "^9.20.0",
|
|
52
|
+
"@types/jest": "^29.5.14",
|
|
53
|
+
"@types/node": "^22.13.2",
|
|
54
|
+
"@types/supertest": "^6.0.2",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^8.24.1",
|
|
56
|
+
"@typescript-eslint/parser": "^8.24.1",
|
|
57
|
+
"ejs": "^3.1.10",
|
|
58
|
+
"eslint": "^9.20.1",
|
|
59
|
+
"eslint-plugin-react": "^7.37.4",
|
|
60
|
+
"globals": "^15.15.0",
|
|
61
|
+
"jest": "^29.7.0",
|
|
62
|
+
"jest-fetch-mock": "^3.0.3",
|
|
63
|
+
"ts-jest": "^29.2.5",
|
|
64
|
+
"ts-node": "^10.9.2",
|
|
65
|
+
"ts-standard": "^12.0.2",
|
|
66
|
+
"ts2md": "^0.2.8",
|
|
67
|
+
"tsconfig-to-dual-package": "^1.2.0",
|
|
68
|
+
"typescript": "^5.7.3",
|
|
69
|
+
"typescript-eslint": "^8.24.0",
|
|
70
|
+
"webpack": "^5.98.0",
|
|
71
|
+
"webpack-bundle-analyzer": "^4.10.2",
|
|
72
|
+
"webpack-cli": "^6.0.1",
|
|
73
|
+
"webpack-dev-server": "^5.2.0",
|
|
74
|
+
"webpack-merge": "^6.0.1"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@bsv/authsocket-client": "^1.0.8",
|
|
78
|
+
"@bsv/sdk": "^1.6.0"
|
|
79
|
+
}
|
|
80
|
+
}
|