
Release Notes: - N/A --------- Co-authored-by: michael <michael@zed.dev> Co-authored-by: agus <agus@zed.dev>
1.1 KiB
1.1 KiB
- The first change replaces the
request
module import withaxios
in Tunnel.js. This is accompanied by modifications to the request parameters wherepath
andjson
fields are removed and replaced withresponseType: 'json'
. The request URI construction is also slightly modified to separate the base URI from the parameters. - The second chunk shows significant changes to the request handling logic in Tunnel.js. The callback-based
request
implementation is replaced with a promise-basedaxios.get
approach. The error handling is restructured to use.catch()
instead of checking for errors in the callback. The success case now extracts data fromres.data
instead of directly from the response body, and the status code check looks atres.status
instead ofres.statusCode
. - The third chunk shows changes to package.json where the
request
dependency is removed and replaced withaxios
at version 0.17.1. The dependencies are also reordered, withdebug
andopenurl
moved up andyargs
moved to the end of the list, though their versions remain unchanged. The devDependencies section remains untouched.