@constl/utils-tests 1.6.11 → 1.6.13
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/dist/constellation.d.ts +2 -3
- package/dist/constellation.js.map +1 -1
- package/dist/libp2p.d.ts +1 -1
- package/dist/libp2p.js.map +1 -1
- package/dist/orbite.d.ts +2 -3
- package/dist/orbite.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +15 -15
- package/src/constellation.ts +1 -2
- package/src/libp2p.ts +1 -1
- package/src/orbite.ts +4 -6
- package/src/version.ts +1 -1
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.6.
|
|
1
|
+
export declare const version = "1.6.13";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.6.
|
|
2
|
+
"version": "1.6.13",
|
|
3
3
|
"license": "AGPL-3.0-or-later",
|
|
4
4
|
"name": "@constl/utils-tests",
|
|
5
5
|
"author": "Julien Jean Malard-Adam",
|
|
@@ -24,31 +24,31 @@
|
|
|
24
24
|
"@chainsafe/libp2p-noise": "^16.0.1",
|
|
25
25
|
"@chainsafe/libp2p-yamux": "^7.0.1",
|
|
26
26
|
"@constl/bohr-db": "^1.2.2",
|
|
27
|
-
"@constl/ipa": "1.5.
|
|
27
|
+
"@constl/ipa": "1.5.13",
|
|
28
28
|
"@eslint/js": "^9.20.0",
|
|
29
|
-
"@libp2p/circuit-relay-v2": "^3.1.
|
|
29
|
+
"@libp2p/circuit-relay-v2": "^3.1.12",
|
|
30
30
|
"@libp2p/crypto": "^5.0.11",
|
|
31
31
|
"@libp2p/identify": "^3.0.18",
|
|
32
32
|
"@libp2p/interface": "^2.5.0",
|
|
33
33
|
"@libp2p/websockets": "^9.1.5",
|
|
34
34
|
"@multiformats/multiaddr": "^12.3.5",
|
|
35
35
|
"@multiformats/multiaddr-matcher": "^1.6.0",
|
|
36
|
-
"@orbitdb/core-types": "^1.0.
|
|
36
|
+
"@orbitdb/core-types": "^1.0.13",
|
|
37
37
|
"@orbitdb/feed-db": "^1.1.1",
|
|
38
38
|
"@types/crypto-js": "^4.2.2",
|
|
39
39
|
"@types/file-saver": "^2.0.7",
|
|
40
40
|
"@types/mocha": "^10.0.10",
|
|
41
|
-
"@types/node": "^22.13.
|
|
41
|
+
"@types/node": "^22.13.4",
|
|
42
42
|
"@types/uuid": "^10.0.0",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^8.24.
|
|
44
|
-
"@typescript-eslint/parser": "^8.24.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^8.24.1",
|
|
44
|
+
"@typescript-eslint/parser": "^8.24.1",
|
|
45
45
|
"aegir": "^45.0.9",
|
|
46
46
|
"ajv": "^8.17.1",
|
|
47
47
|
"buffer": "^6.0.3",
|
|
48
48
|
"core-js": "^3.40.0",
|
|
49
|
-
"electron": "^34.
|
|
49
|
+
"electron": "^34.2.0",
|
|
50
50
|
"esbuild": "^0.24.2",
|
|
51
|
-
"eslint": "^9.20.
|
|
51
|
+
"eslint": "^9.20.1",
|
|
52
52
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
53
53
|
"eslint-config-prettier": "^10.0.1",
|
|
54
54
|
"eslint-config-standard": "^17.1.0",
|
|
@@ -58,20 +58,20 @@
|
|
|
58
58
|
"execa": "^9.5.2",
|
|
59
59
|
"mocha": "^11.1.0",
|
|
60
60
|
"playwright": "^1.50.1",
|
|
61
|
-
"prettier": "^3.5.
|
|
61
|
+
"prettier": "^3.5.1",
|
|
62
62
|
"progress-events": "^1.0.1",
|
|
63
63
|
"source-map-support": "^0.5.21",
|
|
64
64
|
"ts-patch": "^3.3.0",
|
|
65
65
|
"tsconfig-paths": "^4.2.0",
|
|
66
66
|
"tscpaths": "^0.0.9",
|
|
67
67
|
"typescript": "5.7.3",
|
|
68
|
-
"typescript-eslint": "^8.24.
|
|
68
|
+
"typescript-eslint": "^8.24.1",
|
|
69
69
|
"typescript-transform-paths": "^3.5.3"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@helia/block-brokers": "^4.0.
|
|
72
|
+
"@helia/block-brokers": "^4.0.4",
|
|
73
73
|
"@libp2p/peer-id": "^5.0.12",
|
|
74
|
-
"@libp2p/webrtc": "^5.0
|
|
74
|
+
"@libp2p/webrtc": "^5.1.0",
|
|
75
75
|
"@orbitdb/core": "^2.4.3",
|
|
76
76
|
"blockstore-core": "^5.0.2",
|
|
77
77
|
"blockstore-level": "^2.0.1",
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"crypto-browserify": "^3.12.1",
|
|
81
81
|
"events": "^3.3.0",
|
|
82
82
|
"genversion": "^3.2.0",
|
|
83
|
-
"helia": "5.2.
|
|
84
|
-
"libp2p": "^2.6.
|
|
83
|
+
"helia": "5.2.1",
|
|
84
|
+
"libp2p": "^2.6.2",
|
|
85
85
|
"os-browserify": "^0.3.0",
|
|
86
86
|
"process": "^0.11.10",
|
|
87
87
|
"read-package-up": "^11.0.0",
|
package/src/constellation.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { isBrowser } from "wherearewe";
|
|
|
4
4
|
|
|
5
5
|
import { créerOrbiteTest } from "@/orbite.js";
|
|
6
6
|
import { AttendreRésultat } from "@/attente.js";
|
|
7
|
-
import { Libp2p } from "@libp2p/interface";
|
|
8
7
|
import type { ServicesLibp2pConstlTest } from "./libp2p";
|
|
9
8
|
|
|
10
9
|
export const créerConstellationsTest = async <
|
|
@@ -18,7 +17,7 @@ export const créerConstellationsTest = async <
|
|
|
18
17
|
créerConstellation: (opts: U) => T;
|
|
19
18
|
}): Promise<{
|
|
20
19
|
clients: ReturnType<typeof créerConstellation>[];
|
|
21
|
-
orbites: OrbitDB<
|
|
20
|
+
orbites: OrbitDB<ServicesLibp2pConstlTest>[];
|
|
22
21
|
fOublier: () => Promise<void>;
|
|
23
22
|
}> => {
|
|
24
23
|
const clients: ReturnType<typeof créerConstellation>[] = [];
|
package/src/libp2p.ts
CHANGED
|
@@ -100,7 +100,7 @@ export type ServicesLibp2pConstlTest = {
|
|
|
100
100
|
obtClefPrivée: ServiceClefPrivée;
|
|
101
101
|
};
|
|
102
102
|
export class ServiceClefPrivée {
|
|
103
|
-
|
|
103
|
+
privateKey: PrivateKey;
|
|
104
104
|
|
|
105
105
|
constructor(components: ComposantesServiceClefPrivée) {
|
|
106
106
|
this.privateKey = components.privateKey;
|
package/src/orbite.ts
CHANGED
|
@@ -85,9 +85,7 @@ const startOrbitDB = async ({
|
|
|
85
85
|
return orbitdb;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
const stopOrbitDB = async (
|
|
89
|
-
orbitdb: OrbitDB<Libp2p<ServicesLibp2pConstlTest>>,
|
|
90
|
-
) => {
|
|
88
|
+
const stopOrbitDB = async (orbitdb: OrbitDB<ServicesLibp2pConstlTest>) => {
|
|
91
89
|
await orbitdb.stop();
|
|
92
90
|
await orbitdb.ipfs.stop();
|
|
93
91
|
// @ts-expect-error Je ne sais pas pourquoi
|
|
@@ -99,11 +97,11 @@ export const créerOrbiteTest = async ({
|
|
|
99
97
|
}: {
|
|
100
98
|
n: number;
|
|
101
99
|
}): Promise<{
|
|
102
|
-
orbites: OrbitDB<
|
|
100
|
+
orbites: OrbitDB<ServicesLibp2pConstlTest>[];
|
|
103
101
|
fOublier: () => Promise<void>;
|
|
104
102
|
}> => {
|
|
105
103
|
const sfips: HeliaLibp2p<Libp2p<ServicesLibp2pConstlTest>>[] = [];
|
|
106
|
-
const orbites: OrbitDB<
|
|
104
|
+
const orbites: OrbitDB<ServicesLibp2pConstlTest>[] = [];
|
|
107
105
|
|
|
108
106
|
const {
|
|
109
107
|
dossier: racineDossierOrbite,
|
|
@@ -181,7 +179,7 @@ export const peutÉcrire = async <T extends ServiceMap = ServiceMap>(
|
|
|
181
179
|
| TypedKeyValue<{ [clef: string]: number }>
|
|
182
180
|
| TypedFeed<string>
|
|
183
181
|
| TypedSet<string>,
|
|
184
|
-
attendre?: OrbitDB<
|
|
182
|
+
attendre?: OrbitDB<T>,
|
|
185
183
|
): Promise<boolean> => {
|
|
186
184
|
if (attendre) {
|
|
187
185
|
await attendreInvité(
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = "1.6.
|
|
2
|
+
export const version = "1.6.13";
|