Socket
Socket
Sign inDemoInstall

got

Package Overview
Dependencies
1
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 1.0.0

4

index.js

@@ -41,3 +41,3 @@ 'use strict';

get(urlLib.resolve(url, res.headers.location), cb);
get(urlLib.resolve(url, res.headers.location), opts, cb);
return;

@@ -67,3 +67,3 @@ }

res.once('end', function () {
cb(null, ret);
cb(null, ret, res);
});

@@ -70,0 +70,0 @@ }).once('error', cb);

{
"name": "got",
"version": "0.3.0",
"version": "1.0.0",
"description": "Simplified HTTP/HTTPS requests",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -24,3 +24,3 @@ # got [![Build Status](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got)

got('http://todomvc.com', function (err, data) {
got('http://todomvc.com', function (err, data, res) {
console.log(data);

@@ -51,7 +51,15 @@ //=> <!doctype html> ...

##### callback(err, data)
##### callback(err, data, response)
###### data
The data you requested.
###### response
The [response object](http://nodejs.org/api/http.html#http_http_incomingmessage).
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc