Socket
Socket
Sign inDemoInstall

httpsnippet

Package Overview
Dependencies
43
Maintainers
5
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.23.0 to 1.24.0

src/targets/node/fetch.js

2

package.json
{
"version": "1.23.0",
"version": "1.24.0",
"name": "httpsnippet",

@@ -4,0 +4,0 @@ "description": "HTTP Request snippet generator for *most* languages",

@@ -8,3 +8,2 @@ /* eslint-env browser */

var MultiPartForm = require('form-data')
var FormDataPolyfill = require('form-data/lib/form_data')
var qs = require('querystring')

@@ -132,3 +131,3 @@ var reducer = require('./helpers/reducer')

// which something like `formdata-polyfill` requires, don't exist there.
const isNativeFormData = !(form instanceof FormDataPolyfill)
const isNativeFormData = (typeof form[Symbol.iterator] === 'function')

@@ -135,0 +134,0 @@ // easter egg

@@ -43,3 +43,3 @@ /**

case 'application/json':
options.body = source.postData.jsonObj
options.body = JSON.stringify(source.postData.jsonObj)
break

@@ -46,0 +46,0 @@

@@ -14,3 +14,4 @@ 'use strict'

unirest: require('./unirest'),
axios: require('./axios')
axios: require('./axios'),
fetch: require('./fetch')
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc