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: DVC-9055 extract JS Cloud Bucketing SDK from NodeJS SDK #560

Merged
merged 16 commits into from
Oct 18, 2023

Conversation

jonathannorris
Copy link
Member

@jonathannorris jonathannorris commented Sep 20, 2023

Extracting the JS Cloud Bucketing SDK from the NodeJS SDK, this will allow for the more generic JS Cloud Bucketing SDK to be used in places where the NodeJS SDK couldn't be (Cloudflare Workers / Edge Worker Runtimes / Electron Apps / etc). The NodeJS SDK will import this new SDK for its existing DevCycleCloudClient interface. To avoid duplication of code, most of the shared logic from the NodeJS SDK has been moved to the new JS Cloud Bucketing SDK and imported from there.

@vercel
Copy link

vercel bot commented Sep 20, 2023

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

Name Status Preview Comments Updated (UTC)
js-sdks-next-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2023 1:31am
js-sdks-web-elements ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2023 1:31am
js-sdks-with-provider ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2023 1:31am

fetchRequestMock.mockResolvedValue(
new Response('', { status: 200 }),
)
await post('https://test.com', {}, 'token')

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "token" is used as [authorization header](1).
expect.objectContaining({
method: 'POST',
headers: {
Authorization: 'token',

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "token" is used as [authorization header](1).
new Response('', { status: 500 }),
)
await expect(
post('https://test.com', {}, 'token'),

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "token" is used as [authorization header](1).
expect.objectContaining({
method: 'POST',
headers: {
Authorization: 'token',

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "token" is used as [authorization header](1).
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.

3 participants