New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lightning-request-net

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightning-request-net - npm Package Compare versions

Comparing version 0.1.1-beta.0 to 0.1.1-beta.1

2

package.json
{
"name": "lightning-request-net",
"version": "0.1.1-beta.0",
"version": "0.1.1-beta.1",
"description": "Lightweight Node.js HTTP client based on net.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -66,6 +66,10 @@ const http = require('http');

if (result.statusCode === 200 && responseType === 'json') {
if (options.allowBigNumberInJSON) {
result.data = jsonParse(result.data);
} else {
result.data = JSON.parse(result.data);
try {
if (options.allowBigNumberInJSON) {
result.data = jsonParse(result.data);
} else {
result.data = JSON.parse(result.data);
}
} catch (error) {
reject(error);
}

@@ -72,0 +76,0 @@ }

@@ -25,9 +25,6 @@ const net = require('net');

this.writeCacheData = null;
this.successCall = loop;
this.failCall = loop;
this.contentLength = 0;
this.chunked = false;
this.bodySize = 0;

@@ -34,0 +31,0 @@ this.data = ''; // received data

@@ -57,3 +57,3 @@ const CRLF = '\r\n';

}
const idx2 = responseBodyText.indexOf('\r\n0\r\n');
const idx2 = responseBodyText.indexOf('\r\n0');
if (idx2 > -1) {

@@ -60,0 +60,0 @@ responseBodyText = responseBodyText.slice(0, idx2);

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