Khrisna commited on
Commit
22ebc43
·
verified ·
1 Parent(s): 3b52306

Update lib/converter.js

Browse files
Files changed (1) hide show
  1. lib/converter.js +3 -3
lib/converter.js CHANGED
@@ -1,8 +1,8 @@
1
  import sharp from "sharp";
2
- const fetch = (await import("node-fetch")).default
3
 
4
- async function convertWebpToPng(input) {
5
- return new Promise((resolve, reject) => {
6
  try {
7
  if (typeof input === "string") {
8
  const response = await fetch(input);
 
1
  import sharp from "sharp";
2
+ import fetch from "node-fetch";
3
 
4
+ function convertWebpToPng(input) {
5
+ return new Promise(async(resolve, reject) => {
6
  try {
7
  if (typeof input === "string") {
8
  const response = await fetch(input);