-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
migrate @graphiql/toolkit
to tsup
#3746
Conversation
🦋 Changeset detectedLatest commit: b5b118a The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
let httpFetch; | ||
if (typeof window !== 'undefined' && window.fetch) { | ||
httpFetch = window.fetch; | ||
} | ||
if ( | ||
options?.enableIncrementalDelivery === null || | ||
options.enableIncrementalDelivery !== false | ||
) { | ||
options.enableIncrementalDelivery = true; | ||
} | ||
if (options.fetch) { | ||
httpFetch = options.fetch; | ||
} | ||
const httpFetch = | ||
options.fetch || (typeof window !== 'undefined' && window.fetch); | ||
if (!httpFetch) { | ||
throw new Error('No valid fetcher implementation available'); | ||
} | ||
options.enableIncrementalDelivery = | ||
options.enableIncrementalDelivery !== false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simplified these parts
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3746 +/- ##
==========================================
- Coverage 67.29% 67.24% -0.05%
==========================================
Files 121 121
Lines 7017 7007 -10
Branches 2269 2259 -10
==========================================
- Hits 4722 4712 -10
Misses 2278 2278
Partials 17 17
|
The latest changes of this PR are available as canary in npm (based on the declared
|
make package independent from
tsc
with owndev
/build
scripts, will be possible to fix #3668 later