@libp2p/perf 1.1.9 → 1.1.10-62a56b54

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.
@@ -46,7 +46,7 @@ import type { Registrar } from '@libp2p/interface-internal/registrar';
46
46
  import type { AbortOptions } from '@libp2p/interfaces';
47
47
  export declare const defaultInit: PerfServiceInit;
48
48
  export interface PerfService {
49
- measurePerformance: (startTime: number, connection: Connection, sendBytes: bigint, recvBytes: bigint, options?: AbortOptions) => Promise<number>;
49
+ measurePerformance(startTime: number, connection: Connection, sendBytes: bigint, recvBytes: bigint, options?: AbortOptions): Promise<number>;
50
50
  }
51
51
  export interface PerfServiceInit {
52
52
  protocolName?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAA;AACtF,OAAO,KAAK,EAAsB,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACzF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAItD,eAAO,MAAM,WAAW,EAAE,eAGzB,CAAA;AAED,MAAM,WAAW,WAAW;IAC1B,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CACjJ;AAED,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,OAAO,CA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GAAG,CAAC,UAAU,EAAE,qBAAqB,KAAK,WAAW,CAE3G"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/perf",
3
- "version": "1.1.9",
3
+ "version": "1.1.10-62a56b54",
4
4
  "description": "Implementation of Perf Protocol",
5
5
  "author": "@maschad / @marcopolo",
6
6
  "license": "Apache-2.0 OR MIT",
@@ -29,6 +29,7 @@
29
29
  "eslintConfig": {
30
30
  "extends": "ipfs",
31
31
  "parserOptions": {
32
+ "project": true,
32
33
  "sourceType": "module"
33
34
  }
34
35
  },
@@ -49,20 +50,20 @@
49
50
  "dependencies": {
50
51
  "@chainsafe/libp2p-noise": "^13.0.0",
51
52
  "@chainsafe/libp2p-yamux": "^5.0.0",
52
- "@libp2p/crypto": "^2.0.4",
53
- "@libp2p/interface": "^0.1.2",
54
- "@libp2p/interface-compliance-tests": "^4.1.0",
55
- "@libp2p/interface-internal": "^0.1.5",
53
+ "@libp2p/crypto": "2.0.5-62a56b54",
54
+ "@libp2p/interface": "0.1.3-62a56b54",
55
+ "@libp2p/interface-compliance-tests": "4.1.1-62a56b54",
56
+ "@libp2p/interface-internal": "0.1.6-62a56b54",
56
57
  "@libp2p/interfaces": "3.3.2",
57
- "@libp2p/logger": "^3.0.2",
58
- "@libp2p/peer-id-factory": "^3.0.4",
59
- "@libp2p/tcp": "^8.0.8",
58
+ "@libp2p/logger": "3.0.3-62a56b54",
59
+ "@libp2p/peer-id-factory": "3.0.5-62a56b54",
60
+ "@libp2p/tcp": "8.0.9-62a56b54",
60
61
  "@multiformats/multiaddr": "^12.1.5",
61
- "libp2p": "^0.46.12",
62
+ "libp2p": "0.46.13-62a56b54",
62
63
  "uint8arrays": "^4.0.6",
63
64
  "yargs": "^17.7.2"
64
65
  },
65
66
  "devDependencies": {
66
- "aegir": "^40.0.8"
67
+ "aegir": "^41.0.2"
67
68
  }
68
69
  }
package/src/index.ts CHANGED
@@ -57,7 +57,7 @@ export const defaultInit: PerfServiceInit = {
57
57
  }
58
58
 
59
59
  export interface PerfService {
60
- measurePerformance: (startTime: number, connection: Connection, sendBytes: bigint, recvBytes: bigint, options?: AbortOptions) => Promise<number>
60
+ measurePerformance(startTime: number, connection: Connection, sendBytes: bigint, recvBytes: bigint, options?: AbortOptions): Promise<number>
61
61
  }
62
62
 
63
63
  export interface PerfServiceInit {
@@ -1,12 +0,0 @@
1
- {
2
- "PerfService": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_perf.PerfService.html",
3
- ".:PerfService": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_perf.PerfService.html",
4
- "PerfServiceComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_perf.PerfServiceComponents.html",
5
- ".:PerfServiceComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_perf.PerfServiceComponents.html",
6
- "PerfServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_perf.PerfServiceInit.html",
7
- ".:PerfServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_perf.PerfServiceInit.html",
8
- "defaultInit": "https://libp2p.github.io/js-libp2p/variables/_libp2p_perf.defaultInit.html",
9
- ".:defaultInit": "https://libp2p.github.io/js-libp2p/variables/_libp2p_perf.defaultInit.html",
10
- "perfService": "https://libp2p.github.io/js-libp2p/functions/_libp2p_perf.perfService-1.html",
11
- ".:perfService": "https://libp2p.github.io/js-libp2p/functions/_libp2p_perf.perfService-1.html"
12
- }