From d5fe220742ff21b3a4fef1422a07b6970eb860c1 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 4 Oct 2018 17:23:16 -0500 Subject: [PATCH] Fix require() --- hyperswarm/peersocket.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hyperswarm/peersocket.js b/hyperswarm/peersocket.js index e03be41c..261952b7 100644 --- a/hyperswarm/peersocket.js +++ b/hyperswarm/peersocket.js @@ -1,9 +1,8 @@ const EventEmitter = require('events') -const crypto = require('crypto') const createSwarm = require('@hyperswarm/network') const lpstream = require('length-prefixed-stream') const pump = require('pump') -const sodium = require('sodium') +const sodium = require('sodium-universal') const schemas = require('./peersocket-schemas') const {extractOrigin} = require('../../../lib/strings')