@ejnshtein/smol-request
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"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 = [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14026