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

@ejnshtein/smol-request

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ejnshtein/smol-request - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "@ejnshtein/smol-request",
"version": "1.0.5",
"version": "1.0.6",
"description": "Tiny http/https request wrapper for Node.js using ESM (13.5 and newer)",

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

@@ -11,3 +11,3 @@ // docs: https://nodejs.org/dist/latest-v10.x/docs/api/https.html#https_https_request_url_options_callback

export default function smolrequest (url, options = {}, formData) {
export default function smolrequest (url, options = {}, formData = null) {
const [body, dataIsObject] = Object.prototype.toString.call(formData) === '[object Object]' ? [qs.stringify(formData), true] : [formData, false]

@@ -14,0 +14,0 @@ const mergedOptions = [

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