mirror of
https://github.com/fluencelabs/js-libp2p-secio
synced 2025-03-15 01:40:51 +00:00
chore: update dependencies
This commit is contained in:
parent
35230c9800
commit
a6290f296b
29
.travis.yml
29
.travis.yml
@ -1,29 +0,0 @@
|
||||
# Warning: This file is automatically synced from https://github.com/ipfs/ci-sync so if you want to change it, please change it there and ask someone to sync all repositories.
|
||||
sudo: false
|
||||
language: node_js
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- node_js: 6
|
||||
env: CXX=g++-4.8
|
||||
- node_js: 8
|
||||
env: CXX=g++-4.8
|
||||
|
||||
script:
|
||||
- npm run lint
|
||||
- npm run test
|
||||
|
||||
before_script:
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
|
||||
after_success:
|
||||
- npm run coverage-publish
|
||||
|
||||
addons:
|
||||
firefox: 'latest'
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- g++-4.8
|
19
circle.yml
19
circle.yml
@ -1,19 +0,0 @@
|
||||
# Warning: This file is automatically synced from https://github.com/ipfs/ci-sync so if you want to change it, please change it there and ask someone to sync all repositories.
|
||||
machine:
|
||||
node:
|
||||
version: stable
|
||||
|
||||
test:
|
||||
post:
|
||||
- npm run coverage -- --upload --providers coveralls
|
||||
|
||||
dependencies:
|
||||
pre:
|
||||
- google-chrome --version
|
||||
- curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
||||
- sudo dpkg -i google-chrome.deb || true
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -f
|
||||
- sudo apt-get install --only-upgrade lsb-base
|
||||
- sudo dpkg -i google-chrome.deb
|
||||
- google-chrome --version
|
12
package.json
12
package.json
@ -26,12 +26,12 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"async": "^2.6.1",
|
||||
"debug": "^4.1.0",
|
||||
"interface-connection": "~0.3.2",
|
||||
"libp2p-crypto": "~0.14.0",
|
||||
"debug": "^4.1.1",
|
||||
"interface-connection": "~0.3.3",
|
||||
"libp2p-crypto": "~0.15.0",
|
||||
"multihashing-async": "~0.5.1",
|
||||
"peer-id": "~0.12.0",
|
||||
"peer-info": "~0.14.1",
|
||||
"peer-id": "~0.12.1",
|
||||
"peer-info": "~0.15.0",
|
||||
"protons": "^1.0.1",
|
||||
"pull-defer": "~0.2.3",
|
||||
"pull-handshake": "^1.1.4",
|
||||
@ -39,7 +39,7 @@
|
||||
"pull-stream": "^3.6.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"aegir": "^17.0.1",
|
||||
"aegir": "^18.0.2",
|
||||
"benchmark": "^2.1.4",
|
||||
"chai": "^4.2.0",
|
||||
"dirty-chai": "^2.0.1",
|
||||
|
@ -17,7 +17,7 @@ module.exports = function finish (state, callback) {
|
||||
|
||||
const proto = state.protocols
|
||||
const stream = state.shake.rest()
|
||||
const shake = handshake({timeout: state.timeout}, (err) => {
|
||||
const shake = handshake({ timeout: state.timeout }, (err) => {
|
||||
if (err) {
|
||||
throw err
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ exports.write = function write (state, msg, cb) {
|
||||
cb = cb || (() => {})
|
||||
pull(
|
||||
pull.values([msg]),
|
||||
lp.encode({fixed: true, bytes: 4}),
|
||||
lp.encode({ fixed: true, bytes: 4 }),
|
||||
pull.collect((err, res) => {
|
||||
if (err) {
|
||||
return cb(err)
|
||||
@ -129,5 +129,5 @@ exports.write = function write (state, msg, cb) {
|
||||
}
|
||||
|
||||
exports.read = function read (reader, cb) {
|
||||
lp.decodeFromReader(reader, {fixed: true, bytes: 4}, cb)
|
||||
lp.decodeFromReader(reader, { fixed: true, bytes: 4 }, cb)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user