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

curlformat

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

curlformat - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

5

History.md

@@ -0,1 +1,6 @@

## v0.1.0
* Support JSON data.
* Ignore Content-Length header.
## v0.0.2 - August 13, 2014

@@ -2,0 +7,0 @@

7

index.js

@@ -32,3 +32,6 @@ var qsparse = require('querystring').parse;

if (args.data) {
extend(this.data, qsparse(args.data));
if (args.data.match(/^[\{\[].*[\]\}]$/))
extend(this.data, JSON.parse(args.data));
else
extend(this.data, qsparse(args.data));
this.method = 'POST';

@@ -57,3 +60,3 @@ }

'Origin', 'Connection', 'X-Requested-With', 'Content-Type', 'Pragma',
'Cache-Control', 'Referer', 'Cookie'
'Cache-Control', 'Referer', 'Cookie', 'Content-Length'
];

@@ -60,0 +63,0 @@

{
"name": "curlformat",
"version": "0.0.2",
"version": "0.1.0",
"description": "CLI utility to clean up your 'Copy as cURL' strings",

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

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