This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change api to async / await (#112)
BREAKING CHANGE: All places in the API that used callbacks are now replaced with async/await. The API has also been updated according to the latest `interface-transport` version, https://github.com/libp2p/interface-transport/tree/v0.6.0#api.
- Loading branch information
Showing
19 changed files
with
587 additions
and
724 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,4 @@ | ||
docs | ||
**/node_modules/ | ||
**/*.log | ||
test/repo-tests* | ||
**/bundle.js | ||
|
||
# yarn | ||
yarn.lock | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
coverage | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
build | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
|
||
lib | ||
dist | ||
test/test-data/go-ipfs-repo/LOCK | ||
test/test-data/go-ipfs-repo/LOG | ||
test/test-data/go-ipfs-repo/LOG.old | ||
|
||
# while testing npm5 | ||
package-lock.json | ||
coverage | ||
.nyc_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,10 @@ | |
"release": "aegir release -t node --no-build", | ||
"release-minor": "aegir release -t node --type minor --no-build", | ||
"release-major": "aegir-release -t node --type major --no-build", | ||
"coverage": "aegir coverage", | ||
"coverage-publish": "aegir coverage --provider coveralls" | ||
"coverage": "nyc --reporter=text --reporter=lcov npm run test:node" | ||
}, | ||
"pre-push": [ | ||
"lint", | ||
"test" | ||
"lint" | ||
], | ||
"repository": { | ||
"type": "git", | ||
|
@@ -38,20 +36,18 @@ | |
"aegir": "^20.0.0", | ||
"chai": "^4.2.0", | ||
"dirty-chai": "^2.0.1", | ||
"interface-transport": "~0.3.6", | ||
"pull-stream": "^3.6.14" | ||
"interface-transport": "^0.6.1", | ||
"sinon": "^7.3.1" | ||
}, | ||
"dependencies": { | ||
"abortable-iterator": "^2.1.0", | ||
"class-is": "^1.1.0", | ||
"debug": "^4.1.1", | ||
"interface-connection": "~0.3.3", | ||
"err-code": "^2.0.0", | ||
"ip-address": "^6.1.0", | ||
"lodash.includes": "^4.3.0", | ||
"lodash.isfunction": "^3.0.9", | ||
"mafmt": "^6.0.7", | ||
"multiaddr": "^6.1.0", | ||
"once": "^1.4.0", | ||
"stream-to-pull-stream": "^1.7.3" | ||
"mafmt": "^6.0.9", | ||
"multiaddr": "^7.1.0", | ||
"stream-to-it": "^0.1.1" | ||
}, | ||
"contributors": [ | ||
"Alan Shaw <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict' | ||
|
||
// p2p multi-address code | ||
exports.CODE_P2P = 421 | ||
exports.CODE_CIRCUIT = 290 | ||
|
||
// Time to wait for a connection to close gracefully before destroying it manually | ||
exports.CLOSE_TIMEOUT = 2000 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.