From f7670ba2eec8100a5f2874b2c7b353220d74002a Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Thu, 20 Jul 2017 20:16:06 +1000 Subject: [PATCH] Add the ability to reload the iframe (#21) * First pass at allowing reloading * Build after installing, so we can use GitHub branches as dependencies * Use npm instead of make for postinstall * Try using postinstall-build for postinstall? * Package: need to include index.js, so it can be built. * Package: need to include Makefile, too. * Wait for a message from the iframe to trigger onload() * Run the test suite twice - once normally, then once after reload. * Add myself as a contributor * Fix some code formatting bugs * Let prepublish build the lib when installed as a dependency * Bump package version to v4.0.0 * Don't add index.js and Makefile to npm package --- packages/wpcom-proxy-request/index.js | 22 +- packages/wpcom-proxy-request/package.json | 7 +- packages/wpcom-proxy-request/test/index.js | 441 +++++++++++---------- 3 files changed, 252 insertions(+), 218 deletions(-) diff --git a/packages/wpcom-proxy-request/index.js b/packages/wpcom-proxy-request/index.js index e1127126693c2..631ee08cd5fc9 100644 --- a/packages/wpcom-proxy-request/index.js +++ b/packages/wpcom-proxy-request/index.js @@ -335,9 +335,6 @@ function install() { // create the