@libp2p/interface-compliance-tests 3.0.5 → 3.0.7-1c6702c8

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/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
4
4
  [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
5
- [![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-interfaces.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-interfaces)
6
- [![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-interfaces/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-interfaces/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)
5
+ [![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p)
6
+ [![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster)
7
7
 
8
8
  > Compliance tests for JS libp2p interfaces
9
9
 
@@ -13,7 +13,7 @@
13
13
  - [Usage](#usage)
14
14
  - [API Docs](#api-docs)
15
15
  - [License](#license)
16
- - [Contribute](#contribute)
16
+ - [Contribution](#contribution)
17
17
 
18
18
  ## Install
19
19
 
@@ -27,7 +27,7 @@ Each [interface](https://npmjs.org/packages/@libp2p/interfaces) has its document
27
27
 
28
28
  ## API Docs
29
29
 
30
- - <https://libp2p.github.io/js-libp2p-interfaces/modules/_libp2p_interface_compliance_tests.html>
30
+ - <https://libp2p.github.io/js-libp2p/modules/_libp2p_interface_compliance_tests.html>
31
31
 
32
32
  ## License
33
33
 
@@ -36,6 +36,6 @@ Licensed under either of
36
36
  - Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
37
37
  - MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
38
38
 
39
- ## Contribute
39
+ ## Contribution
40
40
 
41
41
  Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
@@ -1,4 +1,4 @@
1
- export interface TestSetup<T, SetupArgs = {}> {
1
+ export interface TestSetup<T, SetupArgs = Record<string, unknown>> {
2
2
  setup: (args?: SetupArgs) => Promise<T>;
3
3
  teardown: () => Promise<void>;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,SAAS,CAAC,CAAC,EAAE,SAAS,GAAG,EAAE;IAC1C,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,CAAA;IACvC,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC9B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,SAAS,CAAC,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/D,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,CAAA;IACvC,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-valid-tick.d.ts","sourceRoot":"","sources":["../../src/is-valid-tick.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,wBAAgB,WAAW,CAAE,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,GAAE,MAAa,WAY5D"}
1
+ {"version":3,"file":"is-valid-tick.d.ts","sourceRoot":"","sources":["../../src/is-valid-tick.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,wBAAgB,WAAW,CAAE,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,GAAE,MAAa,GAAG,OAAO,CAYtE"}
package/package.json CHANGED
@@ -1,24 +1,20 @@
1
1
  {
2
2
  "name": "@libp2p/interface-compliance-tests",
3
- "version": "3.0.5",
3
+ "version": "3.0.7-1c6702c8",
4
4
  "description": "Compliance tests for JS libp2p interfaces",
5
5
  "license": "Apache-2.0 OR MIT",
6
- "homepage": "https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/interface-compliance-tests#readme",
6
+ "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/interface-compliance-tests#readme",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/libp2p/js-libp2p-interfaces.git"
9
+ "url": "git+https://github.com/libp2p/js-libp2p.git"
10
10
  },
11
11
  "bugs": {
12
- "url": "https://github.com/libp2p/js-libp2p-interfaces/issues"
12
+ "url": "https://github.com/libp2p/js-libp2p/issues"
13
13
  },
14
14
  "keywords": [
15
15
  "interface",
16
16
  "libp2p"
17
17
  ],
18
- "engines": {
19
- "node": ">=16.0.0",
20
- "npm": ">=7.0.0"
21
- },
22
18
  "type": "module",
23
19
  "types": "./dist/src/index.d.ts",
24
20
  "typesVersions": {
@@ -156,7 +152,7 @@
156
152
  "release": "aegir release"
157
153
  },
158
154
  "dependencies": {
159
- "aegir": "^37.7.3"
155
+ "aegir": "^39.0.5"
160
156
  },
161
157
  "typedoc": {
162
158
  "entryPoint": "./src/index.ts"
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- export interface TestSetup<T, SetupArgs = {}> {
2
+ export interface TestSetup<T, SetupArgs = Record<string, unknown>> {
3
3
  setup: (args?: SetupArgs) => Promise<T>
4
4
  teardown: () => Promise<void>
5
5
  }
@@ -3,7 +3,7 @@
3
3
  * A tick is considered valid if it happened between now
4
4
  * and `ms` milliseconds ago
5
5
  */
6
- export function isValidTick (date?: number, ms: number = 5000) {
6
+ export function isValidTick (date?: number, ms: number = 5000): boolean {
7
7
  if (date == null) {
8
8
  throw new Error('date must be a number')
9
9
  }
@@ -1,3 +0,0 @@
1
- {
2
- "TestSetup": "https://libp2p.github.io/js-libp2p-interfaces/interfaces/_libp2p_interface_compliance_tests.TestSetup.html"
3
- }