Socket
Socket
Sign inDemoInstall

callarest

Package Overview
Dependencies
2
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1 to 1.4.0

7

index.js

@@ -30,7 +30,6 @@ const http = require('http');

const chunks = [];
let chunks = Buffer.from([]);
const request = httpOrHttps.request(opts, (response) => {
response.setEncoding(options.encoding || 'utf8');
response.on('data', (chunk) => {
chunks.push(chunk);
chunks = Buffer.concat([chunks, chunk]);
});

@@ -41,3 +40,3 @@ response.on('end', () => {

response,
body: chunks.join()
body: chunks.toString(options.encoding || 'utf8')
});

@@ -44,0 +43,0 @@ });

{
"name": "callarest",
"version": "1.3.1",
"version": "1.4.0",
"keywords": [

@@ -5,0 +5,0 @@ "rest",

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