@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 +2 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/is-valid-tick.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
- package/src/is-valid-tick.ts +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- [Usage](#usage)
|
|
14
14
|
- [API Docs](#api-docs)
|
|
15
15
|
- [License](#license)
|
|
16
|
-
- [
|
|
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
|
-
##
|
|
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.
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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,
|
|
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.
|
|
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": "^
|
|
159
|
+
"aegir": "^39.0.5"
|
|
160
160
|
},
|
|
161
161
|
"typedoc": {
|
|
162
162
|
"entryPoint": "./src/index.ts"
|
package/src/index.ts
CHANGED
package/src/is-valid-tick.ts
CHANGED
|
@@ -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
|
}
|