@stepzen/fetch
TypeScript icon, indicating that this package has built-in type declarations

0.50.0 • Public • Published

@stepzen/fetch

StepZen wrapper for the node-fetch npm package that implements the fetch() API for NodeJS.

The main reason to create this wrapper is create a workaround for an issue affecting a small part of StepZen CLI users where some CLI calls would stall due to an incorrectly terminated TCP transmission. See https://github.com/steprz/stepzen-cli/issues/934 for more details.

This package would be obsolete either when the ISP issue with TCP configuration is fixed, or when the CLI can assume it runs on NodeJS 19 or newer. In Node 19 the default http(s) agent config changes to add the Connection: keep-alive HTTP header, and that seems to prevent the issue.

Readme

Keywords

none

Package Sidebar

Install

npm i @stepzen/fetch

Weekly Downloads

5,205

Version

0.50.0

License

MIT

Unpacked Size

6.25 kB

Total Files

8

Last publish

Collaborators

  • sridhar.sridhar
  • dandebrunner
  • carloseberhardt
  • cckstepzen
  • camarena
  • viktor-stepzen
  • stepzen-bot
  • akshay-n-shaju