Skip to content

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

Open
Tim-53 wants to merge 15 commits intomainfrom
feat/core/add_fetch_to_constructor
Open

Make it possible to use node-fetch in HTTPService#35
Tim-53 wants to merge 15 commits intomainfrom
feat/core/add_fetch_to_constructor

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

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 });

Tim-53 and others added 2 commits July 13, 2023 19:21
Co-authored-by: slaesh <55546823+slaesh@users.noreply.github.com>
Co-authored-by: slaesh <55546823+slaesh@users.noreply.github.com>
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