Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix peer-id errors
  • Loading branch information
fbaiodias committed Apr 8, 2016
commit ecc731ab98f84737a5c7fa46e44383e20b3abf7c
9 changes: 7 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = function (config) {
var path = require('path')
var nodeForgePath = path.resolve(__dirname, 'node_modules/peer-id/deps/forge.bundle.js')
var nodeForgePath = path.resolve(__dirname, 'node_modules/peer-id/vendor/forge.bundle.js')

config.set({
basePath: '',
Expand Down Expand Up @@ -31,7 +31,12 @@ module.exports = function (config) {
module: {
loaders: [
{ test: /\.json$/, loader: 'json' }
]
],
postLoaders: [{
test: /\.js$/,
loader: 'transform?brfs',
include: /node_modules\/peer-id/
}]
}
},

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"libp2p-ipfs": "^0.2.0",
"lodash.get": "^4.0.0",
"lodash.set": "^4.0.0",
"peer-id": "^0.6.1",
"peer-id": "^0.6.3",
"peer-info": "^0.6.0",
"ronin": "^0.3.11",
"temp": "^0.8.3"
Expand Down