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

Commit 810f35c

Browse files
committed
Merge pull request #132 from ipfs/fix/peer-id
Fix peer-id errors on browser tests
2 parents 28ac19d + ecc731a commit 810f35c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

karma.conf.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = function (config) {
22
var path = require('path')
3-
var nodeForgePath = path.resolve(__dirname, 'node_modules/peer-id/deps/forge.bundle.js')
3+
var nodeForgePath = path.resolve(__dirname, 'node_modules/peer-id/vendor/forge.bundle.js')
44

55
config.set({
66
basePath: '',
@@ -31,7 +31,12 @@ module.exports = function (config) {
3131
module: {
3232
loaders: [
3333
{ test: /\.json$/, loader: 'json' }
34-
]
34+
],
35+
postLoaders: [{
36+
test: /\.js$/,
37+
loader: 'transform?brfs',
38+
include: /node_modules\/peer-id/
39+
}]
3540
}
3641
},
3742

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"libp2p-ipfs": "^0.2.0",
9191
"lodash.get": "^4.0.0",
9292
"lodash.set": "^4.0.0",
93-
"peer-id": "^0.6.1",
93+
"peer-id": "^0.6.3",
9494
"peer-info": "^0.6.0",
9595
"ronin": "^0.3.11",
9696
"temp": "^0.8.3"

0 commit comments

Comments
 (0)