Skip to content

Commit

Permalink
fix: error in search function
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeSiu committed Mar 24, 2024
1 parent a16de3c commit ecca734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function search(
);
}

return Promise.resolve({ url, rawResponse, xcResponse });
return Promise.resolve({ url: new URL(url), rawResponse, xcResponse });
} catch (error: any) {
// Error handling
console.error(error);
Expand Down

0 comments on commit ecca734

Please sign in to comment.