diff --git a/benchmarks/utils.js b/benchmarks/utils.js index 656b70d..ea92c82 100644 --- a/benchmarks/utils.js +++ b/benchmarks/utils.js @@ -2,8 +2,8 @@ const Benchmark = require('benchmark') -if (typeof window !== 'undefined') { - window.Benchmark = Benchmark +if (typeof self !== 'undefined') { + self.Benchmark = Benchmark } const utils = require('../src/utils') diff --git a/package.json b/package.json index 1fcd093..8e00df7 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ }, "homepage": "https://github.com/libp2p/js-libp2p-floodsub#readme", "devDependencies": { - "aegir": "^9.4.0", + "aegir": "^10.0.0", "async": "^2.1.4", "benchmark": "^2.1.3", "chai": "^3.5.0", @@ -67,4 +67,4 @@ "Gavin McDermott ", "Haad " ] -} \ No newline at end of file +}