Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to use node-fetch in HTTPService #35

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

Tim-53
Copy link
Collaborator

@Tim-53 Tim-53 commented Jun 16, 2023

Description: This PR updates the implementation of the HttpService in the Core package to utilize an optionally passed fetch function.
The changes are needed in order to prepare for the upcoming NodeJs SDK which relies on using the core.

Add parameter and fix tests

  • angular
  • core
  • react
  • next
  • svelte
  • nodejs

@vercel
Copy link

vercel bot commented Jun 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
abby-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 14, 2023 11:41am
abby-opensource ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 14, 2023 11:41am

@@ -61,13 +55,27 @@ export class Abby<
TestName extends string,
Tests extends Record<string, ABConfig>
> {
constructor(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

constructor usally comes between the variables and the functions of a class

type: AbbyEventType;
data: Omit<AbbyEvent, "type">;
}) {
this.httpService.sendData({ url, type, data });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
this.httpService.sendData({ url, type, data });
return this.httpService.sendData({ url, type, data });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants