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: DVC9059 move core server request logic to new lib #565

Merged
merged 8 commits into from
Oct 24, 2023

Conversation

jonathannorris
Copy link
Member

@jonathannorris jonathannorris commented Sep 26, 2023

  • pull out the common request logic between the JS Cloud Server SDK and NodeJS SDK into its own library.

@vercel
Copy link

vercel bot commented Sep 26, 2023

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

Name Status Preview Comments Updated (UTC)
js-sdks-next-js ❌ Failed (Inspect) Oct 24, 2023 8:02pm
js-sdks-web-elements ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2023 8:02pm
js-sdks-with-provider ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2023 8:02pm

@jonathannorris jonathannorris changed the title feat: remove core server request logic to new lib feat: DVC9059 move core server request logic to new lib Sep 26, 2023
@@ -19,20 +18,3 @@ export async function getEnvironmentConfig(
requestTimeout,
)
}

async function getWithTimeout(
Copy link
Member Author

Choose a reason for hiding this comment

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

move to common request lib

status: number
}

const exponentialBackoff: RequestInitWithRetry['retryDelay'] = (attempt) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved all common request helper functions here used by various server SDKs.

@jonathannorris jonathannorris force-pushed the DVC-9059-add-bundled-libraries branch from adc5edf to 3ec54d0 Compare October 24, 2023 17:51
@jonathannorris jonathannorris force-pushed the DVC-9059-add-bundled-libraries branch from 3ec54d0 to d2cf865 Compare October 24, 2023 19:12
Base automatically changed from DVC-9059-add-bundled-libraries to main October 24, 2023 19:55
@jonathannorris jonathannorris merged commit 840adb3 into main Oct 24, 2023
11 checks passed
@jonathannorris jonathannorris deleted the DVC-9059-request-lib branch October 24, 2023 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants