mirror of
https://github.com/fluencelabs/js-libp2p-secio
synced 2025-03-15 18:00:52 +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",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async": "^2.6.1",
|
"async": "^2.6.1",
|
||||||
"debug": "^4.1.0",
|
"debug": "^4.1.1",
|
||||||
"interface-connection": "~0.3.2",
|
"interface-connection": "~0.3.3",
|
||||||
"libp2p-crypto": "~0.14.0",
|
"libp2p-crypto": "~0.15.0",
|
||||||
"multihashing-async": "~0.5.1",
|
"multihashing-async": "~0.5.1",
|
||||||
"peer-id": "~0.12.0",
|
"peer-id": "~0.12.1",
|
||||||
"peer-info": "~0.14.1",
|
"peer-info": "~0.15.0",
|
||||||
"protons": "^1.0.1",
|
"protons": "^1.0.1",
|
||||||
"pull-defer": "~0.2.3",
|
"pull-defer": "~0.2.3",
|
||||||
"pull-handshake": "^1.1.4",
|
"pull-handshake": "^1.1.4",
|
||||||
@ -39,7 +39,7 @@
|
|||||||
"pull-stream": "^3.6.9"
|
"pull-stream": "^3.6.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"aegir": "^17.0.1",
|
"aegir": "^18.0.2",
|
||||||
"benchmark": "^2.1.4",
|
"benchmark": "^2.1.4",
|
||||||
"chai": "^4.2.0",
|
"chai": "^4.2.0",
|
||||||
"dirty-chai": "^2.0.1",
|
"dirty-chai": "^2.0.1",
|
||||||
|
@ -17,7 +17,7 @@ module.exports = function finish (state, callback) {
|
|||||||
|
|
||||||
const proto = state.protocols
|
const proto = state.protocols
|
||||||
const stream = state.shake.rest()
|
const stream = state.shake.rest()
|
||||||
const shake = handshake({timeout: state.timeout}, (err) => {
|
const shake = handshake({ timeout: state.timeout }, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
|
@ -117,7 +117,7 @@ exports.write = function write (state, msg, cb) {
|
|||||||
cb = cb || (() => {})
|
cb = cb || (() => {})
|
||||||
pull(
|
pull(
|
||||||
pull.values([msg]),
|
pull.values([msg]),
|
||||||
lp.encode({fixed: true, bytes: 4}),
|
lp.encode({ fixed: true, bytes: 4 }),
|
||||||
pull.collect((err, res) => {
|
pull.collect((err, res) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return cb(err)
|
return cb(err)
|
||||||
@ -129,5 +129,5 @@ exports.write = function write (state, msg, cb) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
exports.read = function read (reader, 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