From 56bec96dc5b9fa31166d1e7e72a167eabafc7c40 Mon Sep 17 00:00:00 2001 From: Lars Trieloff Date: Tue, 15 Dec 2020 14:33:39 +0000 Subject: [PATCH 1/2] feat(healthcheck): add writeHealthcheck method for upserts --- src/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.js b/src/index.js index 6ab9ca94..6490f0fa 100644 --- a/src/index.js +++ b/src/index.js @@ -319,6 +319,11 @@ class Fastly { } }); }); + + this.writeHealtcheck = this.upsertFn( + this.createHealthcheck, + this.updateHealthcheck, + this.readHealtcheck); } /** From 90818546a41409ea434e0bdaec9196fc6118d220 Mon Sep 17 00:00:00 2001 From: Lars Trieloff Date: Tue, 15 Dec 2020 14:36:34 +0000 Subject: [PATCH 2/2] style(healthcheck): make eslint happy --- src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 6490f0fa..bbdf8f48 100644 --- a/src/index.js +++ b/src/index.js @@ -321,9 +321,10 @@ class Fastly { }); this.writeHealtcheck = this.upsertFn( - this.createHealthcheck, + this.createHealthcheck, this.updateHealthcheck, - this.readHealtcheck); + this.readHealtcheck, + ); } /**