Send SDK headers based on this package

Open
#196 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
api

Research direction

Start with src/lib/seam/connect/parse-options.ts in the referenced javascript-http revision and prepack.ts around the referenced line. Trace how the pinned package version can be injected during prepack and how the SDK headers are selected; done means this package sends headers based on its own pinned version instead of the default headers.

Written by the indexing model from the issue text.

Description

javascript

Since the versions are all pinned, this lib should override the default sdk headers sent via https://github.com/seamapi/javascript-http/blob/7d444b9f2d1cf36cf43645cb1c813151d4d56593/src/lib/seam/connect/parse-options.ts#L17C14-L20

Do do this, the version first needs to be injected using the prepack script, e.g, https://github.com/seamapi/javascript-http/blob/7d444b9f2d1cf36cf43645cb1c813151d4d56593/prepack.ts#L33

Dominant language
TypeScript
Stars
17
Forks
0
Avg merge
2m
Merged PRs (30d)
11

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from seamapi/javascript

All issues in seamapi/javascript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.