From 7a8d64833de8873afb92982b3f5bfff59b30c542 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 2 Sep 2022 11:02:06 -0700 Subject: es6 migration --- lib/webhooks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/webhooks.js') diff --git a/lib/webhooks.js b/lib/webhooks.js index 3d133cf8..0dc1df52 100644 --- a/lib/webhooks.js +++ b/lib/webhooks.js @@ -1,5 +1,5 @@ -const wretch = require("wretch"); -const fetch = require("node-fetch"); +import wretch from 'wretch'; +import fetch from 'node-fetch'; wretch().polyfills({ fetch }); callWebhook = (invoice, payment) => { -- cgit v1.2.3