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

feat: add middleware for APIs and Commands #281

Merged
merged 7 commits into from
Feb 14, 2023
Merged

Conversation

sam-goodwin
Copy link
Owner

No description provided.

@sam-goodwin
Copy link
Owner Author

Do we support the fetch api now?

This change would remove that. Think it's a problem?

@thantos
Copy link
Contributor

thantos commented Feb 13, 2023

Do we support the fetch api now?

This change would remove that. Think it's a problem?

Don't think so

@sam-goodwin
Copy link
Owner Author

Do we support the fetch api now?

This change would remove that. Think it's a problem?

Don't think so

Reverted this and went the opposite direction. We require Node 18/web worker standard. As discussed, this aligns with Node 18 lambda, deno, cloudflare, bun. Can be polyfilled in edge cases.

} else {
headers = (response.headers as Record<string, string>) ?? {};
}
response.headers.forEach((value, key) => (headers[key] = value));
Copy link
Owner Author

Choose a reason for hiding this comment

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

always using the Fetch Headers object to avoid worrying about providing sane logic around header names

@@ -43,7 +43,6 @@ const ssm = new SSMClient({});
// execute extensions logic

while (true) {
console.log("next");
Copy link
Contributor

Choose a reason for hiding this comment

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

I also deleted this :-)

@sam-goodwin sam-goodwin merged commit ffa9b3c into main Feb 14, 2023
@sam-goodwin sam-goodwin deleted the sam/middleware branch February 14, 2023 19:05
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