Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Apr 7, 2021
1 parent f5f6a9f commit 6c12a36
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 19 deletions.
22 changes: 14 additions & 8 deletions .aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* set up a libp2p instance for browser nodes to relay through
* before tests start
*/
const path = require('path')

const Libp2p = require('libp2p')
const PeerId = require('peer-id')
Expand Down Expand Up @@ -52,15 +53,20 @@ const after = async () => {
await libp2p.stop()
}

/** @type {import('aegir').Options["build"]["config"]} */
const esbuild = {
inject: [path.join(__dirname, './scripts/node-globals.js')]
}

/** @type {import('aegir').PartialOptions} */
module.exports = {
hooks: {
pre: before,
post: after
},
webpack: {
node: {
// this is needed until bcrypto stops using node buffers in browser code
Buffer: true
test: {
before,
after,
browser: {
config: {
buildConfig: esbuild
}
}
}
}
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ stages:
- cov

node_js:
- '10'
- 'lts/*'
- 'node'

os:
- linux
Expand Down
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"test": "aegir test",
"test:node": "aegir test -t node",
"test:browser": "aegir test -t browser",
"build": "aegir build",
"build": "aegir build --no-types",
"docs": "aegir-docs",
"release": "aegir release --docs",
"release-minor": "aegir release --type minor --docs",
"release-major": "aegir release --type major --docs",
"release": "aegir release --docs --no-types",
"release-minor": "aegir release --no-types --type minor --docs",
"release-major": "aegir release --no-types --type major --docs",
"coverage": "aegir coverage",
"coverage-publish": "aegir coverage --provider coveralls"
},
Expand Down Expand Up @@ -42,24 +42,26 @@
},
"homepage": "https://github.com/libp2p/js-libp2p-floodsub#readme",
"devDependencies": {
"aegir": "^28.1.0",
"aegir": "^33.0.0",
"benchmark": "^2.1.4",
"chai": "^4.2.0",
"ipfs-utils": "^4.0.1",
"chai": "^4.3.4",
"ipfs-utils": "^6.0.6",
"libp2p": "^0.30.0",
"libp2p-mplex": "^0.10.1",
"libp2p-noise": "^2.0.1",
"libp2p-websockets": "^0.14.0",
"multiaddr": "^8.1.1",
"os": "^0.1.1",
"p-wait-for": "^3.1.0",
"peer-id": "^0.14.2",
"sinon": "^9.2.1"
"sinon": "^10.0.0",
"url": "^0.11.0"
},
"dependencies": {
"debug": "^4.2.0",
"libp2p-interfaces": "^0.8.1",
"libp2p-interfaces": "libp2p/js-libp2p-interfaces#chore/update-pubsub-interface",
"time-cache": "^0.3.0",
"uint8arrays": "^1.1.0"
"uint8arrays": "^2.1.4"
},
"peerDependencies": {
"libp2p": "^0.30.0"
Expand Down
1 change: 1 addition & 0 deletions scripts/node-globals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const { Buffer } = require('buffer')

0 comments on commit 6c12a36

Please sign in to comment.