Socket
Socket
Sign inDemoInstall

got

Package Overview
Dependencies
0
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

3

index.js

@@ -17,2 +17,4 @@ 'use strict';

if (res.statusCode < 400 && res.statusCode >= 300 && res.headers.location) {
res.destroy();
if (++redirectCount > 10) {

@@ -28,2 +30,3 @@ cb(new Error('Redirected 10 times. Aborting.'));

if (res.statusCode !== 200) {
res.destroy();
cb(res.statusCode);

@@ -30,0 +33,0 @@ return;

2

package.json
{
"name": "got",
"version": "0.1.0",
"version": "0.1.1",
"description": "Simplified HTTP/HTTPS GET requests",

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

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