@polka/url
Advanced tools
Comparing version 1.0.0-next.9 to 1.0.0-next.11
function parse(str) { | ||
let i=0, j=0, k, v; | ||
let out={}, arr=str.split('&'); | ||
for (let i=0, k, v; i < arr.length; i++) { | ||
[k, v=''] = arr[i].split('='); | ||
for (; i < arr.length; i++) { | ||
j = arr[i].indexOf('='); | ||
v = !!~j && arr[i].substring(j+1) || ''; | ||
k = !!~j ? arr[i].substring(0, j) : arr[i]; | ||
out[k] = out[k] !== void 0 ? [].concat(out[k], v) : v; | ||
@@ -6,0 +9,0 @@ } |
{ | ||
"version": "1.0.0-next.9", | ||
"version": "1.0.0-next.11", | ||
"name": "@polka/url", | ||
@@ -20,3 +20,3 @@ "repository": "lukeed/polka", | ||
}, | ||
"gitHead": "5c8f314e57c1edb3132f2556ce13fb6c2b4e839b" | ||
"gitHead": "4edc74c28fde992eb10e23a6f6f4fd6040ccb34a" | ||
} |
Sorry, the diff of this file is not supported yet
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
6953
86