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

tiny-json-http

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-json-http - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

2

_write.js

@@ -31,7 +31,5 @@ var qs = require('querystring')

opts.headers['Content-Type'] = opts.headers['Content-Type'] || defaultContentType
// opts.headers['Content-Type'] = 'application/x-www-form-urlencoded'
var reqJSON = opts.headers['Content-Type'].startsWith('application/json')
var postData = reqJSON? JSON.stringify(options.data || {}) : qs.stringify(options.data || {})
console.log('debug info for!!!', opts)
// make a POST request

@@ -38,0 +36,0 @@ var req = method(opts, function(res) {

2

package.json
{
"name": "tiny-json-http",
"version": "4.0.1",
"version": "4.1.0",
"main": "index.js",

@@ -5,0 +5,0 @@ "scripts": {

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