Socket
Socket
Sign inDemoInstall

superagent

Package Overview
Dependencies
Maintainers
7
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superagent - npm Package Versions

1
18

1.0.0

Diff

Changelog

Source

1.0.0 / 2015-03-08

  • All non-200 responses are treated as errors now. (The callback is called with an error when the response has a status < 200 or >= 300 now. In previous versions this would not have raised an error and the client would have to check the res object. See #283.
  • keep timeouts intact across redirects (hopkinsth)
  • handle falsy json values (themaarten)
  • fire response events in browser version (Schoonology)
  • getXHR exported in client version (KidsKilla)
  • remove arity check on .end() callbacks (defunctzombie)
  • avoid setting content-type for host objects (rexxars)
  • don't index array strings in querystring (travisjeffery)
  • fix pipe() with redirects (cyrilis)
  • add xhr2 file download (vstirbu)
  • set default response type to text/plain if not specified (warrenseine)
gjohnson
published 0.21.0 •

Changelog

Source

0.21.0 / 2014-11-11

  • Trim text before parsing json (gjohnson)
  • Update tests to express 4 (gaastonsr)
  • Prevent double callback when error is thrown (pgn-vole)
  • Fix missing clearTimeout (nickdima)
  • Update debug (TooTallNate)
gjohnson
published 0.20.0 •

Changelog

Source

0.20.0 / 2014-10-02

  • Add toJSON() to request and response instances. (yields)
  • Prevent HEAD requests from getting parsed. (gjohnson)
  • Update debug. (TooTallNate)
gjohnson
published 0.19.1 •

Changelog

Source

0.19.1 / 2014-09-24

  • Fix basic auth issue when password is falsey value. (gjohnson)
gjohnson
published 0.19.0 •

Changelog

Source

0.19.0 / 2014-09-24

  • Add unset() to browser. (shesek)
  • Prefer XHR over ActiveX. (omeid)
  • Catch parse errors. (jacwright)
  • Update qs dependency. (wercker)
  • Add use() to node. (Financial-Times)
  • Add response text to errors. (yields)
  • Don't send empty cookie headers. (undoZen)
  • Don't parse empty response bodies. (DveMac)
  • Use hostname when setting cookie host. (prasunsultania)
kof
published 0.18.2 •

Changelog

Source

0.18.2 / 2014-07-12

  • Handle parser errors. (kof)
  • Ensure not to use default parsers when there is a user defined one. (kof)
gjohnson
published 0.18.1 •

Changelog

Source

0.18.1 / 2014-07-05

  • Upgrade cookiejar dependency (juanpin)
  • Support image mime types (nebulade)
  • Make .agent chainable (kof)
  • Upgrade debug (TooTallNate)
  • Fix docs (aheckmann)
gjohnson
published 0.18.0 •

Changelog

Source

0.18.0 / 2014-04-29

  • Use "form-data" module for the multipart/form-data implementation. (TooTallNate)
  • Add basic field() and attach() functions for HTML5 FormData. (TooTallNate)
  • Deprecate part(). (TooTallNate)
  • Set default user-agent header. (bevacqua)
  • Add unset() method for removing headers. (bevacqua)
  • Update cookiejar. (missinglink)
  • Fix response error formatting. (shesek)
gjohnson
published 0.17.0 •

Changelog

Source

0.17.0 / 2014-03-06

  • supply uri malformed error to the callback (yields)
  • add request event (yields)
  • allow simple auth (yields)
  • add request event (yields)
  • switch to component/reduce (visionmedia)
  • fix part content-disposition (mscdex)
  • add browser testing via zuul (defunctzombie)
  • adds request.use() (johntron)
gjohnson
published 0.16.0 •

Changelog

Source

0.16.0 / 2014-01-07

  • remove support for 0.6 (superjoe30)
  • fix CORS withCredentials (wejendorp)
  • add "test" script (superjoe30)
  • add request .accept() method (nickl-)
  • add xml to mime types mappings (nickl-)
  • fix parse body error on HEAD requests (gjohnson)
  • fix documentation typos (matteofigus)
  • fix content-type + charset (bengourley)
  • fix null values on query parameters (cristiandouce)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc