fourdollar.tostringquery
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -8,4 +8,8 @@ "use strict"; | ||
if (typeof params === 'object') { | ||
const keys = Object.keys(params); | ||
if (keys.length === 0) { | ||
return ''; | ||
} | ||
const esc = encodeURIComponent; | ||
return Object.keys(params) | ||
return '?' + Object.keys(params) | ||
.map(k => esc(k) + '=' + esc(params[k])) | ||
@@ -12,0 +16,0 @@ .join('&'); |
{ | ||
"name": "fourdollar.tostringquery", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
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
1384
27