@constl/utils-tests 1.6.10 → 1.6.12
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.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 +2 -2
- package/src/constellation.ts +2 -3
- package/src/index.ts +1 -0
- 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.12";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.6.
|
|
2
|
+
"version": "1.6.12",
|
|
3
3
|
"license": "AGPL-3.0-or-later",
|
|
4
4
|
"name": "@constl/utils-tests",
|
|
5
5
|
"author": "Julien Jean Malard-Adam",
|
|
@@ -33,7 +33,7 @@
|
|
|
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",
|
package/src/constellation.ts
CHANGED
|
@@ -4,8 +4,7 @@ import { isBrowser } from "wherearewe";
|
|
|
4
4
|
|
|
5
5
|
import { créerOrbiteTest } from "@/orbite.js";
|
|
6
6
|
import { AttendreRésultat } from "@/attente.js";
|
|
7
|
-
import {
|
|
8
|
-
import { ServicesLibp2pConstlTest } from "./libp2p";
|
|
7
|
+
import type { ServicesLibp2pConstlTest } from "./libp2p";
|
|
9
8
|
|
|
10
9
|
export const créerConstellationsTest = async <
|
|
11
10
|
T = Constellation,
|
|
@@ -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/index.ts
CHANGED
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.12";
|