Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sync-request-curl

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sync-request-curl - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

4

dist/cjs/request.js

@@ -21,3 +21,5 @@ "use strict";

const httpHeaders = options.headers
? Object.entries(options.headers).map(([key, value]) => `${key}: ${value}`)
? Object.entries(options.headers)
.filter(([_, value]) => value !== undefined)
.map(([key, value]) => value === '' ? `${key};` : `${key}: ${value}`)
: [];

@@ -24,0 +26,0 @@ // Outgoing headers

@@ -19,3 +19,5 @@ import { Curl, CurlCode, Easy } from 'node-libcurl';

const httpHeaders = options.headers
? Object.entries(options.headers).map(([key, value]) => `${key}: ${value}`)
? Object.entries(options.headers)
.filter(([_, value]) => value !== undefined)
.map(([key, value]) => value === '' ? `${key};` : `${key}: ${value}`)
: [];

@@ -22,0 +24,0 @@ // Outgoing headers

@@ -7,3 +7,3 @@ {

},
"version": "1.1.4",
"version": "1.1.5",
"files": [

@@ -10,0 +10,0 @@ "dist"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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