@libp2p/interface-compliance-tests 3.0.5 → 3.0.7

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
@@ -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
 
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/interface-compliance-tests",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "description": "Compliance tests for JS libp2p interfaces",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/interface-compliance-tests#readme",
@@ -156,7 +156,7 @@
156
156
  "release": "aegir release"
157
157
  },
158
158
  "dependencies": {
159
- "aegir": "^37.7.3"
159
+ "aegir": "^39.0.5"
160
160
  },
161
161
  "typedoc": {
162
162
  "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
  }