From ecc731ab98f84737a5c7fa46e44383e20b3abf7c Mon Sep 17 00:00:00 2001 From: Francisco Baio Dias Date: Fri, 8 Apr 2016 14:13:53 +0200 Subject: [PATCH] Fix peer-id errors --- karma.conf.js | 9 +++++++-- package.json | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index ddd7c8caf2..1348bc2796 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -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: '', @@ -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/ + }] } }, diff --git a/package.json b/package.json index bf12d29d1e..2623e2d9d4 100644 --- a/package.json +++ b/package.json @@ -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"