Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #132 from ipfs/fix/peer-id
Browse files Browse the repository at this point in the history
Fix peer-id errors on browser tests
  • Loading branch information
daviddias committed Apr 8, 2016
2 parents 28ac19d + ecc731a commit 810f35c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
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

0 comments on commit 810f35c

Please sign in to comment.