From b0cd45769a56c547838cd29151c7e5f341327f90 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')