@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/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "1.6.10";
1
+ export declare const version = "1.6.12";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = "1.6.10";
2
+ export const version = "1.6.12";
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.6.10",
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.11",
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",
@@ -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 { Libp2p } from "@libp2p/interface";
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<Libp2p<ServicesLibp2pConstlTest>>[];
20
+ orbites: OrbitDB<ServicesLibp2pConstlTest>[];
22
21
  fOublier: () => Promise<void>;
23
22
  }> => {
24
23
  const clients: ReturnType<typeof créerConstellation>[] = [];
package/src/index.ts CHANGED
@@ -4,5 +4,6 @@ export * as dossiers from "@/dossiers.js";
4
4
  export * as orbite from "@/orbite.js";
5
5
  export * as sfip from "@/sfip.js";
6
6
  export * as config from "@/config.js";
7
+ export * as libp2p from "@/libp2p.js";
7
8
 
8
9
  export { version } from "@/version.js";
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<Libp2p<ServicesLibp2pConstlTest>>[];
100
+ orbites: OrbitDB<ServicesLibp2pConstlTest>[];
103
101
  fOublier: () => Promise<void>;
104
102
  }> => {
105
103
  const sfips: HeliaLibp2p<Libp2p<ServicesLibp2pConstlTest>>[] = [];
106
- const orbites: OrbitDB<Libp2p<ServicesLibp2pConstlTest>>[] = [];
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<Libp2p<T>>,
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.10";
2
+ export const version = "1.6.12";