From 36a86ad9bfa4b256886ca6c075c9dbad805d630d Mon Sep 17 00:00:00 2001 From: dryajov Date: Tue, 31 Jan 2017 02:13:47 -0800 Subject: [PATCH 1/2] WIP: use self instead of window for WebWorker compatibility --- benchmarks/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') From 5875fac87eea0a51175b2d264b2a5aa8b257f724 Mon Sep 17 00:00:00 2001 From: dmitriy ryajov Date: Tue, 7 Feb 2017 19:10:00 -0800 Subject: [PATCH 2/2] chore: upgrading aegir to version 10 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}