p2party 0.7.8 → 0.7.9
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/lib/cryptography/utils.d.ts +2 -1
- package/lib/db.worker.js +1 -1
- package/lib/handlers/handleOpenChannel.d.ts +0 -4
- package/lib/index.js +1 -1
- package/lib/index.min.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/utils/constants.d.ts +4 -1
- package/lib/utils/uint8array.d.ts +0 -4
- package/package.json +5 -5
- package/lib/handlers/handleReceiveMessageOld.d.ts +0 -16
package/lib/utils/constants.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export declare const MESSAGE_LEN: number;
|
|
2
2
|
export declare const MAX_BUFFERED_AMOUNT: number;
|
|
3
|
-
export declare const PROOF_LEN: number;
|
|
4
3
|
export declare const NAME_LEN = 256;
|
|
5
4
|
export declare const METADATA_LEN: number;
|
|
5
|
+
export declare const PROOF_LEN: number;
|
|
6
|
+
export declare const MESSAGE_START: number;
|
|
7
|
+
export declare const CHUNK_START: number;
|
|
8
|
+
export declare const MESSAGE_DATA_BEFORE_START_INDEX: number;
|
|
6
9
|
export declare const IMPORTANT_DATA_LEN: number;
|
|
7
10
|
export declare const CHUNK_LEN: number;
|
|
8
11
|
export declare const DECRYPTED_LEN: number;
|
|
@@ -14,8 +14,4 @@ export declare const uint8ArrayToHex: (array: Uint8Array) => string;
|
|
|
14
14
|
* Converts hex string to Uint8Array.
|
|
15
15
|
*/
|
|
16
16
|
export declare const hexToUint8Array: (hexString: string) => Uint8Array<ArrayBuffer>;
|
|
17
|
-
/**
|
|
18
|
-
* Converts a string or a File into a Uint8Array.
|
|
19
|
-
*/
|
|
20
|
-
export declare const serializer: (data: string | File) => Promise<Uint8Array>;
|
|
21
17
|
//# sourceMappingURL=uint8array.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "p2party",
|
|
3
3
|
"description": "Create WebRTC mesh networks in two LOC",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.9",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/p2party/p2party-js.git"
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"docs": "typedoc --out docs --excludeInternal src/index.ts"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@aws-sdk/client-s3": "^3.
|
|
82
|
+
"@aws-sdk/client-s3": "^3.893.0",
|
|
83
83
|
"@eslint/js": "^9.35.0",
|
|
84
84
|
"@jest/globals": "^30.1.2",
|
|
85
85
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
@@ -94,18 +94,18 @@
|
|
|
94
94
|
"cross-env": "^10.0.0",
|
|
95
95
|
"dotenv": "^17.2.2",
|
|
96
96
|
"dts-bundle-generator": "^9.5.1",
|
|
97
|
-
"eslint": "^9.
|
|
97
|
+
"eslint": "^9.36.0",
|
|
98
98
|
"eslint-plugin-jest": "^29.0.1",
|
|
99
99
|
"idb": "^8.0.3",
|
|
100
100
|
"jest": "^30.1.3",
|
|
101
101
|
"npm-run-all": "^4.1.5",
|
|
102
102
|
"prettier": "^3.6.2",
|
|
103
|
-
"rollup": "^4.
|
|
103
|
+
"rollup": "^4.52.0",
|
|
104
104
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
105
105
|
"rollup-plugin-copy": "^3.5.0",
|
|
106
106
|
"rollup-plugin-dts": "^6.2.3",
|
|
107
107
|
"terser": "^5.44.0",
|
|
108
|
-
"ts-jest": "^29.4.
|
|
108
|
+
"ts-jest": "^29.4.4",
|
|
109
109
|
"tslib": "^2.8.1",
|
|
110
110
|
"typescript": "^5.9.2",
|
|
111
111
|
"typescript-eslint": "^8.44.0"
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { LibCrypto } from "../cryptography/libcrypto";
|
|
2
|
-
export declare const handleReceiveMessage: (data: ArrayBuffer, merkleRoot: Uint8Array, senderPublicKey: Uint8Array, receiverSecretKey: Uint8Array, decryptionModule: LibCrypto, merkleModule: LibCrypto) => Promise<{
|
|
3
|
-
date: Date;
|
|
4
|
-
chunkSize: number;
|
|
5
|
-
savedSize: number;
|
|
6
|
-
totalSize: number;
|
|
7
|
-
chunkIndex: number;
|
|
8
|
-
chunkHash: Uint8Array;
|
|
9
|
-
messageHash: Uint8Array;
|
|
10
|
-
receivedFullSize: boolean;
|
|
11
|
-
messageAlreadyExists: boolean;
|
|
12
|
-
chunkAlreadyExists: boolean;
|
|
13
|
-
messageType: number;
|
|
14
|
-
filename: string;
|
|
15
|
-
}>;
|
|
16
|
-
//# sourceMappingURL=handleReceiveMessageOld.d.ts.map
|