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

added http request ext #458

Merged
merged 18 commits into from
Jul 3, 2023
Merged

added http request ext #458

merged 18 commits into from
Jul 3, 2023

Conversation

RedMan13
Copy link
Contributor

No description provided.

package-lock.json Outdated Show resolved Hide resolved
development/server.js Outdated Show resolved Hide resolved
const instance = new WebRequests();
Scratch.extensions.register(instance);
// @ts-ignore
runtime.ext_http = instance;
Copy link
Member

Choose a reason for hiding this comment

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

you shouldn't need to do that

Copy link
Member

Choose a reason for hiding this comment

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

is there a good reason those extra blocks can't just be in the extension? there is no precedent for an extension to require another one to be used first

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is there a good reason those extra blocks can't just be in the extension? there is no precedent for an extension to require another one to be used first

yes and no, i put them separately becuase they look ugly and dont rlly fit well into the main extension imo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reading it again i noticed you specified "required", they are not meant to be required and for the most part are not

Copy link
Member

Choose a reason for hiding this comment

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

it seems to me that every block in httpExtra uses ext_http, so yes it is a required dependency

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it seems to me that every block in httpExtra uses ext_http, so yes it is a required dependency

oh you meant the other way
i was reading it as http requiring httpExtra

@RedMan13
Copy link
Contributor Author

RedMan13 commented Jun 9, 2023

and now its broken :/

@GarboMuffin
Copy link
Member

thanks for your patience

does httpExtra do anything that isn't possible with other JSON extensions here?

if it does, is there a good reason we can't just put them in the main extension? perhaps using a button to hide them by default, but it doesn't look like there's too many there anyways

@RedMan13
Copy link
Contributor Author

RedMan13 commented Jul 1, 2023

thanks for your patience

does httpExtra do anything that isn't possible with other JSON extensions here?

if it does, is there a good reason we can't just put them in the main extension? perhaps using a button to hide them by default, but it doesn't look like there's too many there anyways

yes it does do more then what json can as it manualy edits the whole request options object
a button to toggle it is actualy a rlly good idea

@GarboMuffin
Copy link
Member

thank you for your patience

@GarboMuffin GarboMuffin merged commit 98ab9d0 into TurboWarp:master Jul 3, 2023
1 check passed
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