Socket
Socket
Sign inDemoInstall

lento

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lento - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

12

lib/client.js

@@ -135,3 +135,13 @@ 'use strict'

const req = (opts.protocol === 'http:' ? http : https).request(opts, (res) => {
let req
try {
req = (opts.protocol === 'http:' ? http : https).request(opts)
} catch (err) {
// To catch e.g. ERR_HTTP_INVALID_HEADER_VALUE
callback(err)
return
}
req.once('response', (res) => {
const headers = res.headers

@@ -138,0 +148,0 @@ const contentType = headers['content-type']

2

package.json
{
"name": "lento",
"version": "2.4.1",
"version": "2.4.2",
"description": "Streaming client for Presto HTTP protocol v1",

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

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